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 : Generalized Fermat Prime Search : High CPU usage

Author Message
Profile Crun-chiProject donor
Volunteer tester
Avatar
Send message
Joined: 25 Nov 09
Posts: 3119
ID: 50683
Credit: 77,391,602
RAC: 44,277
Eliminated 1 conjecture "k"Found 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de PrimesFound 1 prime in the 2022 Tour de Primes321 LLR Silver: Earned 100,000 credits (229,492)Cullen LLR Silver: Earned 100,000 credits (110,733)PPS LLR Sapphire: Earned 20,000,000 credits (23,749,984)PSP LLR Silver: Earned 100,000 credits (104,385)SoB LLR Silver: Earned 100,000 credits (106,117)SR5 LLR Amethyst: Earned 1,000,000 credits (1,240,750)SGS LLR Amethyst: Earned 1,000,000 credits (1,325,726)TRP LLR Gold: Earned 500,000 credits (626,755)Woodall LLR Silver: Earned 100,000 credits (122,944)321 Sieve (suspended) Silver: Earned 100,000 credits (104,900)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (2,000,599)Generalized Cullen/Woodall Sieve (suspended) Gold: Earned 500,000 credits (515,556)PPS Sieve Jade: Earned 10,000,000 credits (11,905,227)TRP Sieve (suspended) Silver: Earned 100,000 credits (255,612)AP 26/27 Ruby: Earned 2,000,000 credits (2,583,960)GFN Sapphire: Earned 20,000,000 credits (23,798,753)WW Amethyst: Earned 1,000,000 credits (1,088,000)PSA Turquoise: Earned 5,000,000 credits (7,522,050)
Message 156326 - Posted: 15 Jul 2022 | 0:08:31 UTC

Hi, I experiment with 1660Ti under Linux and noticed it eat one whole core. Under Windows that is no case.
So is any fix for this ( or maybe this is Linux/driver combination problem)


____________
92*10^1439761-1 NEAR-REPDIGIT PRIME :) :) :)
4 * 650^498101-1 CRUS PRIME
1000032472^131072+1 GENERALIZED FERMAT
Proud member of team Aggie The Pew. Go Aggie!

ReggieProject donor
Volunteer moderator
Project administrator
Volunteer tester
Project scientist
Send message
Joined: 10 May 14
Posts: 219
ID: 311759
Credit: 200,665,243
RAC: 0
Discovered 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 1 mega prime in the 2018 Tour de Primes321 LLR Ruby: Earned 2,000,000 credits (2,046,192)Cullen LLR Ruby: Earned 2,000,000 credits (2,026,465)ESP LLR Ruby: Earned 2,000,000 credits (2,053,710)Generalized Cullen/Woodall LLR Amethyst: Earned 1,000,000 credits (1,221,569)PPS LLR Jade: Earned 10,000,000 credits (10,879,274)PSP LLR Amethyst: Earned 1,000,000 credits (1,587,883)SoB LLR Ruby: Earned 2,000,000 credits (2,305,993)SR5 LLR Ruby: Earned 2,000,000 credits (2,023,467)SGS LLR Ruby: Earned 2,000,000 credits (2,682,790)TRP LLR Amethyst: Earned 1,000,000 credits (1,121,859)Woodall LLR Amethyst: Earned 1,000,000 credits (1,686,633)321 Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,000,211)Generalized Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (2,000,420)PPS Sieve Sapphire: Earned 20,000,000 credits (22,440,747)AP 26/27 Sapphire: Earned 20,000,000 credits (20,526,311)GFN Emerald: Earned 50,000,000 credits (54,814,831)WW Emerald: Earned 50,000,000 credits (50,172,000)PSA Sapphire: Earned 20,000,000 credits (20,070,245)
Message 156327 - Posted: 15 Jul 2022 | 1:52:47 UTC - in response to Message 156326.

Probably solved with libsleep.

