mersenneforum.org  

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

Reply
 
Thread Tools
Old 2003-09-27, 01:06   #1
smoffat
 
Sep 2002

208 Posts
Default

I am using V23.7 on a P4,3G. I am consistently getting .041 iteration times which is slower than on my P4,2.5G machine @0.40 per iteration and 100% utilization. Task manager says that the CPU is only at 50% utilization on the newer machine. I know that George says that Hyper Threading may be a partial cause for the CPU utilitzation, but whats up with the iteration times. I am running XP Home with the latest patches on both.

I am pretty sure that I started out with V22.? when I first got the machine and iteration times were much lower.

Last fiddled with by smoffat on 2003-09-27 at 01:08
smoffat is offline   Reply With Quote
Old 2003-09-27, 04:29   #2
QuintLeo
 
QuintLeo's Avatar
 
Oct 2002
Lost in the hills of Iowa

26×7 Posts
Default

Try disabling HyperThreading in your BIOS (by report, some have an option to do so).

There are a LOT of applications that run SLOWER when HyperTreading is enables than when it is disabled - Intel's PR to the contrary, HyperThreading does NOT help on a majority of applications, and RARELY helps if the application is coded for maximal efficiency on a P4 to begin with.
QuintLeo is offline   Reply With Quote
Old 2003-09-27, 04:52   #3
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

100000000111112 Posts
Default

That said, I run HT on my P4 and as long as I run just 1 instance of Prime95 I don't see a difference...

What I do like is how the "second" CPU picks up the slack for when I do other stuff so the "first" CPU can run uninterrupted...
Xyzzy is offline   Reply With Quote
Old 2003-09-27, 09:43   #4
smh
 
smh's Avatar
 
"Sander"
Oct 2002
52.345322,5.52471

29×41 Posts
Default

Does XP home support dual cpu's?
smh is offline   Reply With Quote
Old 2003-09-27, 09:51   #5
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

100000000111112 Posts
Default

Quote:
Originally posted by smh
Does XP home support dual cpu's?
I don't know about dual CPUs, but XP Home supports HT...

http://www.intel.com/support/platform/ht/os.htm
Xyzzy is offline   Reply With Quote
Old 2003-09-28, 15:17   #6
smoffat
 
Sep 2002

1610 Posts
Default

I tried disabling HT and found that the iteration time went up slightly. Also tried an older version of Prime95 with same results. Still baffled as to why my P4 2.5Ghz machine has lower iteration times than this P4 3.0Ghz machine, even when I make sure that nothing else is running on both machines????
smoffat is offline   Reply With Quote
Old 2003-09-28, 15:24   #7
Rastus
 
Jul 2003

1216 Posts
Default

Does the P4 have onboard video? That could be your problem.
Rastus is offline   Reply With Quote
Old 2003-09-28, 17:50   #8
lycorn
 
lycorn's Avatar
 
Sep 2002
Oeiras, Portugal

27008 Posts
Default

Are you sure you are comparing exponents in the same FFT range? If the one you are testing on the P4 3G belongs to a higher range that may explain why iteration times are higher then on the 2.5.
lycorn is offline   Reply With Quote
Old 2003-10-22, 05:07   #9
Jim
 
Feb 2003

32 Posts
Default

Ive noticed a similar thing. Just got a new P4 3Ghz with XP Prof. Installed 23.7.1 which seems to run ok, but when i look at the list of processes, Prime95 is taking 50% and the system sits idle for the other 50%.

I havnt installed any other programs yet. I installed and am running as an administrator.

Iteration times are about 0.051

But cant see why the processor sits idle for half the time.

Jim
Jim is offline   Reply With Quote
Old 2003-10-22, 06:31   #10
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

12CF16 Posts
Default

Quote:
Ive noticed a similar thing. Just got a new P4 3Ghz with XP Prof. Installed 23.7.1 which seems to run ok, but when i look at the list of processes, Prime95 is taking 50% and the system sits idle for the other 50%.
Maybe HyperThreading is on?

Luigi
ET_ is offline   Reply With Quote
Old 2003-10-22, 11:19   #11
nucleon
 
nucleon's Avatar
 
Mar 2003
Melbourne

5×103 Posts
Default

I've been thinking on how would be a good way to explain hyperthreading. I think I have it.

My suggestion is to think of a traditional (non-HT) CPU as having three components:
1) 1x Owner
2) 1x Manager
3) A number of workers

The owner is the Operating System, the manager is the scheduler or the microcode of the CPU, and the workers are the instruction units - FPU/INT etc..

The owner gives the workload to manager to get done. The manager reports to the owner how busy the workers are. The manger coordinates all the tasks to the different workers.

Now in a normal CPU if the manager and their workers are 100% busy then 100% is reported to the owner. No issues there.

In a HT CPU, there are two managers, BUT the same number of workers.

In the HT CPU, the same task is given to one manager, the manager needs most of the workers, the manager reports to the owner that they are 100% busy. The other manager reports to the OS that his/her team is 0% (as manager no2's virtual 'team' hasn't been allocated any work to do). The OS reports (100% + 0%) / 2 = 50%. So the OS reports 50% even though there aren't any workers left, so the CPU is technically at close to capacity.

What about two LL tasks on a HT CPU? One LL is given to one manager, he grabs the FP workers and the LL process starts. But when the other manager is given an LL task to complete, all of the FP workers are already in use. So there is contention over the workers.

So now as the FP workers are on two tasks and have to report to two managers, there is more "adminstration" overhead. So two tasks require more than twice the time.

So more highly optimised code for a single task is better on non-HT environment. But a HT environment is better if the two tasks don't have common instruction requirements. (Say general OS requirements, internet explorer and 1x LL test)

Also probably why some of the lesser optimised tasks can run in two instanaces on HT cpu and get twice the work done in the same time. (As each tasks isn't using all the workers)

Just a thought, let me know if it was useful...

-- Craig

Last fiddled with by nucleon on 2003-10-22 at 11:21
nucleon is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iteration times in i5 and i7 Jud McCranie Information & Answers 53 2013-08-17 19:09
What are your per-iteration times? LiquidNitrogen Hardware 22 2011-07-12 23:15
Iteration times slow compared to benchmark cd1940 Software 4 2004-07-05 17:55
LLR.exe FFT crossovers and iteration times SlashDude 15k Search 0 2004-01-28 05:47
slow iteration times PLeopard Hardware 9 2003-10-29 05:48

All times are UTC. The time now is 11:32.


Fri Jul 16 11:32:54 UTC 2021 up 49 days, 9:20, 1 user, load averages: 1.90, 1.64, 1.60

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.