Re: LWLock contention: I think I understand the problem

From: Hannu Krosing <hannu(at)tm(dot)ee>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, pgman(at)candle(dot)pha(dot)pa(dot)us, pgsql-hackers(at)postgresql(dot)org, jwbaker(at)acm(dot)org
Subject: Re: LWLock contention: I think I understand the problem
Date: 2002-01-05 17:54:29
Message-ID: 3C373DD5.9080409@tm.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-odbc

Tom Lane wrote:

>I have gotten my hands on a Linux 4-way SMP box (courtesy of my new
>employer Red Hat), and have obtained pgbench results that look much
>more promising than Tatsuo's. It seems the question is not so much
>"why is 7.2 bad?" as "why is it bad on AIX?"
>
Could you rerun some of the tests on the same hardware but with
uniprocesor kernel
to get another reference point ?

There were some reports about very poor insert performance on 4way vs 1way
processors.

You could also try timing pgbench -i to compare raw inser performance.

>The test machine has 4 550MHz Pentium III CPUs, 5Gb RAM, and a passel
>of SCSI disks hanging off ultra-wide controllers. It's presently
>running Red Hat 7.1 enterprise release, kernel version 2.4.2-2enterprise
>#1 SMP. (Not the latest thing, but perhaps representative of what
>people are running in production situations. I can get it rebooted with
>other kernel versions if anyone thinks the results will be interesting.)
>
>
>For the tests, the postmasters were started with parameters
> postmaster -F -N 100 -B 3800
>(the -B setting chosen to fit within 32Mb, which is the shmmax setting
>on stock Linux). -F is not very representative of production use,
>but I thought it was appropriate since we are trying to measure CPU
>effects not disk I/O. pgbench scale factor is 50; xacts/client varied
>so that each run executes 10000 transactions, per this script:
>
>#! /bin/sh
>
>DB=bench
>totxacts=10000
>
>for c in 1 2 3 4 5 6 10 25 50 100
>do
> t=`expr $totxacts / $c`
> psql -c 'vacuum' $DB
>
Should this not be 'vacuum full' ?

>
> psql -c 'checkpoint' $DB
> echo "===== sync ======" 1>&2
> sync;sync;sync;sleep 10
> echo $c concurrent users... 1>&2
> pgbench -n -t $t -c $c $DB
>done
>
-----------
Hannu

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 2002-01-05 18:11:13 Re: RC1 time?
Previous Message Tom Lane 2002-01-05 17:46:09 Re: Some interesting results from tweaking spinlocks

Browse pgsql-odbc by date

  From Date Subject
Next Message Tom Lane 2002-01-05 21:44:53 Re: LWLock contention: I think I understand the problem
Previous Message Tom Lane 2002-01-05 01:44:17 Re: LWLock contention: I think I understand the problem