mersenneforum.org  

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

Reply
 
Thread Tools
Old 2005-04-19, 12:49   #12
Dresdenboy
 
Dresdenboy's Avatar
 
Apr 2003
Berlin, Germany

192 Posts
Default

Quote:
Originally Posted by mimic
This does not work. Prime95 then runs on CPU 0, but the other program jumps to CPU 1 and there is no difference. They both keep running with full priority on their CPU and so my program slows down.
You could try to get better results by reducing Prime95's process priority (in the Options menu - unlock with password '9876' and change the priority) and/or use the task manager and increase the priority of the other task's process (right click on the process and change priority).
Dresdenboy is offline   Reply With Quote
Old 2005-04-19, 12:59   #13
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

I presume Prime95 is already running at idle priority, unless mimic changed the default setting (and then he'd obviously already know about the priority option). If the OS sees an idle cpu, it'll run Prime95 on it, no matter what its priority is. The problem is that the OS does not know that processes on both virtual cpus compete for execution units in the same core.

Alex
akruppa is offline   Reply With Quote
Old 2005-04-19, 14:07   #14
Dresdenboy
 
Dresdenboy's Avatar
 
Apr 2003
Berlin, Germany

192 Posts
Default

Quote:
Originally Posted by akruppa
If the OS sees an idle cpu, it'll run Prime95 on it, no matter what its priority is. The problem is that the OS does not know that processes on both virtual cpus compete for execution units in the same core.
I wrote the same ~8 postings above

But you are right about the possibly unchanged priority setting.

If it is a certain application, which is disturbed that much by Prime95, then the user could also stop it quickly in the system tray.
Dresdenboy is offline   Reply With Quote
Old 2005-04-20, 16:39   #15
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

100100101012 Posts
Default

Based on a lot of recent testing I have found that Windows XP and 2000 are very brain dead when it comes to Hyperthreading (as you have found out).

Linux 2.4 is the same way, but the Linux 2.6 kernel knows about HT and schedules processes based on the fact that the second "processor" is just a virtual one. Much better performance seen with 2.6.
Jeff Gilchrist is offline   Reply With Quote
Old 2005-04-20, 16:51   #16
PhilF
 
PhilF's Avatar
 
Feb 2005
Colorado

2·7·47 Posts
Default

What flavor of 2.6 are you running?
PhilF is offline   Reply With Quote
Old 2005-04-20, 23:56   #17
dsouza123
 
dsouza123's Avatar
 
Sep 2002

10100101102 Posts
Default

Another option to reduce the CPU time used by Prime95

In prime.ini put the following line
Throttle=n
where n = milliseconds to sleep after each iteration. Try =1000

Unfortunately this will hobble Prime95 all the time,
because it isn't connected to the PauseWhileRunning.


Maybe a ThrottleWhileRunning would be appropriate.


Was the PauseWhileRunning=program1,program2 tried ?
It will effectively keep Prime95 from taking CPU time/FP resources
from the other program.
What about with a small number (for more frequent checking) of the associated line ?
PauseCheckInterval=4

Does Affinity 1 for Prime95 make any difference ?
Are both virtual CPUs treated identically or
is one just given time if the primary is waiting/is stalled ?
dsouza123 is offline   Reply With Quote
Old 2005-04-21, 07:06   #18
Dresdenboy
 
Dresdenboy's Avatar
 
Apr 2003
Berlin, Germany

36110 Posts
Default

Quote:
Originally Posted by dsouza123
Does Affinity 1 for Prime95 make any difference ?
Are both virtual CPUs treated identically or
is one just given time if the primary is waiting/is stalled ?
The virtual CPUs are treated identically by the Windows scheduler and AFAIK the virtual CPUs themselves have equal priority.

I agree with you about using the throttle parameter. This should at least improve the situation.
Dresdenboy is offline   Reply With Quote
Old 2005-04-21, 15:11   #19
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

49516 Posts
Default

Quote:
Originally Posted by PhilF
What flavor of 2.6 are you running?
What do you mean by flavour? I am using the generic kernel from kernel.org (not any patch set version). The version I tested was 2.6.10 or possibly the latest 2.6.11.
Jeff Gilchrist is offline   Reply With Quote
Old 2005-04-22, 20:12   #20
mimic
 
Apr 2005

22 Posts
Default

Quote:
Originally Posted by Dresdenboy
I agree with you about using the throttle parameter. This should at least improve the situation.
This sadly does not work for me. The problem is in overall speed for programs I use everyday. So then Prime95 would not get any CPU time as I am running the programs almost always. But even if they run they do not consume CPU all the time (in fact they consume the CPU only in fraction of their runtime - but I would like that in this fraction they work fast).

Of course I can pause the Prime95 every time ... but ... :-)
mimic is offline   Reply With Quote
Old 2005-04-25, 01:53   #21
RickC
 
Mar 2003

4510 Posts
Default

Interesting. I wonder why setting the Prime95 affinity to 0 fixed my Media Player issue. I double checked the results before I posted them. It really did work and I made sure there were no other variables in the testing.

I didn't test any other programs because I don't have a problem with any others. My computer is very fast whether I have 1 program or 10 open.

I am using Win XP Pro SP2 and my P4 is a 530. According to CPU-Z it is Family F, Ext. Family 0, Model 3, Ext. Model 0, Stepping 4, Revision D0.

I thought of another possibility if you are having problems with a specific program. You could try setting Prime95 affinity to 0 from within Prime95 like I did. Then from the Processes tab of the Windows Task Manager you can set the affinity of the program you are having trouble with to only use CPU 0. Then there is no way it can jump to CPU 1. This is just a thought. I have never tried this because just setting the Prime95 affinity worked for me.
RickC is offline   Reply With Quote
Old 2005-04-25, 02:23   #22
moo
 
moo's Avatar
 
Jul 2004
Nowhere

809 Posts
Default

why dont you disable HT and try from there it will be a option in ur bios...
moo is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want a P4 processor Antonio PrimeNet 24 2012-11-28 21:07
Best Processor for AM3 JustinGC Hardware 6 2012-06-23 05:20
co-processor tha Hardware 6 2006-04-25 13:14
VIA's C3 processor. What can it do? E_tron Hardware 2 2003-10-06 06:20
Problem running prime-net on debian (woody) dual processor thedagit Software 3 2002-10-19 05:57

All times are UTC. The time now is 07:08.


Fri Aug 6 07:08:31 UTC 2021 up 14 days, 1:37, 1 user, load averages: 2.56, 2.64, 2.65

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.