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: 3233
ID: 50683
Credit: 151,443,349
RAC: 54,956
Discovered 2 mega primesEliminated 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 PrimesFound 2 primes in the 2023 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 (25,997,810)PSP LLR Ruby: Earned 2,000,000 credits (2,838,382)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,328,241)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 Turquoise: Earned 5,000,000 credits (5,129,666)Generalized Cullen/Woodall Sieve (suspended) Gold: Earned 500,000 credits (515,556)PPS Sieve Jade: Earned 10,000,000 credits (11,935,566)TRP Sieve (suspended) Silver: Earned 100,000 credits (255,612)AP 26/27 Turquoise: Earned 5,000,000 credits (5,612,167)GFN Emerald: Earned 50,000,000 credits (86,678,549)WW (retired) 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^1585996-1 NEAR-REPDIGIT PRIME :) :) :)
4 * 650^498101-1 CRUS PRIME
2022202116^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: 236
ID: 311759
Credit: 238,688,850
RAC: 750,961
Discovered 1 mega primeFound 1 prime in the 2018 Tour de PrimesFound 1 mega prime in the 2018 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (5,037,769)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 Ruby: Earned 2,000,000 credits (2,053,929)PPS LLR Jade: Earned 10,000,000 credits (11,830,554)PSP LLR Ruby: Earned 2,000,000 credits (2,006,539)SoB LLR Ruby: Earned 2,000,000 credits (4,611,565)SR5 LLR Turquoise: Earned 5,000,000 credits (5,046,188)SGS LLR Ruby: Earned 2,000,000 credits (2,682,790)TRP LLR Ruby: Earned 2,000,000 credits (2,016,337)Woodall LLR Ruby: Earned 2,000,000 credits (2,012,569)321 Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,000,211)Cullen/Woodall Sieve Jade: Earned 10,000,000 credits (17,672,722)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 (63,438,439)WW (retired) 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: 126
ID: 101605
Credit: 789,186,630
RAC: 1,087,355
Discovered 4 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 PrimesFound 2 primes in the 2023 Tour de PrimesFound 2 mega primes in the 2023 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 (15,734,896)PPS LLR Emerald: Earned 50,000,000 credits (53,446,522)PSP LLR Sapphire: Earned 20,000,000 credits (25,821,827)SoB LLR Sapphire: Earned 20,000,000 credits (23,322,034)SR5 LLR Jade: Earned 10,000,000 credits (10,186,105)SGS LLR Jade: Earned 10,000,000 credits (12,924,657)TRP LLR Jade: Earned 10,000,000 credits (14,562,196)Woodall LLR Jade: Earned 10,000,000 credits (18,102,819)321 Sieve (suspended) Ruby: Earned 2,000,000 credits (2,489,551)Cullen/Woodall Sieve Jade: Earned 10,000,000 credits (10,420,755)Generalized Cullen/Woodall Sieve (suspended) Bronze: Earned 10,000 credits (45,874)PPS Sieve Sapphire: Earned 20,000,000 credits (23,617,117)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 Sapphire: Earned 20,000,000 credits (26,239,070)GFN Double Silver: Earned 200,000,000 credits (391,292,933)WW (retired) Double Bronze: Earned 100,000,000 credits (130,168,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: 3233
ID: 50683
Credit: 151,443,349
RAC: 54,956
Discovered 2 mega primesEliminated 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 PrimesFound 2 primes in the 2023 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 (25,997,810)PSP LLR Ruby: Earned 2,000,000 credits (2,838,382)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,328,241)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 Turquoise: Earned 5,000,000 credits (5,129,666)Generalized Cullen/Woodall Sieve (suspended) Gold: Earned 500,000 credits (515,556)PPS Sieve Jade: Earned 10,000,000 credits (11,935,566)TRP Sieve (suspended) Silver: Earned 100,000 credits (255,612)AP 26/27 Turquoise: Earned 5,000,000 credits (5,612,167)GFN Emerald: Earned 50,000,000 credits (86,678,549)WW (retired) 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^1585996-1 NEAR-REPDIGIT PRIME :) :) :)
4 * 650^498101-1 CRUS PRIME
2022202116^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: 3233
ID: 50683
Credit: 151,443,349
RAC: 54,956
Discovered 2 mega primesEliminated 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 PrimesFound 2 primes in the 2023 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 (25,997,810)PSP LLR Ruby: Earned 2,000,000 credits (2,838,382)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,328,241)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 Turquoise: Earned 5,000,000 credits (5,129,666)Generalized Cullen/Woodall Sieve (suspended) Gold: Earned 500,000 credits (515,556)PPS Sieve Jade: Earned 10,000,000 credits (11,935,566)TRP Sieve (suspended) Silver: Earned 100,000 credits (255,612)AP 26/27 Turquoise: Earned 5,000,000 credits (5,612,167)GFN Emerald: Earned 50,000,000 credits (86,678,549)WW (retired) 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^1585996-1 NEAR-REPDIGIT PRIME :) :) :)
4 * 650^498101-1 CRUS PRIME
2022202116^131072+1 GENERALIZED FERMAT
Proud member of team Aggie The Pew. Go Aggie!

Profile composite
Volunteer tester
Send message
Joined: 16 Feb 10
Posts: 1150
ID: 55391
Credit: 1,099,750,858
RAC: 812,707
Discovered 2 mega primesFound 1 prime in the 2018 Tour de PrimesFound 1 prime in the 2022 Tour de PrimesFound 1 prime in the 2023 Tour de Primes321 LLR Turquoise: Earned 5,000,000 credits (8,509,886)Cullen LLR Ruby: Earned 2,000,000 credits (3,619,286)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 (45,895,472)PSP LLR Turquoise: Earned 5,000,000 credits (7,464,143)SoB LLR Emerald: Earned 50,000,000 credits (50,433,563)SR5 LLR Turquoise: Earned 5,000,000 credits (7,172,707)SGS LLR Turquoise: Earned 5,000,000 credits (6,349,884)TRP LLR Turquoise: Earned 5,000,000 credits (7,584,042)Woodall LLR Amethyst: Earned 1,000,000 credits (1,780,886)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (50,256,050)Cullen/Woodall Sieve Sapphire: Earned 20,000,000 credits (26,732,542)Generalized Cullen/Woodall Sieve (suspended) Emerald: Earned 50,000,000 credits (50,009,610)PPS Sieve Double Gold: Earned 500,000,000 credits (502,721,222)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 Emerald: Earned 50,000,000 credits (84,367,061)GFN Emerald: Earned 50,000,000 credits (88,018,281)WW (retired) Sapphire: Earned 20,000,000 credits (20,000,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 - 2023 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 0.89, 1.23, 1.46
Generated 7 Jun 2023 | 1:38:00 UTC