Re: patch postgresql for AMD64 (Opteron)

From: Sven Geisler <sgeisler(at)aeccom(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: patch postgresql for AMD64 (Opteron)
Date: 2006-07-03 12:41:39
Message-ID: 44A91083.70400@aeccom.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Tom,

I remember that you provide a small SQL script to force the context
switch storm. Can you provide a similar script for Pg 8.1.4?

It looks to me that you get context switch storm if you access with
SELECT one table from multiple clients.

I have a customer which has an current XEON MP DualCore and we get
150000+ context switches/sec. We have around 30 clients. We use RHEL 4
in 32-bit (i368) mode. I didn't use the patch for the Opteron-specific
behavior.

Cheers
Sven.

Tom Lane schrieb:
> Sven Geisler <sgeisler(at)aeccom(dot)com> writes:
>> I created a patch for PostgreSQL and x86 architecture.
>> This patch address a Opteron-specific
>> behavior regarding some assembler statements.
>
> AFAICT this patch essentially proposes that we should allow the single
> case of an Opteron running in 32-bit mode to determine our optimization
> strategy for all 32-bit Intel. Tail wagging dog, no?
>
> As the comment notes, it's not real clear that the separate cmpb is a
> win on average, but this case is not the average case I'm interested in.
> If you want to make an argument for removing the cmpb you need to
> provide numbers on mainstream 32-bit platforms.
>
> regards, tom lane

--
/This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you are not the intended recipient, you should not
copy it, re-transmit it, use it or disclose its contents, but should
return it to the sender immediately and delete your copy from your
system. Thank you for your cooperation./

Sven Geisler <sgeisler(at)aeccom(dot)com> Tel +49.30.5362.1627 Fax .1638
Senior Developer, AEC/communications GmbH Berlin, Germany

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dragan Zubac 2006-07-03 12:59:49 Transaction and table partitioning
Previous Message Martijn van Oosterhout 2006-07-03 12:15:44 Re: different sort order in windows and linux version