Overclock.net banner
1 - 20 of 226 Posts

·
Registered
Joined
·
2,132 Posts
Discussion Starter · #1 ·
UNDER CONSTRUCTION, PLEASE GIVE TIME FOR MORE PICTURES/INFO. PLEASE REPLY WITH ANY SUGGESTIONS
biggrin.gif


Also Please forgive the lack of updates recently. I have had alot of offline issues and have not had much time to work on this. Will do my best to get back here and get some work done!

Also I have noticed many people on reddit trying to make smaller guides and take credit for the effort put in here. They are taking tips for this and upvotes. Because of this I have created an account on reddit and posted links to my guide there. Please check me out from there if your part of that community aswell:

https://www.reddit.com/r/1va8g2/ann_sgminer_400_release/%5B/URL to get yourself a good starting point. Find what others used and insert the information accordingly. You will end up adjusting later to get the most out of your card but for now get a good starting point.

The first config is pre-setup for my 7870 and my 270x at 2 gpu threads using xintensity. The second config is for sgminer and is pre-setup for regular intensity on a 280x with 2 threads. Results may vary and you will likely need adjustments even if using the same cards. Although recent reports show that the 270x settings seem to be working for multiple people at around 500kh/s
biggrin.gif
.

Make sure you change everything you need changed including worksize, intensity, gpu-threads and thread-concurrency. (referred to on the wiki as -w -I -g and --thread-concurrency)

Make sure you setup a back-up pool SEPERATE from the one you are on. If they have there own backup pool you will want to add a 3rd pool and make sure its seperate from the originals. Always have one pool from a completely different website as you never know what could happen! Failover-only will make sure that when a pool fails it goes to the backup. but when that first pool is available again it will switch back automatically.

After you have it all setup you then save your file into the cgminer folder. Make sure you name it cgminer.conf (or sgminer.conf for sgminer). If you end up accidently saving as a text file make sure you delete ".txt" from the end so it becomes a config file (should say cgminer.conf or sgminer.conf)

CREATE YOUR BATCH FILE

Then go back and make a new text file and insert this:

CGminer:

Code:

Code:
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
timeout /t 4
cgminer.exe --scrypt
SGminer:

Code:

Code:
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
timeout /t 4
sgminer.exe
Very similar but if using cgminer make sure you include --scrypt. If using sgminer it WILL NOT WORK with --scrypt included.

Use the timeout to give yourself time to re-size the miner as it will be locked in once it starts mining. Also if you set the miner to auto-start with PC you can increase the timeout to give your PC time to start-up.

Save the file as anything you want but add ".bat" to the end. Same as with the conf if you accidently save as .txt just remove the txt from the end and make sure its a .bat file.

TEST RUN!

That's it you now have set-up your miner. All you need to do is run the .bat file and you are up and mining! Heres some of the info you will want to focus on and information about each:

kh/s: This is how hard your gpu is running. Generally this is what people watch as they tweak there gpu. Using a multipool can effect testing. Generally you want to do your tweaking on a single coin dedicated pool to avoid loss of kh/s during coin switch. Otherwise you may end up with a headache.

wu/m: This is the real major factor. kh/s is nothing without work being submitted. Ive seen some high kh/s on my card that produced horrible wu/m. This is wildly random at first and goes up and down significantly. But after hours it will even out. Sometimes you will see wu referred to on a ratio vs kh/s. Most the time you want atleast .9 ratio vs kh/s. so for every 100/khs you should have at least 90wu/m. This can vary though and has a little to do with luck and again will take a long time to even out.

[P]ool management / [G]pu management / Settings / [D]isplay options [Q]uit
Somewhat self explanatory but I thought I would mention. Press Q to quit you dont want to X out and lose work. Also you can access most of the settings from your config from inside of cgminer while its running. This is the best way to adjust xintensity. Simply press G for gpu management and a new menu will pop up. press x for xintensity and adjust up and down 1 intensity at a time and you will find the "sweet spot" ever 3 or 4 intensity levels that give your card a boost. Just gotta find the right sweet spot that gives good wu/m and kh/s combination.

HW: This should ALWAYS be 0. There may be some bad luck with a pool that causes errors but that is extremely rare. This number has been 0 for me for over 2 months unless I have bad settings. HW means hardware errors. If you have ANY HW then you need to find the problem. Generally it means too low of thread concurrency OR too high of intensity (or sometimes too high of thread concurrency as well). Always adjust settings one at a time to pin-point the problem.

