mersenneforum.org  

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

Reply
 
Thread Tools
Old 2010-03-16, 13:37   #1
AZMango
 
Mar 2010

3·5 Posts
Question CPU Speed Incorrect

I moved my Prime95 folder to a new Core i7 920 PC and when I checked the 'Options', 'CPU' it shows the right processor, but has the speed as 450 MHz. I had this same problem once before when I upgraded. As a result, Prime95 thinks it's going to take months to finish one LL test. At one time I did have a 450 MHz CPU, but that was long ago, obviously.

I did a test and installed Prime95 into a new directory instead of over the old one. In this case the CPU speed shows as 2659.63, which is correct. However, Prime95 won't run since it has two errors: Unable to open spool file, and Unable to open log file.

Is there a way to correct this situation?
AZMango is offline   Reply With Quote
Old 2010-03-16, 14:32   #2
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17×251 Posts
Default

Are you using a recent version? (newest on the site is 25.9) If you have an older version, try upgrading it.
Have you set this option to tell it that the CPU is only 450 MHz?
Code:
The program automatically computes the number of CPUs, hyperthreading, and speed.
This information is used to calculate how much work to get.
If the program did not correctly figure out your CPU information,
you can override the info in local.txt:
    NumCPUs=n
    CpuNumHyperthreads=1 or 2
    CpuSpeed=s
Where n is the number of physical CPUs or cores, not logical CPUs created by
hyperthreading. Choose 1 for non-hyperthreaded and 2 for hyperthreaded. Finally,
s is the speed in MHz.
You might want to use that to set it to the right speed.
Mini-Geek is offline   Reply With Quote
Old 2010-03-17, 00:20   #3
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

1E0C16 Posts
Default

Quote:
Originally Posted by AZMango View Post
I did a test and installed Prime95 into a new directory instead of over the old one. In this case the CPU speed shows as 2659.63, which is correct. However, Prime95 won't run since it has two errors: Unable to open spool file, and Unable to open log file.

Is there a way to correct this situation?
Yes.

Make a backup of your old Prime95 folder. Then move your new folder over the old one.

Under Windows Vista or Windows 7, programs that are installed under your Program Files directory cannot write a file into their own folder. Hence, the "Unable to open" errors. Apparently your previous prime95 folder was somewhere other than under your Program Files directory, and that was fine. Move your new prime95 there, too.

- - -

There is another way to solve the problem, without moving your new prime95 out from under Program Files.

Read the undoc.txt file in your prime95 folder. It explains how to specify a working directory that is different from the directory where prime95 resides:

Quote:
In prime.txt <snip>
You can also change the working directory (identical to the -W command line
argument).

< snip >

WorkingDir=your_directory_name

Last fiddled with by cheesehead on 2010-03-17 at 00:30
cheesehead is offline   Reply With Quote
Old 2010-03-20, 20:29   #4
AZMango
 
Mar 2010

3×5 Posts
Smile

Quote:
Originally Posted by Mini-Geek View Post
Are you using a recent version? (newest on the site is 25.9) If you have an older version, try upgrading it.
Have you set this option to tell it that the CPU is only 450 MHz?
Code:
The program automatically computes the number of CPUs, hyperthreading, and speed.
This information is used to calculate how much work to get.
If the program did not correctly figure out your CPU information,
you can override the info in local.txt:
    NumCPUs=n
    CpuNumHyperthreads=1 or 2
    CpuSpeed=s
Where n is the number of physical CPUs or cores, not logical CPUs created by
hyperthreading. Choose 1 for non-hyperthreaded and 2 for hyperthreaded. Finally,
s is the speed in MHz.
You might want to use that to set it to the right speed.
I had already managed to get it working correctly somehow, but I also had the same incorrect CPU speed on another PC. I checked the local.txt and there was a line in there saying the PC was 1400 instead of the 3400 it actually is. I replaced that and now it is correct.

For future reference, is it safe to just delete the local.txt file before starting? Or, can I go in there and delete those incorrect lines before migrating to a new PC? In any case, at least I now know where the problem is.

