{"action":"created","issue":{"url":"https://api.github.com/repos/xmrig/xmrig-nvidia/issues/100","repository_url":"https://api.github.com/repos/xmrig/xmrig-nvidia","labels_url":"https://api.github.com/repos/xmrig/xmrig-nvidia/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/xmrig/xmrig-nvidia/issues/100/comments","events_url":"https://api.github.com/repos/xmrig/xmrig-nvidia/issues/100/events","html_url":"https://github.com/xmrig/xmrig-nvidia/issues/100","id":294103842,"number":100,"title":"How to setup the XMRig nVidia miner for newbies","user":{"login":"GrannyCryptomaster","id":34797446,"avatar_url":"https://avatars0.githubusercontent.com/u/34797446?v=4","gravatar_id":"","url":"https://api.github.com/users/GrannyCryptomaster","html_url":"https://github.com/GrannyCryptomaster","followers_url":"https://api.github.com/users/GrannyCryptomaster/followers","following_url":"https://api.github.com/users/GrannyCryptomaster/following{/other_user}","gists_url":"https://api.github.com/users/GrannyCryptomaster/gists{/gist_id}","starred_url":"https://api.github.com/users/GrannyCryptomaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrannyCryptomaster/subscriptions","organizations_url":"https://api.github.com/users/GrannyCryptomaster/orgs","repos_url":"https://api.github.com/users/GrannyCryptomaster/repos","events_url":"https://api.github.com/users/GrannyCryptomaster/events{/privacy}","received_events_url":"https://api.github.com/users/GrannyCryptomaster/received_events","type":"User","site_admin":false},"labels":[{"id":840329593,"url":"https://api.github.com/repos/xmrig/xmrig-nvidia/labels/manual","name":"manual","color":"40e556","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2018-02-03T11:24:08Z","updated_at":"2018-04-06T19:33:40Z","closed_at":null,"author_association":"NONE","body":"At the first start of the miner, you will see something like:\r\n\"GeForce GTX 1060 3GB - 44x27 6x25 arch:61 SMX:9\"\r\nWhat this means? How to tweak the settings for optimal mining?\r\nExplanations:\r\n44 threads x 27 blocks,\r\nbfactor 6 x bsleep 25,\r\nachitecture 61,\r\nmultiprocessors SMX 9.\r\n\r\nThe settings can be made in the **config.json** file, opened with Notepad. It's a simple text file.\r\nIt comes with the miner with a basic config. After first start, it will be replaced by the same file, but with settings sugested by the miner, accordingly with your rig setup. In the regenerated file, you can now modify any settings you want.. threads, blocks, wallet, miner, etc.\r\nBest practice: before starting the miner for the first time, edit your config.json with the basic settings that will remain unaltered in the future, and save it in a BACKUP folder. When you add a GPU or replace it, you should delete the config.json, and replace it with the backup, to let the miner set the new GPU.\r\nHere is an example:\r\n```\r\n{\r\n    \"algo\": \"cryptonight\",\r\n    \"background\": false,\r\n    \"colors\": true,\r\n    \"donate-level\": 5,\r\n    \"log-file\": null,\r\n    \"print-time\": 300,\r\n    \"retries\": 90,\r\n    \"retry-pause\": 10,\r\n    \"syslog\": false,\r\n    \"threads\": null,\r\n    \"pools\": [\r\n        {\r\n            \"url\": \"pool1:port\",\r\n            \"user\": \"wallet.worker\",\r\n            \"pass\": \"x\",\r\n            \"keepalive\": true,\r\n            \"nicehash\": false\r\n        },\r\n\t{\r\n            \"url\": \"pool2:port\",\r\n            \"user\": \"wallet.worker\",\r\n            \"pass\": \"x\",\r\n            \"keepalive\": true,\r\n            \"nicehash\": false\r\n        }\r\n    ]\r\n}\r\n```\r\n\r\nA small omision from dev... if you want to add more pools, you must put a comma \",\" after the \"}\", so you will have \"pools\": [ {pool1}, {pool2}, ...]. In the original file, the comma is missing.\r\nBEFORE you start tuning the threads, you must set the other parameters to proper values in the regenerated config.json, after first start.\r\n\r\nThe **index** is the number of GPU, like GPU 1, GPU 2 etc, as they are identified by the system. The index in miner starts at 0. The numbering in Afterburner or GPU-Z starts at 1. So index 0 means GPU 1, index 1 means GPU 2... etc. GPU1 is the one on the 16x slot, GPU2 is on the other 16x/8x/4x slot. GPU3, 4, 5 and 6 are in the 1x slots starting from cpu. I don't know at what position will be a GPU linked in the M.2 slot. BTW in Windows you can have maximum 8 graphical processors: 8GPU or 7GPU+1cpu hd graphics if you use the HDMI on your motherboard. If you have 6 PCIe slots, you can use the M.2 slots too. They are basicaly PCIexpress x4. In BIOS you must set Above 4G decoding enabled and M.2 slot on PCIe mode.\r\nYou can't set **smx** or **arch**; they are automaticaly identified by the miner accordingly with your GPU model. \r\n**Blocks** must be SMX multiplied by 3. \r\nSet **bfactor** 8, **bsleep** 100 for GUI systems (Windows), or let the basic 6x25 for others.\r\n\r\nYou can find the optimal **threads** by starting with a low value, like 12, or 22, or whatever (it can be set in the initial config.json file, see help, and than modified in the regenerated config.json file), start miner, if it crashes, lower value by -2; if dosen't crashes, increase value by +8. When you find the maximum threads value, let the miner run for 5 min, note the hashrate; than lower the value by -2, or a multiple of 2, and note the hashrate eachtime; you will notice an increase in hashrate, than a decrease. Fine tune there with +/-2 untill you get max hashrate. You should be aware of the fact that some pools may ban you for a short period of time, if you connect and disconnect frequently (aka start miner a few times in 5min for ex).\r\nFor ex. the optimal threads setting for GTX 1060 3GB is 32. With 6 GPU at 44 threads (the maximum value), I got around 2650 H/s, but with 32 threads, my hashrate jumped to 2863 H/s.\r\nSo an optimal config for that GPU should give you this:\r\n\"GeForce GTX 1060 3GB - 32x27 8x100 arch:61 SMX:9\" in Windows.\r\n\r\n**print-time** 300: the hashrate and system health is printed once per 300seconds. \r\n**retries** 90, **retry-pause** 10: if connection to the pool is lost, the miner awaits for 10 seconds, than retries to reconnect for 90 times (90x10sec=15minutes). The pause must be set no less than 5 sec.\r\n************************************\r\nUpdate1:\r\n**nVidia GPU mining in Windows 10:**\r\nGPU RAM used for cryptonights: Threads x Blocks x M = RAM MB\r\n\r\nBlocks = SMX x 3 (recomanded)\r\nM = 2MB - for CN\r\nM = 4MB - for CN heavy\r\nWindows 10 reservs <=20% video RAM (That's one reason why Linux it's better).\r\nMust let some RAM for padding (~100MB).\r\n\r\nEx: For GTX 1060 3GB GPU, in Windows, you have 2490MB available; SMX 9.\r\nThe formula goes like this:\r\nCN: 44 x 27 x 2 = 2376 MB (<2490-100)\r\nCNH: 22 x 27 x 4 = 2376 MB (<2490-100)\r\nSo, the maximum Threads is 44 for CN (Monero) and 22 for CNH (Sumokoin), with Blocks 27.\r\n************************************\r\nUpdate 2:\r\nuse online config generator/editor https://config.xmrig.com/\r\n...then tweak the Threads on each GPU untill you get the best hashrates."},"comment":{"url":"https://api.github.com/repos/xmrig/xmrig-nvidia/issues/comments/379355001","html_url":"https://github.com/xmrig/xmrig-nvidia/issues/100#issuecomment-379355001","issue_url":"https://api.github.com/repos/xmrig/xmrig-nvidia/issues/100","id":379355001,"user":{"login":"GrannyCryptomaster","id":34797446,"avatar_url":"https://avatars0.githubusercontent.com/u/34797446?v=4","gravatar_id":"","url":"https://api.github.com/users/GrannyCryptomaster","html_url":"https://github.com/GrannyCryptomaster","followers_url":"https://api.github.com/users/GrannyCryptomaster/followers","following_url":"https://api.github.com/users/GrannyCryptomaster/following{/other_user}","gists_url":"https://api.github.com/users/GrannyCryptomaster/gists{/gist_id}","starred_url":"https://api.github.com/users/GrannyCryptomaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrannyCryptomaster/subscriptions","organizations_url":"https://api.github.com/users/GrannyCryptomaster/orgs","repos_url":"https://api.github.com/users/GrannyCryptomaster/repos","events_url":"https://api.github.com/users/GrannyCryptomaster/events{/privacy}","received_events_url":"https://api.github.com/users/GrannyCryptomaster/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T19:33:40Z","updated_at":"2018-04-06T19:33:40Z","author_association":"NONE","body":"Nope. I did't try to compile miners. Maybe dev can help you."}}
{"actor":{"display_login":"GrannyCryptomaster"}}