PrimeGrid
Please visit donation page to help the project cover running costs for this month

Toggle Menu

Join PrimeGrid

Returning Participants

Community

Leader Boards

Results

Other

drummers-lowrise

Advanced search

Message boards : Sieving : Help needed with CUDA CPU Load Issue

Author Message
Fire$torm [BlackOps]
Avatar
Send message
Joined: 12 Dec 09
Posts: 9
ID: 51666
Credit: 112,077,380
RAC: 7,134
321 LLR Bronze: Earned 10,000 credits (42,085)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (169,530)PPS LLR Silver: Earned 100,000 credits (263,894)PSP LLR Bronze: Earned 10,000 credits (73,381)SGS LLR Bronze: Earned 10,000 credits (21,041)TRP LLR Bronze: Earned 10,000 credits (18,915)Woodall LLR Silver: Earned 100,000 credits (164,058)321 Sieve (suspended) Bronze: Earned 10,000 credits (48,316)Cullen/Woodall Sieve Ruby: Earned 2,000,000 credits (3,903,690)PPS Sieve Emerald: Earned 50,000,000 credits (82,691,150)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (21,547)TRP Sieve (suspended) Silver: Earned 100,000 credits (123,514)AP 26/27 Gold: Earned 500,000 credits (706,760)GFN Sapphire: Earned 20,000,000 credits (23,829,517)
Message 25858 - Posted: 24 Aug 2010 | 19:02:33 UTC

My System:
CPU: Intel P4 Prescott (LGA 775, Stepping: A, Revision: R0) @3.0Ghz
MB: ASRock 775xFire-RAID
RAM: 1GB DDR2-400
Video (2x) nVidia 8800 GT w/512MB GDDR3 OC'd 705/1757/975
OS: WinXP Pro x64
Uses: BOINC, FTP Server & Multimedia File Server

The Issue:
Today I started the CUDA app for PPSieve and noticed that each wu requires (0.77 CPU + 1.00 GPU). Is it possible to reduce the CPU load via an app_info.xml file?
I have no idea how to set one up from scratch.
Please help.

Thanks in advance,
Fire$torm
____________

Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin)

Profile AlanProject donor
Avatar
Send message
Joined: 8 Oct 08
Posts: 88
ID: 30274
Credit: 19,927,031
RAC: 0
321 LLR Gold: Earned 500,000 credits (512,643)Cullen LLR Silver: Earned 100,000 credits (108,729)PPS LLR Ruby: Earned 2,000,000 credits (2,236,977)PSP LLR Silver: Earned 100,000 credits (219,046)SoB LLR Silver: Earned 100,000 credits (313,785)SGS LLR Amethyst: Earned 1,000,000 credits (1,897,893)TPS LLR (retired) Bronze: Earned 10,000 credits (20,348)TRP LLR Amethyst: Earned 1,000,000 credits (1,415,281)Woodall LLR Silver: Earned 100,000 credits (101,391)321 Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,015,670)Cullen/Woodall Sieve Ruby: Earned 2,000,000 credits (2,473,848)PPS Sieve Turquoise: Earned 5,000,000 credits (7,409,400)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Silver: Earned 100,000 credits (229,489)TRP Sieve (suspended) Silver: Earned 100,000 credits (318,658)AP 26/27 Amethyst: Earned 1,000,000 credits (1,612,729)PSA Bronze: Earned 10,000 credits (41,286)
Message 25859 - Posted: 24 Aug 2010 | 19:16:01 UTC - in response to Message 25858.

Hi Firestorm,

