CPU core Usage

Message boards : Number crunching : CPU core Usage
Message board moderation

To post messages, you must log in.

Previous · 1 · 2

AuthorMessage
Darth Beaver Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Avatar

Send message
Joined: 20 Aug 99
Posts: 6728
Credit: 21,443,075
RAC: 3
Australia
Message 1786080 - Posted: 9 May 2016, 7:45:27 UTC - in response to Message 1786079.  
Last modified: 9 May 2016, 7:47:44 UTC

Still - my I-5 (4-cores) can run 4 CPU and 3 GPU if I set:
<max_concurrent>9</max_concurrent>
<gpu_versions>
<gpu_usage>0.33</gpu_usage>
<cpu_usage>0.3</cpu_usage>
</gpu_versions>

and 100% CPU in Boinc

using:
<max_concurrent>9</max_concurrent>
<gpu_versions>
<gpu_usage>0.33</gpu_usage>
<cpu_usage>0.4</cpu_usage>
</gpu_versions>

will give me 3 CPU and 3 GPU as 3*0.4 > 1


yes , 0.4 x 3 = 1.2 effectively 2 cores so 1 less CPU unit
ID: 1786080 · Report as offensive
Profile Zalster Special Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 27 May 99
Posts: 5517
Credit: 528,817,460
RAC: 242
United States
Message 1786081 - Posted: 9 May 2016, 7:49:24 UTC - in response to Message 1786080.  

Can I add something to the discussion?

It's a lengthy answer so please give me a few minutes
ID: 1786081 · Report as offensive
Jeanette
Volunteer tester

Send message
Joined: 25 Apr 15
Posts: 55
Credit: 7,827,469
RAC: 0
Denmark
Message 1786082 - Posted: 9 May 2016, 7:49:47 UTC - in response to Message 1786080.  

I have a feeling that my english is not good enough and we are saying the same in different ways.
My I-5 definately runs 3 CPU and 3 GPU with the last setting, and I read you to say I only run 2 CPU and 3 GPU, but my Boinc tell me different.
ID: 1786082 · Report as offensive
Profile Zalster Special Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 27 May 99
Posts: 5517
Credit: 528,817,460
RAC: 242
United States
Message 1786083 - Posted: 9 May 2016, 7:54:22 UTC

I think there are 2 misconceptions going on here.

Let's just leave Max concurrent out of this for now.

This is how it was explained to me

You have 3 GPU work units using 0.3 CPU so 0.9 CPU total

0.9 is less than an a whole number, as such the system doesn't do partials it will round down to 0 ( I think it ends up stealing a little bit of CPU time from the CPUs that are crunching)

So setting the percentage of CPU used to 50% (which is 4 of the 8)

With a value of 0.3 per GPU work units, you will have 4 CPU work units and 3 GPU work units.