A:, R: These are work accepted and work rejected. you can see rejects represented by a percentage on newer miners. This can vary from pool to pool based on connectivity but you will want this to be super low. If you have a good pool connection it should be as low as 1 percent or even lower. multi-pools will have higher rejects due to coin switching as well as p2pools tend to have higher rejects too. Even under extreme circumstances 4%+ is too high you generally need to lower intensity or find other solutions.

Most of the other information is irrelevant. keep an eye on GF: as this is getwork failures. if this keeps going up too much you have a really bad connection to your pool and may want to consider switching pools. after 24 hours i have about 150 getwork failures on a somewhat bad pool connection (to give comparison).

TWEAKING TIME

Now that you kinda understand what your working with
wink.gif
(its all confusing at first, give it time
biggrin.gif
). Its time to do some tweaking to optimize performance.

Some cards do extremely well with the wiki settings and you may not be able to get much more out of them.

At first you will want to start by changing the worksize. This settings fairly easy to tweak. Here are all the work-size possibilities you should try:
48,64,96,128,192,256,288,320,384,448,480,512
Start with your wiki setting and move up and down to see what happens. If hashrate increases keep the new setting. When you are done tweaking everything else, you may want to go back to worksize to make one more attempt to assure best setting.

You will next want to start tweaking intensity. If you used regular intensity just try to push it up one and see if it works better. If not go back down. fairly simply done just by increasing the intensity in your conf file and saving it. then re-open cgminer. Or you can do this within cgminer by pressing G then I and entering the new intensity.

If you ended up using 1 gpu thread you likely are already at a higher intensity. This can generally be pushed up a bit but you wont want to go too high as later on your overclock wont get to push you as far
biggrin.gif
. Also you may want to consider using a very low xintensity (3,4,5,6) and attempting 2 gpu threads (with kalroths cgminer). This is newly discovered for cards that could not previously do this. Generally gives you less stales and less stress on gpu. It will not work at all it seems at any setting except 3 for myself. But once I found that sweet spot it has been the best.

Anyone using 2 threads already may want to attempt to use xintensity to adjust by smaller increments. Once you start using xintensity in your config file it can then be adjusted within cgminer. Press G to go to gpu management then press x. You now can type in your chosen xintensity. I recommend if using 1 thread getting close to the same xintensity as you would for normal intensity (remember shaders*xintensity=threadcount compare above) then going up or down one by one watching this number:


You will see every 3 or 4 intensity steps the number will go up. then for 3 more be low, etc. For example i had really good results at 1 gpu thread xintensity=111. but at 110,109,108 it was all bad, then 107 had very similar results to 111 but seemed to have a worst wu/kh ratio. but likewise the other direction aswell at 112,113,114,115 all bad and 116 seemed to do ok. This will take some serious time to figure out and pinpoint but you can squeeze more juice out of any gpu! But I still highly recommend attempting to get 2 gpu threads to work as its generally more productive.

The reason we are looking at this k number and not kh/s is it shows results from changes faster. kh/s seems to be some sort of average while k seems to be right now speed. So its easier to see in real-time the changes from one xi to the next. Make sure you let it run for at least a few seconds on each increase or decrease to be sure of the speed change.

For even more tweaking there is now a feature in the kalroth release called rawintensity. This is quite literally just the intensity threadcount. This is a much more fine tune and will take a ton of time to tweak. but if you want to spend some more time getting every little bit you can then use rawintensity to take it another step!

The last thing I usually mess with is thread-concurrency. Assuming the setting from wiki worked ok (they generally do). You should attempt multiples of your shaders aswell as multiples of 1024. Go up and down from your original wiki setting and see what works best for your gpu. Theres likely going to be a large range that performs similar. You will want to end up somewhere in the middle of too high tc (generally choppy) and too low tc (hw errors). If the wiki setting falls in the middle its probably where you should keep it.

Many people have reported that thread concurrency is best found by shaders*n+1. So Take your shaders multiply by a number usually 3-10 add 1 and test. I ended up on 8193 personally with my 270x and 7870 and it seems to run best on MANY different gpu.

Theres no one specific setting for any of these, some just perform better at different settings then others. Even the exact same 2 gpu from the same company same model may have 2 completely different optimal settings.

Just dont forget to keep an eye on HW: This will tell you if you have any hw errors. Also wu/m again is the most important of all as it represents the actual work submitted (what your pool pays you for). Also dont forget wu/m takes a LONG time to even out even 24 hours before its steady sometimes (you will get used to watching it and understand kinda how it works). Wu/m is about luck (Difficulty of each submitted work) but luck over time will always even out.

