How To Setup And Optimize Your Cgminer Config File

Discussion in 'cgminer' started by thepotterone, Jan 30, 2016.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. thepotterone

    thepotterone Jr. Member

    Jan 28, 2016
    128
    27
    Male
    enthusiast
    Somewhere above the UK
    How to Setup and Optimize your CGMiner Config File


    Anyone who starts out mining Decred if you want to get the best Mhash/s from your GPU or GPU’s. This being said its not that difficult to get it running and optimizing it for your graphics card. I will explain the entire process of creating the config file to changing settings so that you get the most MHash out of your card possible.

    Setting up cgminer for the first time: (skip this if you already have cgminer running)

    1. Download the newest version of cgminer from its Git Repository (https://github.com/decred/cgminer/releases)
    2. Unzip cgminer to your hard drive (somewhere you will remember)
    3. Navigate to the cgminer folder and open cgminer.exe
    4. When it asks for your pool address enter it there with port (i.e. http://127.0.0.1:19109 -)
    5. Next it will ask for your Worker so enter that (i.e. username.1)
    6. Next enter your workers password when it asks and press enter
    7. If all information was entered correctly it should now start mining.
    Create a Config File for cgminer: (skip this if you already have a cgminer config file)

    1. After cgminer begins mining press “S” for settings
    2. You will have a list of options show up, next press “W” for Write Config File
    3. It will ask about naming the config, just press enter for the default name (cgminer.conf)
    4. You now have a config file for cgminer
    NOTE: if you are happy with the MHash you are getting at this point all you need to do is run cgminer.exe to begin mining the pool you setup earlier since its all saved in the config file you just created.

    Optimizing you cgminer config file:
    Decred mining uses your GPU core and not the memory so you will want to clock your memories core down and over clock your GPU core. Keep an eye on your GPU’s temperature when doing this as you want to make sure it doesn’t get too hot and damage the GPU. Most newer cards can run around 80-85 degrees celsius safely for prolonged periods of time but I would not recommend letting it get hotter than this.

    1. Lookup your Graphics cards default core and memory clock speeds first thing
    2. Navigate to and open your cgminer.conf file in notepad
    3. Change the intensity to 5
    4. Change the gpu-engine to your default GPU core clock
    5. Change the gpu-memclock to about 1/3 of the default clock
    6. Leave everything else the way it is and save the config file.
    7. Re-open cgminer via cgminer.exe and after around 5 minutes record your MHash
    Start Overclocking your GPU in cgminer to squeeze out MHash:

    1. Close cgminer if you have it open to edit the config file again
    2. Go back to your cgminer.conf file and open it again in notepad
    3. Increase your gpu-engine by around 50 and save the file
    4. Open cgminer.exe and again watch the MHash and Core Temperature
    5. Continue these steps until you have increased your MHash as much as you can while keeping a temperature under 80-85.
    Note: If you crash, see artifacts and/or go over the recommended temps then back off the clock 25 and re-test until you get to a stable working condition.

    There are other options that you can mess with in cgminer although everything mentioned above is the best way to get MHash to its optimal setting and keeping your card safe from burning out. Please also take note that I am explaining the process but am not responsible for using this information or misusing this information and damaging hardware. Good luck DECRED Mining and please consider a donation if this was helpful to you.
     
    Rune S, anondran, jmac12 and 2 others like this.
  2. beyraq

    beyraq New Member

    Jan 15, 2016
    52
    6
    Male
    cgminer -v 4 is best
     
  3. thepotterone

    thepotterone Jr. Member

    Jan 28, 2016
    128
    27
    Male
    enthusiast
    Somewhere above the UK
  4. Blizzy

    Blizzy Full Member

    Jan 4, 2016
    225
    109
    Male

    Can't find this parameters!

    1. Change the gpu-engine to your default GPU core clock
    2. Change the gpu-memclock to about 1/3 of the default{
    "pools" : [
    {
    "url" : "http://127.0.0.1:19109",
    "user" : "blizzy",
    "pass" : "xxxx"
    }
    ]
    ,
    "intensity" : "5",
    "vectors" : "2",
    "worksize" : "128",
    "kernel" : "blake256",
    "api-mcast-port" : "4028",
    "api-port" : "4028",
    "expiry" : "120",
    "gpu-dyninterval" : "7",
    "gpu-platform" : "0",
    "gpu-threads" : "1",
    "log" : "5",
    "no-pool-disable" : true,
    "queue" : "1",
    "scan-time" : "60",
    "blake256" : true,
    "shares" : "0",
    "kernel-path" : "/usr/local/bin"
    }
     
  5. thepotterone

    thepotterone Jr. Member

    Jan 28, 2016
    128
    27
    Male
    enthusiast
    Somewhere above the UK
    I am no genius at settings, just posting helpful info, I dont want to be responsibal for blowing your cards..
    i hope someone else will help you with your .conf settings, am currently testing different settings myself.
     
  6. Lucien

    Lucien New Member

    Jan 27, 2016
    28
    2
    Male
    maybe you should use a software link msi afterburner to set that paramaters??????
     
  7. thepotterone

    thepotterone Jr. Member

    Jan 28, 2016
    128
    27
    Male
    enthusiast
    Somewhere above the UK
    SOME CGMINER COMNMANDS


    Options for both config file and command line:
    --api-allow Allow API access (if enabled) only to the given list of [W:]IP[/Prefix] address[/subnets]
    This overrides --api-network and you must specify 127.0.0.1 if it is required
    W: in front of the IP address gives that address privileged access to all api commands
    --api-description Description placed in the API status header (default: cgminer version)
    --api-groups API one letter groups G:cmd:cmd[,P:cmd:*...]
    See API-README for usage
    --api-listen Listen for API requests (default: disabled)
    By default any command that does not just display data returns access denied
    See --api-allow to overcome this
    --api-network Allow API (if enabled) to listen on/for any address (default: only 127.0.0.1)
    --api-mcast Enable API Multicast listener, (default: disabled)
    The listener will only run if the API is also enabled
    --api-mcast-addr <arg> API Multicast listen address, (default: 224.0.0.75)
    --api-mcast-code <arg> Code expected in the API Multicast message, don't use '-' (default: "FTW")
    --api-mcast-port <arg> API Multicast listen port, (default: 4028)
    --api-port Port number of miner API (default: 4028)
    --auto-fan Automatically adjust all GPU fan speeds to maintain a target temperature
    --auto-gpu Automatically adjust all GPU engine clock speeds to maintain a target temperature
    --balance Change multipool strategy from failover to even share balance
    --benchmark Run cgminer in benchmark mode - produces no shares
    --compact Use compact display without per device statistics
    --debug|-D Enable debug output
    --device|-d <arg> Select device to use, one value, range and/or comma separated (e.g. 0-2,4) default: all
    --disable-rejecting Automatically disable pools that continually reject shares
    --expiry|-E <arg> Upper bound on how many seconds after getting work we consider a share from it stale (default: 120)
    --failover-only Don't leak work to backup pools when primary pool is lagging
    --fix-protocol Do not redirect to a different getwork protocol (eg. stratum)
    --hotplug <arg> Set hotplug check time to <arg> seconds (0=never default: 5) - only with libusb
    --kernel-path|-K <arg> Specify a path to where bitstream and kernel files are (default: "/usr/local/bin")
    --load-balance Change multipool strategy from failover to quota based balance
    --log|-l <arg> Interval in seconds between log output (default: 5)
    --lowmem Minimise caching of shares for low memory applications
    --monitor|-m <arg> Use custom pipe cmd for output messages
    --net-delay Impose small delays in networking to not overload slow routers
    --no-submit-stale Don't submit shares if they are detected as stale
    --pass|-p <arg> Password for bitcoin JSON-RPC server
    --per-device-stats Force verbose mode and output per-device statistics
    --protocol-dump|-P Verbose dump of protocol-level activities
    --queue|-Q <arg> Minimum number of work items to have queued (0 - 10) (default: 1)
    --quiet|-q Disable logging output, display status and errors
    --real-quiet Disable all output
    --remove-disabled Remove disabled devices entirely, as if they didn't exist
    --rotate <arg> Change multipool strategy from failover to regularly rotate at N minutes (default: 0)
    --round-robin Change multipool strategy from failover to round robin on failure
    --scan-time|-s <arg> Upper bound on time spent scanning current work, in seconds (default: 60)
    --sched-start <arg> Set a time of day in HH:MM to start mining (a once off without a stop time)
    --sched-stop <arg> Set a time of day in HH:MM to stop mining (will quit without a start time)
    --scrypt Use the scrypt algorithm for mining (litecoin only)
    --sharelog <arg> Append share log to file
    --shares <arg> Quit after mining N shares (default: unlimited)
    --socks-proxy <arg> Set socks4 proxy (host:port) for all pools without a proxy specified
    --syslog Use system log for output messages (default: standard error)
    --temp-cutoff <arg> Temperature where a device will be automatically disabled, one value or comma separated list (default: 95)
    --text-only|-T Disable ncurses formatted screen output
    --url|-o <arg> URL for bitcoin JSON-RPC server
    --user|-u <arg> Username for bitcoin JSON-RPC server
    --verbose Log verbose output to stderr as well as status output
    --userpass|-O <arg> Username:password pair for bitcoin JSON-RPC server
    Options for command line only:
    --config|-c <arg> Load a JSON-format configuration file
    See example.conf for an example configuration.
    --help|-h Print this message
    --version|-V Display version and exit
     
  8. thepotterone

    thepotterone Jr. Member

    Jan 28, 2016
    128
    27
    Male
    enthusiast
    Somewhere above the UK
    cgminer.exe --blake256 -o http://127.0.0.1:19109 -u Username.1 -p x -I 14 -g 2 --gpu-engine 1150,1150,1100 --gpu-memclock 750,750,625 --gpu-fan 65

    this command string may help with your settings, please use your own figures these were found elsewhere.
     
  9. thepotterone

    thepotterone Jr. Member

    Jan 28, 2016
    128
    27
    Male
    enthusiast
    Somewhere above the UK
    cgminer.exe --blake256 -o http://127.0.0.1:19109 -u Username.1 -p x -I 14 -g 2 --gpu-engine 1150,1150,1100 --gpu-memclock 750,750,625 --gpu-fan 65
     
  10. Alex

    Alex New Member

    Dec 21, 2015
    117
    2
    I download cgminer, open cgminer, enter http://127.0.0.1:19109 after enter user and pass and after all cgminer close... WHY?
    And i want to mine solo. It's for pool setup? How i can be solo? And i think i need to tie( connect) cgminer and my dcrd... because i only unzip cgminer in folder...
    How it's do?
     
  11. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
  12. drunkenmugsy

    drunkenmugsy Sr. Member
    Advocate (Reddit)

    Dec 28, 2015
    405
    218
    Male
    #12 drunkenmugsy, Feb 10, 2016
    Last edited: Feb 10, 2016
    FYI Doing this 'optimization' even at minimal levels, +10mhz, now bluescreens my pc every time I quit cgminer. cgminer appears to run fine but crashes on exit. Not sure if it is a config file thing or cgminer thing. Using cgminer 0.0.4.

    I was able to bump up about 200Mh/s though. Using +50MHz core and Intensity 7 for an R9 380.
    I am still perplexed by the WU/m figures. Sometimes I would get 20WU constant. Other times it would climb as high as 3000WU. From what I have read the 3000WU appears to be an error?
     
  13. Principle

    Principle New Member

    Jan 10, 2016
    3
    2
    Male
    I have 4 x r9 290 cards and I cannot get cgminer to run. I have tried running single cards but no settings work just a constant restarting loop or crash. Have not successfully started cgminer and made it to the hashing screen with decred.
     
  14. Anonymous95

    Anonymous95 New Member

    Apr 12, 2016
    13
    0
    Male
    Madrid
    How to configure the miner to not use all my memmory? Because I wanna be able to mine and pla at the same time.
    How I can configure that? Thanks !
     

Share This Page