Join PrimeGrid
Returning Participants
Community
Leader Boards
Results
Other
drummers-lowrise
|
Message boards :
Generalized Fermat Prime Search :
High CPU usage
Author |
Message |
Crun-chi Volunteer tester
 Send message
Joined: 25 Nov 09 Posts: 3233 ID: 50683 Credit: 151,443,349 RAC: 54,956
                         
|
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! | |
|
Reggie 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
                     
|
Probably solved with libsleep. | |
|
WezHSend message
Joined: 9 Jun 11 Posts: 126 ID: 101605 Credit: 789,186,630 RAC: 1,087,355
                           
|
I had same problem, fixed it with libsleep.so
What I had to do and what I am using can found here | |
|
Crun-chi Volunteer tester
 Send message
Joined: 25 Nov 09 Posts: 3233 ID: 50683 Credit: 151,443,349 RAC: 54,956
                         
|
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! | |
|
Crun-chi Volunteer tester
 Send message
Joined: 25 Nov 09 Posts: 3233 ID: 50683 Credit: 151,443,349 RAC: 54,956
                         
|
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! | |
|
compositeVolunteer tester Send message
Joined: 16 Feb 10 Posts: 1150 ID: 55391 Credit: 1,099,750,858 RAC: 812,707
                        
|
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 |