Lastly you may want to do some clean-up in your cgminer folder before starting overclocking. Everytime you changed thread-concurrency, worksize OR gpu threads it created another bin file. This bin file is used everytime you start cgminer and keeps your settings stored. Once your at your optimal settings you can just delete all of the bins. It will create a new one with the same previous settings and you wont have 20 bin files anymore. Also I am sure you noticed everytime you start cgminer with one of those settings changed it takes a much longer time to start because it creates the bin file. Once you have your settings locked in and a bin file made cgminer will start much quicker.

OVERCLOCKING

Overclocking can be very frustrating. Many cards can respond differently. You will need to tinker with both core and memory clocks at the same time in order to optimize your settings. You can even end up at different clocks for different cgminer settings.

Use a program like MSI afterburner or Sapphire trixx or something. You need on the fly controls to really optimize each gpu.

Sometimes you will see the same results from 1340 mem as you will from 1500. Sometimes not. Depends on memory, brand and card. Core clock can also be the same way. My 7870 likes a much lower clock between 975-1010 is optimal but it still runs almost the exact same kh/s at 1300-1340. So when you think your going up sometimes its better to go down! Try everything!

My current clock settings:
7870: core clock 980, mem-clock 1358 runs at 425kh/s. Can push around 435 at 1010,1360
270x: core clock 1160, mem-clock 1498 runs at 500kh/s. Can push up to 505ish with minor tweaking (reports show these settings work on multiple 270x)

This can be HEAVILY effected by the bin file created by the miner from different driver versions. I do NOT suggest using the new 14.1 drivers for pitcairn cards. For both my 7870 and 270x there was a MAJOR loss in kh/s. Have also seen alot of bad reports from others aswell. 13.11 or 13.12 are recommended.

Your overall goal is to attempt to undervolt aswell as increase kh/s by possibly underclocking. You will want to start as low as possible and hope that your core responds well to low clocks. For example if you get 420kh/s at 980 clock but you get 425 at 1250 clock then its likely better to go with the 980 as your power bill will show it. Memory clocks are likely to end up higher but do not draw as much power.

Do your best to find your optimal core and memory clocks. adjusting each by 20mhz at a time at first then when you get to the "sweet spots" adjust up and down slightly until you find the magic numbers. You will see the results in cgminer. You can adjust while running cgminer it will take a few moments to regain speed (unless you hit a bad spot
tongue.gif
). Once you find the highest possible generally best to back off just a tad.

Lastly after finding those optimal settings you will want to try to undervolt your gpu. This is done by lowering the vcore which on some gpu can be locked. In MSI afterburner you can try going into settings and selecting unlock voltage aswell as extend overclock limits (you may not even have these options). If it works you may get voltage unlocked. Otherwise there is other methods like flashing the bios if you really want to undervolt. The goal is to turn down the voltage as far as you can to save power. if you lose some serious wu/m after undervolting you may have to go back up a bit. I did myself it seemed to work fine but then i realized it was not submitting nearly as much work. So keep an eye on it before and after undervolting to assure its working properly.

Once all is said and done you can use a program like VBE7 to edit, save and flash your bios to permanently have these clocked miner settings. Its better to do this if you plan on using for mining only as using msi ab or another program everytime can be a pain and can cause conflicts with some other programs like cgmonitor. Even though afterburner runs everytime your start your pc its better to always be clocked properly. Flashing bios is the optimal way to do this but in most cases IT DOES VIOLATE THE WARRANTY! FLASH AT YOUR OWN RISK!

After overclocking your completely done! you should have the highest hash possible out of your gpu. Hope I helped you squeeze out some more hash! Feel free to PM me with any questions or reply here
biggrin.gif
.
 

·
Registered
Joined
·
2,132 Posts
Discussion Starter · #2 ·
ADDITIONAL INFO

Setting up a mining rig to auto-start:

Using windows its as simple as setting your bat file as a rule in your task scheduler (control panel, admin tools). Then go back into your bat file and increase the timeout to atleast 30 (pending how fast your pc boots up its based on seconds, may need more). This gives your pc time to boot-up and relax prior to starting the miner. Then make sure your set to auto-login. Reboot pc and make sure it starts up. Then you can shut down, unhook your monitor and hook up a dummy cord (if you need one see here). Hit the power button and check your monitoring software or pool to see that your still working properly
biggrin.gif
.

Setting up multiple GPU:

This is as simple as doing everything mentioned above. You create a new conf file exactly the same as the previous. This time name it whatever you want (but dont over-write your original). Adjust the settings as needed but make sure you change the device as-well:
"device" : "0" is the first gpu so for the 2nd gpu its "device" : "1" and so on for the rest.

