Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: maplemath on December 18, 2013, 06:03:40 AM



Title: Extra flag to exclude core when CPU mining
Post by: maplemath on December 18, 2013, 06:03:40 AM
When CPU mining alternative coins, what flag do I need to pass to cgminer to use all but one core? I want to avoid using all cores because it would affect my GPU scrypt hash rate. (I'd like to use the CPU to mine a CPU-friendly coin, which is different from what I mine with the GPUs.)


Title: Re: Extra flag to exclude core when CPU mining
Post by: Mortimer452 on December 18, 2013, 06:09:15 AM
I don't believe there is an option to specify number of course (but I could be mistaken)

However, putting cgminer on low CPU priority works well for me (assuming you are using Windows):

1.  Start cgminer
2.  Open Windows Task Manager
3.  Switch to the "Processes" tab
4.  Find the cgminer.exe process related to your CPU mining
5.  Right-click this process, choose Set Priority -> Low

This will allow this instance of cgminer to use 100% of CPU resources, but allows other tasks to "steal" CPU time if needed


Title: Re: Extra flag to exclude core when CPU mining
Post by: drknife on December 18, 2013, 06:18:01 AM
Don't use cgminer.  Use pooler's cpuminer aka minerd.

Here is original thread. https://bitcointalk.org/index.php?topic=55038.0

There are probably more up to date releases but without knowing your OS I don't want to go searching.

In miners you can use the -t call to specify the number of threads.  So if you have 4 cores you could do "-t 3" and have only 3 threads.  This does not leave an entire core open but it should have all four cores at ~75% usage.  At least that is my experience.


Title: Re: Extra flag to exclude core when CPU mining
Post by: eon89 on December 18, 2013, 06:19:22 AM
-t #

# being the number of cores you want to use.


Title: Re: Extra flag to exclude core when CPU mining
Post by: drknife on December 18, 2013, 07:23:24 AM
-t #

# being the number of cores you want to use.

This does not work for cgminer.  At least for the cgminer I have used.