mersenneforum.org  

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

Reply
 
Thread Tools
Old 2003-03-27, 12:43   #1
luma
 
Mar 2003

2 Posts
Default Best configuration for linux + dual P4 Xeon + hyperthreading

Hi all,

I have a dual P4 Xeon 2 GHz running Linux Debian... And it support hyperthreading.
Linux (like Windows) seems to have 4 cpu.

I run mprime like this :
mprime -B
mprime -B -A1

I have setup "A1" whith a different computer ID but stats on primenet website is not showing me the pseudo second computer...

Any idea?

Is there a better way to launch the soft? Can we (like windows) configure affinity?

Thanks
luma is offline   Reply With Quote
Old 2003-03-27, 15:01   #2
QuintLeo
 
QuintLeo's Avatar
 
Oct 2002
Lost in the hills of Iowa

26·7 Posts
Default

I just run 2 seperate mprime clients - in seperate directories, completely different files - on my dual Athlons and my BP6s.

Each CPU shows up seperately in Primenet stats (makes it easy to see when I've had a CPU hang on one of the BP6 boxes).
QuintLeo is offline   Reply With Quote
Old 2003-03-27, 21:53   #3
mda2376
 
Mar 2003

810 Posts
Default

Processor affinity becomes very important with hyperthreading cpus.. With hyperthreading dual cpu, CPU0 and CPU1 (as with CPU2 and CPU3) share the same processor, multiple threads executing on the same physical processor (although to the operating system a different virtual processor) that work with the same parts of the processor (floating point operations for instrance) are effectively each getting half the speed of a single chip.

What happends in my system is after a little while, the kernel migrates both processes to CPU2 and CPU3 respectively and they process along at half speed while physcial cpu 0 sits idle. I've found that the -B and -A flags dont really seem to do anything (as far as I've seen).

I have installed the 2.5.66 kernel hopeing a more hyperthreading aware kernel would migrate the processes more intelegently, but no luck.

There looks to be 2 ways it can be done.
PSET ( http://www.hockin.org/~thockin/pset/ ) which looks only to have a patch for kernel 2.2, and
cpuctl ( http://linux-diag.sourceforge.net/affinity.html ) which requires a kernel module and an update to mprime to make use of it. Support for something similar may already exist in the 2.5 kernel without a patch/module.

Maybe if I get some free time this weekend I will look into patching the code to include (possible) processor affinity support in 2.5 kernels.

Matt
mda2376 is offline   Reply With Quote
Old 2003-03-28, 10:26   #4
luma
 
Mar 2003

216 Posts
Default

Thanks for your answer Matt!
I work on a 2.4.20 kernel and I cannot move to 2.5.x... So I will continue using mprime with no optimization... As you said, mprime is running on cpu 2 and 3 most of the time... I can see sometime some migration... But it works quite good.

Regards
luma is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Xeon 5355 bgbeuning Information & Answers 5 2015-11-17 17:53
benchmarks on dual i7-xeon fivemack Msieve 1 2009-12-14 12:51
Dual Xeon Help euphrus Software 12 2005-07-21 14:47
Dual CPUs and Hyperthreading Unregistered Hardware 34 2004-09-27 08:56
Dual Xeon Workstation RickC Hardware 15 2003-12-17 01:35

All times are UTC. The time now is 16:29.


Sun Aug 1 16:29:26 UTC 2021 up 9 days, 10:58, 0 users, load averages: 1.22, 1.58, 1.71

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.