Then after you have saved your config file you will need to make a new .bat file as well. Same as the previous except you must call your config file:

Code:

Code:
CGminer:
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
timeout /t 4
cgminer.exe --scrypt -c yourconfig.conf
SGminer:

Code:

Code:
setx GPU_MAX_ALLOC_PERCENT 100
setx GPU_USE_SYNC_OBJECTS 1
timeout /t 4
sgminer.exe -c yourconfig.conf
Same as before name the .bat file whatever you like just make sure its saved as a .bat file. Now you can run both your gpu in separate miner windows and tweak them as needed. As well as point them towards different pools/coins if you'd like.

You will notice when starting your 2nd (or 3rd or 4th etc) gpu that it will say that the other threads are disabled. While it will not do this on the first one. This does not mean its not working right. Anytime the miner is started the first thread must start then be disabled. Dont be alarmed!
biggrin.gif


Will be adding much more to this section as I go along and refine the rest. Any suggestions greatly appreciated
biggrin.gif
.
 

·
Registered
Joined
·
13 Posts
Nice. Glad to see someone else likes the kalroth fork.

For me one of the best features is the : for the gpu and mem clocks to return to whatever I set on exit as I use my machine sometimes for other things.
 

·
Registered
Joined
·
99 Posts
Thanks for this Post. + rep for you.

I might try undervolting

My system has trifire 6970 pushing 1.5 Mh with no overclocks and good temps all below 80. Ill install afterburner and see what that does for me.

Thanks
 

·
Registered
Joined
·
2,132 Posts
Discussion Starter · #9 ·
Sgminer will be same settings as cgminer it just produces better hashrates and less problems.

As far as improvements they are listed on the downloads page for each but the main reason for the new guide is the new intensity settings which so far i can overclock further with 2 threads and gained 40kh/s personally (lots of tweaking). Im sure this will vary from card to card but if you are currently only able to use 1 thread then this will get you 2. Which in my experience gives better hashrates and lower stales, but also gives more oc room
biggrin.gif
(if going up helps for you
tongue.gif
).
 

·
Registered
Joined
·
3,395 Posts
Quote:
Originally Posted by dmfree88 View Post

You can overwrite your original or just make a new folder. You dont have to move anything or use anything from your original unless you want to copy over ur config or bat file that u alteady made. U can just start fresh or overwrite the old one. Whatever u want
tongue.gif
gotcha.
edit: got it squared away, thanks.
 

·
Premium Member
Joined
·
10,930 Posts
Great Job +rep

Add official support thread in OP.
 

·
Registered
Joined
·
130 Posts
Thanks! this really got me started!

I sat here for an hour and I couldn't figure out what i did wrong, because i kept on getting the "Need to specify at least one pool server" message.

I didn't realize you had to go to Control Panel/Appearance/Folder Options/View/ and uncheck "Hide extensions"

Because my sgminer.conf file looked normal..... but it really had an .txt at the end of it.
 

·
Registered
Joined
·
2,132 Posts
Discussion Starter · #15 ·
Quote:
Originally Posted by Vash the Stampede View Post

Thanks! this really got me started!

I sat here for an hour and I couldn't figure out what i did wrong, because i kept on getting the "Need to specify at least one pool server" message.

I didn't realize you had to go to Control Panel/Appearance/Folder Options/View/ and uncheck "Hide extensions"

Because my sgminer.conf file looked normal..... but it really had an .txt at the end of it.
Good to know i will add this to the guide when im back at the pc. You can also make sure in notepad you press save as, then select "all files" instead of "text documents" before saving as "cgminer.conf". Which can avoid what you had to do but its probably better to see your extensions anyways.
 

·
Registered
Joined
·
2,132 Posts
Discussion Starter · #17 ·
The batch file allows for the timeout and setting seperate configs. Just good practice for multiple gpu. Also lets you add the gpu max alloc which arguably may or may not be needed. But its added as generally better to have and not need then need and not have.
 

·
Registered
Joined
·
2,132 Posts
Discussion Starter · #20 ·
Quote:
Originally Posted by capitaltpt View Post

+1, your guide really got me started with mining. I do have a noob question to throw out there though:

Is it ok for the WU/m to be over 90% (or even (100%)? Everything I read makes it seem like 90% is the minimum you should shoot for.
yes the higher the better! it will fluctuate wildly at first. but after 24 hours around %95+ is awesome. 90%+ is generally the minimum.
 
1 - 20 of 226 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top