I had this same problem while running two GPUs (both had 0.52 CPU load). The CPU is actually not used as much as indicated in BOINC, and thus I had a needlessly idle core when crunching GPU and CPU tasks. To fix this, I edited my cc_config file to act as if there were 9 cores instead of 8 (go here: http://boinc.berkeley.edu/wiki/Client_configuration for more information on creating a cc_config file).

<cc_config>
<options>
<ncpus>9</ncpus>
</options>
</cc_config>

This allowed me to run 8 CPU tasks and 2 GPU tasks simultaneously and utilize 100% of my CPU rather than the 88% it was using before.

Hope this helps...

Cheers!
Alan
____________

Profile Michael GoetzProject donor
Volunteer moderator
Project administrator
Avatar
Send message
Joined: 21 Jan 10
Posts: 14011
ID: 53948
Credit: 433,244,369
RAC: 880,036
The "Shut up already!" badge:  This loud mouth has mansplained on the forums over 10 thousand times!  Sheesh!!!Discovered the World's First GFN-19 prime!!!Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 2 primes in the 2021 Tour de PrimesFound 2 primes in the 2022 Tour de PrimesFound 1 mega prime in the 2022 Tour de PrimesFound 1 prime in the 2022 Tour de Primes Mountain StageFound 1 prime in the 2023 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (6,638,389)Cullen LLR Turquoise: Earned 5,000,000 credits (5,513,946)ESP LLR Turquoise: Earned 5,000,000 credits (7,150,009)Generalized Cullen/Woodall LLR Turquoise: Earned 5,000,000 credits (5,094,541)PPS LLR Sapphire: Earned 20,000,000 credits (24,049,916)PSP LLR Jade: Earned 10,000,000 credits (11,203,327)SoB LLR Sapphire: Earned 20,000,000 credits (36,067,618)SR5 LLR Sapphire: Earned 20,000,000 credits (21,966,745)SGS LLR Turquoise: Earned 5,000,000 credits (6,361,962)TRP LLR Turquoise: Earned 5,000,000 credits (6,308,522)Woodall LLR Turquoise: Earned 5,000,000 credits (6,390,624)321 Sieve (suspended) Jade: Earned 10,000,000 credits (10,061,196)Cullen/Woodall Sieve Sapphire: Earned 20,000,000 credits (28,391,832)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,059,304)PPS Sieve Sapphire: Earned 20,000,000 credits (22,888,492)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,035,522)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,051,121)AP 26/27 Jade: Earned 10,000,000 credits (17,832,347)GFN Double Bronze: Earned 100,000,000 credits (108,153,926)WW (retired) Emerald: Earned 50,000,000 credits (88,580,000)PSA Jade: Earned 10,000,000 credits (12,445,029)
Message 25862 - Posted: 24 Aug 2010 | 19:52:41 UTC - in response to Message 25858.

each wu requires (0.77 CPU + 1.00 GPU)


You can pretty much ignore that 0.77 number, unless it's stopping BOINC from running a CPU task on each CPU core.

If BOINC is running 2 CPU tasks, just ignore what it says in terms of the CPU usage.

If it's only running one CPU task, what Alan suggested should work -- but I suspect he's running a core i7 with 8 threads. You would want to set ncpus to 3 rather than 9. Be warned, however, that if at any time you're NOT running two GPU tasks, BOINC will run THREE CPU tasks, which will use extra memory (you only have 1 gig), and will waste a lot of CPU cycles task switching the three WUs on your two cores.

I think the better approach is to use a custom app_info, which is what you asked for, but I don't know the details of setting that up.
____________
My lucky number is 75898524288+1

Profile AlanProject donor
Avatar
Send message
Joined: 8 Oct 08
Posts: 88
ID: 30274
Credit: 19,927,031
RAC: 0
321 LLR Gold: Earned 500,000 credits (512,643)Cullen LLR Silver: Earned 100,000 credits (108,729)PPS LLR Ruby: Earned 2,000,000 credits (2,236,977)PSP LLR Silver: Earned 100,000 credits (219,046)SoB LLR Silver: Earned 100,000 credits (313,785)SGS LLR Amethyst: Earned 1,000,000 credits (1,897,893)TPS LLR (retired) Bronze: Earned 10,000 credits (20,348)TRP LLR Amethyst: Earned 1,000,000 credits (1,415,281)Woodall LLR Silver: Earned 100,000 credits (101,391)321 Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,015,670)Cullen/Woodall Sieve Ruby: Earned 2,000,000 credits (2,473,848)PPS Sieve Turquoise: Earned 5,000,000 credits (7,409,400)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Silver: Earned 100,000 credits (229,489)TRP Sieve (suspended) Silver: Earned 100,000 credits (318,658)AP 26/27 Amethyst: Earned 1,000,000 credits (1,612,729)PSA Bronze: Earned 10,000 credits (41,286)
Message 25863 - Posted: 24 Aug 2010 | 20:36:10 UTC - in response to Message 25862.