Thanks for the help.
AZMango is offline   Reply With Quote
Old 2010-03-20, 20:31   #5
AZMango
 
Mar 2010

11112 Posts
Default

Quote:
Originally Posted by cheesehead View Post
Yes.

Make a backup of your old Prime95 folder. Then move your new folder over the old one.

Under Windows Vista or Windows 7, programs that are installed under your Program Files directory cannot write a file into their own folder. Hence, the "Unable to open" errors. Apparently your previous prime95 folder was somewhere other than under your Program Files directory, and that was fine. Move your new prime95 there, too.

- - -

There is another way to solve the problem, without moving your new prime95 out from under Program Files.

Read the undoc.txt file in your prime95 folder. It explains how to specify a working directory that is different from the directory where prime95 resides:
With some trial and error I did finally get it to run correctly with the correct CPU speed. I also checked my local.txt on another PC with the same problem and I'm sure the CPU speed was marked incorrectly in this one as well. Thanks for the help.
AZMango is offline   Reply With Quote
Old 2010-03-20, 20:48   #6
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

102538 Posts
Default

Quote:
Originally Posted by AZMango View Post
For future reference, is it safe to just delete the local.txt file before starting? Or, can I go in there and delete those incorrect lines before migrating to a new PC? In any case, at least I now know where the problem is.
When copying Prime95 to a new PC, you should delete local.txt before starting.
When you won't be resuming old work (e.g. you're adding a new machine), also delete worktodo.txt and any checkpoint files (usually start with p and have no file extension or are marked .bu).

Last fiddled with by Mini-Geek on 2010-03-20 at 20:52
Mini-Geek is offline   Reply With Quote
Old 2010-03-20, 21:17   #7
cheesehead
 
cheesehead's Avatar
 
"Richard B. Woods"
Aug 2002
Wisconsin USA

22·3·641 Posts
Default

Quote:
Originally Posted by AZMango View Post
With some trial and error I did finally get it to run correctly with the correct CPU speed. I also checked my local.txt on another PC with the same problem and I'm sure the CPU speed was marked incorrectly in this one as well. Thanks for the help.
Perhaps I didn't make it clear that my post #3 was about your unable-to-open errors, not about your CPU speed.
cheesehead is offline   Reply With Quote
Old 2010-03-20, 21:53   #8
AZMango
 
Mar 2010

3×5 Posts
Smile

Quote:
Originally Posted by cheesehead View Post
Perhaps I didn't make it clear that my post #3 was about your unable-to-open errors, not about your CPU speed.
Sorry. Guess I meant that I ended up fixing that problem as well since I figured the problem with those errors might be where the directory was, so I made a new Prime95 temp directory and once things were working correctly there I deleted the old directory. The CPU Speed and errors went away at the same time.
AZMango is offline   Reply With Quote
Old 2010-03-20, 21:55   #9
AZMango
 
Mar 2010

3×5 Posts
Thumbs up

Quote:
Originally Posted by Mini-Geek View Post
When copying Prime95 to a new PC, you should delete local.txt before starting.
When you won't be resuming old work (e.g. you're adding a new machine), also delete worktodo.txt and any checkpoint files (usually start with p and have no file extension or are marked .bu).
I'll have to remember that for future reference. I think what happened before was that I had upgraded my system with a new motherboard and CPU. I assume it can't hurt to delete the local.txt in that case, either.
AZMango is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Incorrect result bayanne Information & Answers 2 2013-12-01 09:18
New 365 day User Summary incorrect??? petrw1 PrimeNet 1 2009-10-30 16:46
Incorrect totals in stats Flatlander No Prime Left Behind 1 2008-12-01 23:16
PRP v2.3, incorrect results for k > 2^32 Angular Math 6 2002-09-26 02:28
Incorrect CPU profile in 22.9 and 22.8 sdbardwick Software 5 2002-09-22 19:49

All times are UTC. The time now is 15:13.


Mon Aug 2 15:13:56 UTC 2021 up 10 days, 9:42, 0 users, load averages: 2.10, 2.67, 3.01

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.