When the value is changed to 0.4 per GPU work unit, you get 1.2 or 1 (as it's rounded down)

Therefore you would have 3 CPU work units and 3 GPU work units.
ID: 1786083 · Report as offensive
Jeanette
Volunteer tester

Send message
Joined: 25 Apr 15
Posts: 55
Credit: 7,827,469
RAC: 0
Denmark
Message 1786084 - Posted: 9 May 2016, 7:57:20 UTC - in response to Message 1786083.  

Agreed - that's what I try to say.
ID: 1786084 · Report as offensive
Profile Zalster Special Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 27 May 99
Posts: 5517
Credit: 528,817,460
RAC: 242
United States
Message 1786085 - Posted: 9 May 2016, 8:10:56 UTC - in response to Message 1786084.  

Now, as to why you would want a max concurrent.

In multiple GPU systems, you would want to have an extra CPU core to support feeding work to the GPUs.

You can do this by allowing the computer to use all of the cores of the CPU and not running any work on the CPU.

But some people want to crunch on the CPU as well as the GPU.

Here's where we argue the best way to do this.

So people say you figure out how much CPU the GPUs need and then you subtract that from the total number of CPU cores. Then you decide on how many CPU work units you want and also subtract that as well.

Example..

8 core CPU with 2 GPU running 3 apiece at 0.4 per work is 2.4 or 2 cores

I want to run 4 CPU( 1 core a piece) as well

so 2 + 4 is 6

So I want to use 6 of the 8 cores so they say set max % at 75

But we still need that extra core to support the GPUs so we really need 7 of 8 cores but you can't tell the computer to use 87.5 because it will add another CPU work unit.

So how do you get that extra core to support the GPU?

I don't believe you can this way. Some people will say, it will use 1 of the 2 core that you told the computer it can not use. Sounds like double speak to me.

This is where the Max concurrent comes in.

we set use at most to 100% of all cores

Then we set max concurrent to 10 (6 work units on the 2 GPU and 4 work units on the CPU) that leave the last 2 core free to support both the GPU and the OS of the machine.
ID: 1786085 · Report as offensive
Profile tullio
Volunteer tester

Send message
Joined: 9 Apr 04
Posts: 8797
Credit: 2,930,782
RAC: 1
Italy
Message 1786087 - Posted: 9 May 2016, 8:36:24 UTC

I am running SETI@home, SETI@home Beta, vLHC@home and CPDN.net on an Opteron 1210 at 1.8 GHz with 2 cores. From the "top" Linux command I see that CPDN and vLHC@home all use 75% CPU, while the GPU SETI task on an AMD HD 7770 uses 17% CPU. All this standard, without any app_config.xml file.
Tullio
ID: 1786087 · Report as offensive
Profile Jim Bohan
Avatar

Send message
Joined: 23 Dec 01
Posts: 58
Credit: 65,355,247
RAC: 6
United States
Message 1786134 - Posted: 9 May 2016, 13:54:33 UTC

Boy, this is a lot of info to absorb :-)
I copied the xml file and put it in my BOINC directory ( I assume that's where it goes). Re-started BOINC and was still only using 3 of the 4 cores. Tried some of the modifications to the XML file and still just 3 cores were running.
In my case I just deleted BOINC and re-installed it. Now all four cores are processing.

I am still a little confused on the GPU angle. I can have the GPU run more than 1 CUDA process on one GPU card?

I do appreciate all the info.

<< Jim >>
Member
B-52 Stratofortress
Association
Retired Air Force
ID: 1786134 · Report as offensive
Darth Beaver Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Avatar

Send message
Joined: 20 Aug 99
Posts: 6728
Credit: 21,443,075
RAC: 3
Australia
Message 1786136 - Posted: 9 May 2016, 13:56:43 UTC

Zeltar you don't need to have the Cpu set to 0.4

0.25 is enough therefore 1 CPU core can do 4 , it's only older Chips or slower chips you may wish to increase the CPU to more

as for muti GPU's yes you would expect 1 CPU core per GPU

leaving 6 CPU cores free on 8 core chip for CPU units

Depending on your Chip like the AMD FX when doing AP's you will need to leave 1 core per unit but not MB

if you set the Bionc client to 50 % on a 4 core system you will lose a CPU , one core for the GPU

as for having maxconcurrent i'll leave it to others to explain , all I'm pointing out with it is if you use the app-inf.xml in this thread that it does need to be set high enough to allow you to do the units you expect and seti V7 are now longer being continued there are only 158 more units out in the field before there all done .Check the server page
ID: 1786136 · Report as offensive
Jeanette
Volunteer tester

Send message
Joined: 25 Apr 15
Posts: 55
Credit: 7,827,469
RAC: 0
Denmark
Message 1786139 - Posted: 9 May 2016, 14:10:11 UTC - in response to Message 1786134.  
Last modified: 9 May 2016, 14:16:14 UTC

I can have the GPU run more than 1 CUDA process on one GPU card?

Definately, depending on the card you can run 3 or 4 wu concurrently on one card if it's fast enough.
My I-5 has one GTX 970 and run 3 concurrent Lunatics GPU-job.
My I-7 has one GTX970M (for mobile) and run 3 concurrent standard GPU-job.

Each job takes longer time to complete than running only one, but I get 3 job done in about 1.5 the time of one.

I'm not sure how many your GTX 260 can run but it might run 2, your GTX 550TI definately can.
That would be these settings:

<app>
<name>setiathome_v8</name>
<max_concurrent>9</max_concurrent>
<gpu_versions>
<gpu_usage>0.5</gpu_usage>
<cpu_usage>0.3</cpu_usage>
</gpu_versions>
</app>


The app_config.xml goes in the:
..\BOINC\projects\setiathome.berkeley.edu
folder
ID: 1786139 · Report as offensive
Profile Jim Bohan
Avatar

Send message
Joined: 23 Dec 01
Posts: 58
Credit: 65,355,247
RAC: 6
United States
Message 1786155 - Posted: 9 May 2016, 15:26:46 UTC

OK, I didn't have the directories im my BOINC directory so I created them and put the app_config.xml file in it. Exited BOINC and re-started.still only using 1 CUDA process on both machines, Kirk and Spock. Is that file suppose to be in a different directory?
My directory structure is:
C:\users\jim\BOINC\projects\setiathome.berkeley.edu\app_config.xml

<< Jim >>
Member
B-52 Stratofortress
Association
Retired Air Force
ID: 1786155 · Report as offensive
Darth Beaver Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Avatar

Send message
Joined: 20 Aug 99
Posts: 6728
Credit: 21,443,075
RAC: 3
Australia
Message 1786156 - Posted: 9 May 2016, 15:27:23 UTC - in response to Message 1786139.  

My I-7 has one GTX970M (for mobile) and run 3 concurrent standard GPU-job.


Just a warning IT's a Laptop not good to run them 24/7 @ 100% unless you can replace it in 18 months or less there not designed for that at least not the way Seti or some of the other projects work the computer

I mite think of it as 24/7 benchmarking the Laptop and there just not up to it like a desktop/server

with Luna you will be using app_inf.xml and not app_config.xml :-)
ID: 1786156 · Report as offensive
Darth Beaver Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Avatar