WezH
Send message
Joined: 9 Jun 11
Posts: 100
ID: 101605
Credit: 513,035,487
RAC: 1,635,091
Discovered 2 mega primesFound 2 primes in the 2021 Tour de PrimesFound 1 mega prime in the 2021 Tour de PrimesFound 2 primes in the 2022 Tour de PrimesFound 1 mega prime in the 2022 Tour de Primes321 LLR Jade: Earned 10,000,000 credits (10,051,099)Cullen LLR Jade: Earned 10,000,000 credits (10,188,667)ESP LLR Jade: Earned 10,000,000 credits (10,028,597)Generalized Cullen/Woodall LLR Jade: Earned 10,000,000 credits (10,111,654)PPS LLR Sapphire: Earned 20,000,000 credits (45,589,157)PSP LLR Jade: Earned 10,000,000 credits (14,341,709)SoB LLR Sapphire: Earned 20,000,000 credits (23,322,034)SR5 LLR Jade: Earned 10,000,000 credits (10,011,856)SGS LLR Jade: Earned 10,000,000 credits (12,391,173)TRP LLR Turquoise: Earned 5,000,000 credits (5,978,862)Woodall LLR Turquoise: Earned 5,000,000 credits (5,012,148)321 Sieve (suspended) Ruby: Earned 2,000,000 credits (2,489,551)Cullen/Woodall Sieve (suspended) Bronze: Earned 10,000 credits (16,035)Generalized Cullen/Woodall Sieve (suspended) Bronze: Earned 10,000 credits (45,874)PPS Sieve Jade: Earned 10,000,000 credits (12,159,088)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Bronze: Earned 10,000 credits (18,428)TRP Sieve (suspended) Bronze: Earned 10,000 credits (14,729)AP 26/27 Jade: Earned 10,000,000 credits (11,393,174)GFN Double Bronze: Earned 100,000,000 credits (199,236,983)WW Double Bronze: Earned 100,000,000 credits (130,132,000)PSA Gold: Earned 500,000 credits (510,756)
Message 156332 - Posted: 15 Jul 2022 | 4:04:39 UTC

I had same problem, fixed it with libsleep.so

What I had to do and what I am using can found here

Profile Crun-chiProject donor
Volunteer tester
Avatar
Send message
Joined: 25 Nov 09
Posts: 3119
ID: 50683
Credit: 77,391,602
RAC: 44,277
Eliminated 1 conjecture "k"Found 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de PrimesFound 1 prime in the 2022 Tour de Primes321 LLR Silver: Earned 100,000 credits (229,492)Cullen LLR Silver: Earned 100,000 credits (110,733)PPS LLR Sapphire: Earned 20,000,000 credits (23,749,984)PSP LLR Silver: Earned 100,000 credits (104,385)SoB LLR Silver: Earned 100,000 credits (106,117)SR5 LLR Amethyst: Earned 1,000,000 credits (1,240,750)SGS LLR Amethyst: Earned 1,000,000 credits (1,325,726)TRP LLR Gold: Earned 500,000 credits (626,755)Woodall LLR Silver: Earned 100,000 credits (122,944)321 Sieve (suspended) Silver: Earned 100,000 credits (104,900)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (2,000,599)Generalized Cullen/Woodall Sieve (suspended) Gold: Earned 500,000 credits (515,556)PPS Sieve Jade: Earned 10,000,000 credits (11,905,227)TRP Sieve (suspended) Silver: Earned 100,000 credits (255,612)AP 26/27 Ruby: Earned 2,000,000 credits (2,583,960)GFN Sapphire: Earned 20,000,000 credits (23,798,753)WW Amethyst: Earned 1,000,000 credits (1,088,000)PSA Turquoise: Earned 5,000,000 credits (7,522,050)
Message 156339 - Posted: 15 Jul 2022 | 10:18:14 UTC

Thanks for reply and solving solution, but compared to Windows this is still huge problem: under windows with GFN17 I have maybe 1-2% CPU utilization compared to 16-25% under Linux.
And gfsieve show same problem...
____________
92*10^1439761-1 NEAR-REPDIGIT PRIME :) :) :)
4 * 650^498101-1 CRUS PRIME
1000032472^131072+1 GENERALIZED FERMAT
Proud member of team Aggie The Pew. Go Aggie!

Profile Crun-chiProject donor
Volunteer tester
Avatar
Send message
Joined: 25 Nov 09
Posts: 3119
ID: 50683
Credit: 77,391,602
RAC: 44,277
Eliminated 1 conjecture "k"Found 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2019 Tour de PrimesFound 1 prime in the 2020 Tour de PrimesFound 1 prime in the 2021 Tour de PrimesFound 1 prime in the 2022 Tour de Primes321 LLR Silver: Earned 100,000 credits (229,492)Cullen LLR Silver: Earned 100,000 credits (110,733)PPS LLR Sapphire: Earned 20,000,000 credits (23,749,984)PSP LLR Silver: Earned 100,000 credits (104,385)SoB LLR Silver: Earned 100,000 credits (106,117)SR5 LLR Amethyst: Earned 1,000,000 credits (1,240,750)SGS LLR Amethyst: Earned 1,000,000 credits (1,325,726)TRP LLR Gold: Earned 500,000 credits (626,755)Woodall LLR Silver: Earned 100,000 credits (122,944)321 Sieve (suspended) Silver: Earned 100,000 credits (104,900)Cullen/Woodall Sieve (suspended) Ruby: Earned 2,000,000 credits (2,000,599)Generalized Cullen/Woodall Sieve (suspended) Gold: Earned 500,000 credits (515,556)PPS Sieve Jade: Earned 10,000,000 credits (11,905,227)TRP Sieve (suspended) Silver: Earned 100,000 credits (255,612)AP 26/27 Ruby: Earned 2,000,000 credits (2,583,960)GFN Sapphire: Earned 20,000,000 credits (23,798,753)WW Amethyst: Earned 1,000,000 credits (1,088,000)PSA Turquoise: Earned 5,000,000 credits (7,522,050)
Message 156466 - Posted: 24 Jul 2022 | 7:47:16 UTC - in response to Message 156339.

