mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2020-05-21, 03:25   #265
axn
 
axn's Avatar
 
Jun 2003

22·11·107 Posts
Default

Quote:
Originally Posted by Citrix View Post
Looking at above code from sr1sieve. Can somebody point me to math behind this code. Thanks.
It is a consequence of Merten's theorem (https://en.wikipedia.org/wiki/Mertens%27_theorems - see third theorem)
axn is offline   Reply With Quote
Old 2020-05-21, 09:15   #266
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

28810 Posts
Default

I have had srsieve running on my laptop for the past few weeks.

I have 4 instances of it open in 4 seperate Windows PowerShells. All writing to seperate .out files every 10 minutes.

I also have a python script running which reads all 4 .out files every 10 minutes, counts how many entries are present in ALL 4 lists and records how many terms there are remaining.

The python script also outputs the average time taken, in minutes, for each term eliminated over the past 5 hours.

So here's the odd thing...

Every night I lock my computer and go to bed, leaving srsieve running. I wake up, unlock the computer and check the python shell output.

This morning shows that the srsieve had been eliminating 1 term every 27 minutes on average over the past 5 hours. Within 2.5 hours of actively using the laptop for work, this average has dropped to 18 minutes.

This is a recurring pattern... I wake up in the morning and srsieve has slowed down considerably overnight. Srsieve picks up again when I unlock the computer and start using it for other things. It has followed the same pattern every morning since I first noticed it a week ago.

This is possibly *not* an srsieve specific query - it might be more likely to do with how Windows runs while locked.

But does anyone know what's going on here?
lukerichards is offline   Reply With Quote
Old 2020-05-21, 12:00   #267
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

10111001100002 Posts
Default

Quote:
Originally Posted by lukerichards View Post
But does anyone know what's going on here?
What are your Power options? Does Windows or your hard drive "go to sleep" if you are not actively using?
rogue is offline   Reply With Quote
Old 2020-05-21, 13:24   #268
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

25·32 Posts
Default

Quote:
Originally Posted by rogue View Post
What are your Power options? Does Windows or your hard drive "go to sleep" if you are not actively using?
Nope... power settings attached in screenshot form. Nothing sleeps ever, not even while I'm sleeping.
Attached Thumbnails
Click image for larger version

Name:	power_options.PNG
Views:	37
Size:	19.6 KB
ID:	22415  
lukerichards is offline   Reply With Quote
Old 2020-05-21, 14:18   #269
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24·7·53 Posts
Default

When locked is a screen saver running? Can you take a look to see if something else is running that is stealing CPU cycles, e.g. malware?
rogue is offline   Reply With Quote
Old 2020-05-21, 14:43   #270
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

11×521 Posts
Default

Is the CPU clock lowering when locked?
henryzz is offline   Reply With Quote
Old 2020-05-21, 14:46   #271
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

25·32 Posts
Default

Quote:
Originally Posted by rogue View Post
When locked is a screen saver running? Can you take a look to see if something else is running that is stealing CPU cycles, e.g. malware?
It's a work computer (which our Ts and Cs do allow us to use for personal projects if they don't put any strain on the network infrastructure at work) so there are lots of things running which I wouldn't normally have running on my own computer.

Scanning down the active processes list, I notice a few things that might potentially update/sync/run at night/downtime or something similar not least various incarnations nof Sophos virus scanning/security services.

Tonight I'll have a look at disabling anything non-critical and see how it fares by the morning.
lukerichards is offline   Reply With Quote
Old 2020-05-21, 14:49   #272
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

25·32 Posts
Default

Quote:
Originally Posted by henryzz View Post
Is the CPU clock lowering when locked?
How would I check?
lukerichards is offline   Reply With Quote
Old 2020-05-26, 08:58   #273
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

2×163 Posts
Default

Quote:
Originally Posted by lukerichards View Post
How would I check?
You could run HWInfo. This program is able to log the current frequency of your processor over night. It can also log a ton of more things, maybe this is helpful in your case.
kruoli is offline   Reply With Quote
Old 2020-05-26, 13:05   #274
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
U.S.A.

22×401 Posts
Default

Quote:
Originally Posted by rogue View Post
When locked is a screen saver running?
George Woltman, a.k.a. "Prime95", wrote something about screen savers. He indicated to never use one which would require mathematical calculations when running. The majority of them do. He recommends just a blank screen. Windows has had this for many years. I know Ubuntu Linux has it as well.

storm5510 is offline   Reply With Quote
Old 2020-07-21, 12:56   #275
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

134608 Posts
Default

The only change from 1.1.4 is to replace the error for "all terms divisible by 2" with a warning.
Attached Files
File Type: 7z srsieve_1.1.5.7z (169.6 KB, 42 views)
rogue is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sieving twins with srsieve henryzz Twin Prime Search 0 2014-03-18 12:44
Intel announces multi-core enhancements for Haswell chips ixfd64 Hardware 8 2012-02-10 20:32
LLRnet enhancements kar_bon No Prime Left Behind 10 2008-03-28 11:21
TODO list and suggestions/comments/enhancements Greenbank Octoproth Search 2 2006-12-03 17:28
Suggestions for future enhancements Reboot It Software 16 2003-10-17 01:31

All times are UTC. The time now is 23:57.

Tue Oct 20 23:57:52 UTC 2020 up 40 days, 21:08, 0 users, load averages: 1.42, 1.72, 1.83

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.