If it's only running one CPU task, what Alan suggested should work -- but I suspect he's running a core i7 with 8 threads. You would want to set ncpus to 3 rather than 9. Be warned, however, that if at any time you're NOT running two GPU tasks, BOINC will run THREE CPU tasks, which will use extra memory (you only have 1 gig), and will waste a lot of CPU cycles task switching the three WUs on your two cores.


Yes, the example I describe was for a core i7 with 8 threads. I have indeed experienced the problem Michael describes when I ran out of GPU tasks (I had a 0 day work buffer at the time and was having problems obtaining new GPU work). My computer was running 9 CPU tasks on 8 logical cores and the memory load increased significantly. However, I haven't had this problem since I increased my work buffer.

If you or anyone else figures out the custom app_info approach, I'd be very interested in knowing how to set that up...

Cheers!
Alan
____________

samuel7Project donor
Volunteer tester
Avatar
Send message
Joined: 1 May 09
Posts: 89
ID: 39425
Credit: 257,425,010
RAC: 0
Discovered 1 mega prime321 LLR Amethyst: Earned 1,000,000 credits (1,318,762)Cullen LLR Amethyst: Earned 1,000,000 credits (1,016,870)ESP LLR Amethyst: Earned 1,000,000 credits (1,041,614)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (498,931)PPS LLR Ruby: Earned 2,000,000 credits (3,891,834)PSP LLR Ruby: Earned 2,000,000 credits (3,366,212)SoB LLR Amethyst: Earned 1,000,000 credits (1,232,502)SR5 LLR Ruby: Earned 2,000,000 credits (2,019,149)SGS LLR Amethyst: Earned 1,000,000 credits (1,103,015)TRP LLR Amethyst: Earned 1,000,000 credits (1,041,274)Woodall LLR Amethyst: Earned 1,000,000 credits (1,008,741)321 Sieve (suspended) Silver: Earned 100,000 credits (200,596)Cullen/Woodall Sieve Turquoise: Earned 5,000,000 credits (5,002,927)Generalized Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,027,442)PPS Sieve Sapphire: Earned 20,000,000 credits (33,659,062)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,056,828)TRP Sieve (suspended) Ruby: Earned 2,000,000 credits (2,697,243)AP 26/27 Jade: Earned 10,000,000 credits (10,337,885)GFN Double Bronze: Earned 100,000,000 credits (124,966,534)PSA Emerald: Earned 50,000,000 credits (52,937,567)
Message 25864 - Posted: 25 Aug 2010 | 0:14:15 UTC - in response to Message 25858.
Last modified: 25 Aug 2010 | 0:25:24 UTC

You can use this message (long thread) as a starting point. [It does have a little cosmetic typo.] For other apps, just copy corresponding sections from your client_state.xml. You can even use flops values [== app 'speed'] to control runtime estimates.

It is advisable to empty your cache before introducing the app_info file to BOINC.

EDIT: Forgot to answer the OQ: Add

<avg_ncpus>0.040000</avg_ncpus> <max_ncpus>0.040000</max_ncpus>
in the CUDA app_version after <plan_class>, for instance.

Bed time now for me.
____________

Fire$torm [BlackOps]
Avatar
Send message
Joined: 12 Dec 09
Posts: 9
ID: 51666
Credit: 112,077,380
RAC: 7,134
321 LLR Bronze: Earned 10,000 credits (42,085)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (169,530)PPS LLR Silver: Earned 100,000 credits (263,894)PSP LLR Bronze: Earned 10,000 credits (73,381)SGS LLR Bronze: Earned 10,000 credits (21,041)TRP LLR Bronze: Earned 10,000 credits (18,915)Woodall LLR Silver: Earned 100,000 credits (164,058)321 Sieve (suspended) Bronze: Earned 10,000 credits (48,316)Cullen/Woodall Sieve Ruby: Earned 2,000,000 credits (3,903,690)PPS Sieve Emerald: Earned 50,000,000 credits (82,691,150)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (21,547)TRP Sieve (suspended) Silver: Earned 100,000 credits (123,514)AP 26/27 Gold: Earned 500,000 credits (706,760)GFN Sapphire: Earned 20,000,000 credits (23,829,517)
Message 25867 - Posted: 25 Aug 2010 | 7:01:25 UTC - in response to Message 25864.

Thanks guys for the responses. Much appreciated. I prefer the app_info route but will keep the config file in mind. If/when I get the former working I will post and share. :)

Peace.
____________

Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin)

Fire$torm [BlackOps]
Avatar
Send message
Joined: 12 Dec 09
Posts: 9
ID: 51666
Credit: 112,077,380
RAC: 7,134
321 LLR Bronze: Earned 10,000 credits (42,085)Generalized Cullen/Woodall LLR Silver: Earned 100,000 credits (169,530)PPS LLR Silver: Earned 100,000 credits (263,894)PSP LLR Bronze: Earned 10,000 credits (73,381)SGS LLR Bronze: Earned 10,000 credits (21,041)TRP LLR Bronze: Earned 10,000 credits (18,915)Woodall LLR Silver: Earned 100,000 credits (164,058)321 Sieve (suspended) Bronze: Earned 10,000 credits (48,316)Cullen/Woodall Sieve Ruby: Earned 2,000,000 credits (3,903,690)PPS Sieve Emerald: Earned 50,000,000 credits (82,691,150)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (21,547)TRP Sieve (suspended) Silver: Earned 100,000 credits (123,514)AP 26/27 Gold: Earned 500,000 credits (706,760)GFN Sapphire: Earned 20,000,000 credits (23,829,517)
Message 25880 - Posted: 25 Aug 2010 | 23:13:46 UTC - in response to Message 25867.

Update:

OK, here is what worked for me

<app_info> <app> <name>pps_sr2sieve</name> <user_friendly_name>PPS-Sieve (CUDA)</user_friendly_name> </app> <file_info> <name>primegrid_ppsieve_1.27_windows_intelx86__cuda23.exe</name> <executable/> </file_info> <file_info> <name>cudart.dll</name> </file_info> <app_version> <app_name>pps_sr2sieve</app_name> <version_num>127</version_num> <file_ref> <file_name>primegrid_ppsieve_1.27_windows_intelx86__cuda23.exe</file_name> <main_program/> </file_ref> <file_ref> <file_name>cudart.dll</file_name> <open_name>cudart.dll</open_name> </file_ref> <plan_class>cuda23</plan_class> <avg_ncpus>0.040000</avg_ncpus> <max_ncpus>0.040000</max_ncpus> <coproc> <type>CUDA</type> <count>1.000000</count> </coproc> </app_version> </app_info>


There are two things to keep in mind....

1) This setup will only run the GPU app. I tried adding code for the CPU app but could not get both to run concurrently.

2) There is an issue/bug with PG. If primegrid_ppsieve_1.27_windows_intelx86__cuda23.exe and/or cudart.dll do not already exist in the project folder BOINC reports a URL error when trying to download them from primegrid.

Also if you are running BOINC on Linux then all references in the app_info.xml to cudart.dll must be replaced with libcudart.so and primegrid_ppsieve_1.27_windows_intelx86__cuda23.exe replaced with your Linux executable.

Thanks again for the help.

Sincerely,
Fire$torm
____________

Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. (Benjamin Franklin)

Message boards : Sieving : Help needed with CUDA CPU Load Issue

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2023 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 1.30, 1.20, 1.20
Generated 4 Jun 2023 | 8:31:56 UTC