Got it to work under Linux, thanks WezH for help.
Magic part of process is to copy libsleep.so to /usr/local/lib/. It is not working under home or even root directory.
Then you can start your program or service with
LD_PRELOAD="/usr/local/lib/libsleep.so" /path/to /your/app

I changed and compiled with value 60. If you dont make any changes in libsleep.c and compile it then you need to add this

'YIELD_SLEEP_TIME="yourvalue" LD_PRELOAD="/usr/local/lib/libsleep.so" /path/to /your/app

Thanks for solving problem. CPU usage and temperature lower significant and I dont see more then second slower result time.

Perfect!


____________
92*10^1439761-1 NEAR-REPDIGIT PRIME :) :) :)
4 * 650^498101-1 CRUS PRIME
1000032472^131072+1 GENERALIZED FERMAT
Proud member of team Aggie The Pew. Go Aggie!

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 1023
ID: 55391
Credit: 893,692,135
RAC: 138,062
Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2022 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (6,055,323)Cullen LLR Gold: Earned 500,000 credits (776,297)ESP LLR Ruby: Earned 2,000,000 credits (3,433,680)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,443,837)PPS LLR Sapphire: Earned 20,000,000 credits (35,992,304)PSP LLR Turquoise: Earned 5,000,000 credits (6,587,988)SoB LLR Sapphire: Earned 20,000,000 credits (45,081,394)SR5 LLR Turquoise: Earned 5,000,000 credits (6,205,694)SGS LLR Ruby: Earned 2,000,000 credits (3,627,819)TRP LLR Turquoise: Earned 5,000,000 credits (7,078,152)Woodall LLR Amethyst: Earned 1,000,000 credits (1,693,614)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (50,256,050)Cullen/Woodall Sieve (suspended) Turquoise: Earned 5,000,000 credits (5,571,178)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Silver: Earned 200,000,000 credits (463,452,443)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Jade: Earned 10,000,000 credits (10,165,888)TRP Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,071,454)AP 26/27 Turquoise: Earned 5,000,000 credits (6,798,063)GFN Emerald: Earned 50,000,000 credits (57,113,430)WW Turquoise: Earned 5,000,000 credits (8,516,000)PSA Double Bronze: Earned 100,000,000 credits (102,762,384)
Message 156469 - Posted: 24 Jul 2022 | 12:31:35 UTC - in response to Message 156466.

Got it to work under Linux, thanks WezH for help.
Magic part of process is to copy libsleep.so to /usr/local/lib/. It is not working under home or even root directory.
Then you can start your program or service with
LD_PRELOAD="/usr/local/lib/libsleep.so" /path/to /your/app

I changed and compiled with value 60. If you dont make any changes in libsleep.c and compile it then you need to add this

'YIELD_SLEEP_TIME="yourvalue" LD_PRELOAD="/usr/local/lib/libsleep.so" /path/to /your/app

Thanks for solving problem. CPU usage and temperature lower significant and I dont see more then second slower result time.

Perfect!



Instead of copying the library to /usr/local/lib
you may add your own library directory path into a new file in /etc/ld.so.conf.d/
and then run the command ldconfig which rebuilds the loader's path cache.
So for example, if you have /home/guppy/libs/libsleep.so
then as as a user with sudo privilege run these commands once:
sudo echo "/home/guppy/libs" >/etc/ld.so.conf.d/guppy.conf
sudo ldconfig

In general any time you update libraries you must run ldconfig. Linux software updates perform this step.
In some cases when you build software which installs libraries from downloaded source and which uses autotools
("./configure; make; make test; sudo make install") the author didn't include ldconfig and you must do it yourself.

Post to thread

Message boards : Generalized Fermat Prime Search : High CPU usage

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2022 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 2.06, 2.19, 1.77
Generated 25 Sep 2022 | 5:25:43 UTC