Gentoo Archives: gentoo-server

From: Andy Dustman <adustman@×××××××××.edu>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] Gentoo on Pentium IV with Hyper-Threading
Date: Thu, 18 Mar 2004 14:50:14
Message-Id: 1079621404.17306.26.camel@kenny.terry.uga.edu
In Reply to: [gentoo-server] Gentoo on Pentium IV with Hyper-Threading by Nick Van Vlaenderen
1 On Thu, 2004-03-18 at 09:35, Nick Van Vlaenderen wrote:
2
3 > I am going to install Gentoo Linux on a server with a Pentium IV CPU
4 > with Hyper-Threading. My question is, does anyone has experience with
5 > that kind of servers? I know that I need to enable SMP in the kernel,
6 > but do I need to use something specific to make Gentoo use the 2
7 > virtual CPU's and not only one? And how can I have better performance
8 > .. and so on?
9
10 Yes, enable SMP. If HT is really enabled for your box (in the BIOS), it
11 should just work. If you happen to use an 2.6 series kernel, you have
12 the option of specifying the maximum number of processors to support;
13 set this to twice the number of real processors, i.e. the total of real
14 and virtual processors.
15
16 In my experience with a dual 2.4 GHz P4-Xeon system, the optimal make
17 parallelism setting is -j4. I found that I could compile the 2.6 kernel
18 in about 3:40 clock time, although I was not (according to time) using
19 100% CPU (slightly less than 10 min CPU time). Usually my rule of thumb
20 is twice the number of processors, so I tried -j8 (did I mention 1 GB of
21 RAM?). This reduced the compile time very slightly (about 3:20), and
22 essentially maxed out the CPU time (over 12 min). But clock time is the
23 thing that really matters, and the improvement was so small I decided to
24 stick with -j4.
25
26 This is a *very* simple benchmark, and doesn't account for things like
27 caching and such, so don't draw too many conclusions.
28
29 --
30 Andy Dustman <adustman@×××××××××.edu>
31 Office of Information Technology, Terry College of Business, UGA