From: Jord Tanner <jord@indygecko.com>
To: SZUCS Gábor <surrano@mailbox.hu>
Cc: pgsql-performance@postgresql.org
Subject: Re: Dual Xeon + HW RAID question
Date: 22 Jul 2003 10:35:52 -0700
Message-ID: <1058895352.4339.32.camel@gecko> (raw)
In-Reply-To: <000701c35074$3800a2a0$0403a8c0@fejleszt4>
References: <200307221626.h6MGQ1824547@candle.pha.pa.us>
<000701c35074$3800a2a0$0403a8c0@fejleszt4>
The Linux 2.6 kernel will have the ability to set CPU affinity for
specific processes. There is a patch for the 2.4 kernel at
http://www.kernel.org/pub/linux/kernel/people/rml/cpu-affinity
RedHat 9 already has support for CPU affinity build in.
The July 2003 issue of Linux Journal includes a little C program (on
page 20) that gives you a shell level interface to the CPU affinity
system calls, so you can dynamically assign processes to specific CPUs.
I haven't tried it, but it looks very cool (my only SMP machine is in
production, and I don't want to mess with it). If you try it out, please
share your experiences with the list.
Jord Tanner
Independent Gecko Consultants
On Tue, 2003-07-22 at 10:10, SZUCS Gábor wrote:
> "by default" -- do you mean there is a way to tell Linux to favor the second
> real cpu over the HT one? how?
>
> G.
> ------------------------------- cut here -------------------------------
> ----- Original Message -----
> From: "Bruce Momjian" <pgman@candle.pha.pa.us>
> Sent: Tuesday, July 22, 2003 6:26 PM
> Subject: Re: [PERFORM] Dual Xeon + HW RAID question
>
>
> > Right, I simplified it. The big deal is whether the OS favors the
> > second real CPU over one of the virtual CPU's on the same die --- by
> > default, it doesn't. Ever if it did work perfectly, you are talking
> > about going from 1 to 1.4 or 2 to 2.8, which doesn't seem like much.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
--
Jord Tanner <jord@indygecko.com>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: jord@indygecko.com, surrano@mailbox.hu
Subject: Re: Dual Xeon + HW RAID question
In-Reply-To: <1058895352.4339.32.camel@gecko>
References: <200307221626.h6MGQ1824547@candle.pha.pa.us> <000701c35074$3800a2a0$0403a8c0@fejleszt4> <1058895352.4339.32.camel@gecko>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox