mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Twin Prime Search

Reply
 
Thread Tools
Old 2010-09-30, 18:46   #309
Oddball
 
Oddball's Avatar
 
May 2010

1F316 Posts
Default

Quote:
Originally Posted by Ken_g6 View Post
FYI, I have a new version of TPSieve out, based on and in the same archive with the newer PPSieve, v0.3.10 (source)

Despite being newer, this version is unfortunately a little slower in many cases. But it's likely to be faster for people with AMD processors.
On my Phenom II X6 1055T:

32 bit SSE2 old version: 138M p/sec
32 bit SSE2 new version: 131M p/sec

64 bit old version: 85M p/sec
64 bit new version: 163M p/sec

Good job!
Oddball is offline   Reply With Quote
Old 2010-10-22, 01:41   #310
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

624910 Posts
Default

I just noticed something rather odd with tpsieve (CPU) today. All along, I have been using a batch file to run the tpsieve commands for my sieving ranges here, and currently it looks like:

tpsieve-x86-windows-sse2.exe -i 480000-484999_30aug2010.txt -p 1450e12 -P 1455e12 -N 485000

As in the officially suggested command line from the variable-n sieve reservation thread, I have the "-N 485000" parameter on there. But, I got to thinking just now that it was really rather redundant since we're running with a sieve file. So, I tried leaving it off once, and was surprised to see that memory usage jumped to over a gigabyte! Normally, it's only 25MB or so once it gets into the main sieve loop. Needless to say, I changed it back and restarted the program right away (having only 2 GB of total RAM in the system).

Ken, any idea why this is? At first I thought that including the "-N 485000" parameter might be forcing it into no-sieve-file mode, but that can't be since it takes a good 45-60 seconds to load the sieve file each time I run the program. Surely it would be skipping that part if it was really running without a sieve file. Yet if it's got the whole sieve file in there somewhere, how come it's only using 25 MB of memory? (FYI, it does have 1 GB of virtual memory allocated...though that would raise the question of why all that's in virtual memory with -N 485000, but in active memory without it.)
mdettweiler is offline   Reply With Quote
Old 2010-10-22, 06:20   #311
Ken_g6
 
Ken_g6's Avatar
 
Jan 2005
Caught in a sieve

2×197 Posts
Default

Quote:
Originally Posted by mdettweiler View Post
(FYI, it does have 1 GB of virtual memory allocated...though that would raise the question of why all that's in virtual memory with -N 485000, but in active memory without it.)
That would seem to be the correct question. -N might crop out some N's from the sieve file that aren't in the range you want to sieve. That would save memory, but it would also decrease the virtual memory use.

Edit: The reason to use -k, -K, and -N (and -n? I'll have to check on that.) is to avoid a first pass on the sieve file to find those values.

Last fiddled with by Ken_g6 on 2010-10-22 at 06:21
Ken_g6 is offline   Reply With Quote
Old 2010-10-22, 18:41   #312
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 Posts
Default

Quote:
Originally Posted by Ken_g6 View Post
That would seem to be the correct question. -N might crop out some N's from the sieve file that aren't in the range you want to sieve. That would save memory, but it would also decrease the virtual memory use.

Edit: The reason to use -k, -K, and -N (and -n? I'll have to check on that.) is to avoid a first pass on the sieve file to find those values.
Hmm, I see. Might the "first pass" on the sieve file load it into active memory, but the "second pass" into virtual memory if the former wasn't done already--even though the end result is of course the same (possibly a bug)?
mdettweiler is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
S9 and general sieving discussion Lennart Conjectures 'R Us 31 2014-09-14 15:14
Sieving discussion thread philmoore Five or Bust - The Dual Sierpinski Problem 66 2010-02-10 14:34
Combined sieving discussion ltd Prime Sierpinski Project 76 2008-07-25 11:44
Sieving Discussion ltd Prime Sierpinski Project 26 2005-11-01 07:45
Sieving Discussion R.D. Silverman Factoring 7 2005-09-30 12:57

All times are UTC. The time now is 21:34.

Sat Sep 19 21:34:04 UTC 2020 up 9 days, 18:45, 1 user, load averages: 1.24, 1.50, 1.60

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.