Send message
Joined: 20 Aug 99
Posts: 6728
Credit: 21,443,075
RAC: 3
Australia
Message 1786160 - Posted: 9 May 2016, 15:33:35 UTC - in response to Message 1786155.  
Last modified: 9 May 2016, 15:34:09 UTC

Kirk and Spock. Is that file suppose to be in a different directory?
My directory structure is:
C:\users\jim\BOINC\projects\setiathome.berkeley.edu\app_config.xml


SPOOK here looks correct the root folder of seti@home.bearkly.edu so yes
ID: 1786160 · Report as offensive
Jeanette
Volunteer tester

Send message
Joined: 25 Apr 15
Posts: 55
Credit: 7,827,469
RAC: 0
Denmark
Message 1786193 - Posted: 9 May 2016, 16:50:47 UTC - in response to Message 1786156.  

Just a warning IT's a Laptop not good to run them 24/7 @ 100% unless you can replace it in 18 months or less there not designed for that at least not the way Seti or some of the other projects work the computer

I mite think of it as 24/7 benchmarking the Laptop and there just not up to it like a desktop/server

with Luna you will be using app_inf.xml and not app_config.xml :-)


I use "Open Hardware Monitor" to keep an eye on my Laptop and run "Use at most 40% of CPU" plus I don't run 24/7.

Luna is on the I-5 desktop and I do use app_info there. Before I switched to Luna I ran standard apps with the same setup in app_config running 4 CPU + 3 GPU. I have changed that to 3 CPU and 3 GPU running Luna.
ID: 1786193 · Report as offensive
Stephen "Heretic" Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 20 Sep 12
Posts: 5557
Credit: 192,787,363
RAC: 628
Australia
Message 1786350 - Posted: 10 May 2016, 5:03:39 UTC - in response to Message 1786032.  

I have a FX4170 with 3 cores maxed out. The 4th is feeding a GPU and doing what ever else I want to run.

Check BOINC manager. Having to use my memory. On my mobile. Check preferences to see if CPU% use is 100. If set to 99 it will use 3 cores. Tbar showed me that.



. . Wouldn't the CPU Core usage be the one to set to 100%?

. . I have mine set to 75% to restrict my core i5 to just 3 CPU cores crunching with one free (No GPU running, my advice is never, ever run GPU crunching on the internal iGPU) and the CPU Time Usage to 100%. I am running BOINC 7.6.22 and it has the two options.
ID: 1786350 · Report as offensive
Jeanette
Volunteer tester

Send message
Joined: 25 Apr 15
Posts: 55
Credit: 7,827,469
RAC: 0
Denmark
Message 1786364 - Posted: 10 May 2016, 6:37:10 UTC - in response to Message 1786350.  

my advice is never, ever run GPU crunching on the internal iGPU


I second that - the IGPU produces much to much heat and isn't effective compared to the CPU.
ID: 1786364 · Report as offensive
Profile Jim Bohan
Avatar

Send message
Joined: 23 Dec 01
Posts: 58
Credit: 65,355,247
RAC: 6
United States
Message 1787189 - Posted: 13 May 2016, 2:36:20 UTC

Well I finally got the computers to run multiple CUDA WU's.
Thanks to everyone on the great tutorial on the app_config file. I have been running SETI since 2000-2001 and never realized you could do this. I always thought 1 GPU card, 1 CUDA process. Hell, I could have had another 10M WU's in that time.

Again, thank you :-)
Member
B-52 Stratofortress
Association
Retired Air Force
ID: 1787189 · Report as offensive
Previous · 1 · 2

Message boards : Number crunching : CPU core Usage


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.