mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   srsieve/sr2sieve enhancements (https://www.mersenneforum.org/showthread.php?t=15833)

axn 2020-05-21 03:25

[QUOTE=Citrix;546059]Looking at above code from sr1sieve. Can somebody point me to math behind this code. Thanks.[/QUOTE]
It is a consequence of Merten's theorem ([url]https://en.wikipedia.org/wiki/Mertens%27_theorems[/url] - see third theorem)

lukerichards 2020-05-21 09:15

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?

rogue 2020-05-21 12:00

[QUOTE=lukerichards;546082]But does anyone know what's going on here?[/QUOTE]

What are your Power options? Does Windows or your hard drive "go to sleep" if you are not actively using?

lukerichards 2020-05-21 13:24

1 Attachment(s)
[QUOTE=rogue;546089]What are your Power options? Does Windows or your hard drive "go to sleep" if you are not actively using?[/QUOTE]

Nope... power settings attached in screenshot form. Nothing sleeps ever, not even while I'm sleeping.

rogue 2020-05-21 14:18

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?

henryzz 2020-05-21 14:43

Is the CPU clock lowering when locked?

lukerichards 2020-05-21 14:46

[QUOTE=rogue;546103]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?[/QUOTE]

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 2020-05-21 14:49

[QUOTE=henryzz;546105]Is the CPU clock lowering when locked?[/QUOTE]

How would I check?

kruoli 2020-05-26 08:58

[QUOTE=lukerichards;546108]How would I check?[/QUOTE]

You could run [URL="http://www.hwinfo.com"]HWInfo[/URL]. 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.

storm5510 2020-05-26 13:05

[QUOTE=rogue;546103]When locked is a screen saver running? [/QUOTE]

[B]George Woltman[/B], 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.

:smile:

rogue 2020-07-21 12:56

1 Attachment(s)
The only change from 1.1.4 is to replace the error for "all terms divisible by 2" with a warning.


All times are UTC. The time now is 19:51.

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