Skip site navigation (1) Skip section navigation (2)

Re: Fwd: FreeBSD, PostgreSQL, semwait and sbwait!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Darcy Buskermolen <darcy(at)wavefire(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Fwd: FreeBSD, PostgreSQL, semwait and sbwait!
Date: 2004-03-23 22:17:53
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Darcy Buskermolen <darcy(at)wavefire(dot)com> writes:
> The database server is a dual P4-2.8 w/ HT enabled (kernel finds 4
> processors), 2GB RAM, 4 disk Serial ATA on 3ware RAID, gigabit Ethernet
> connection to web servers.  It's running FreeBSD 5.2 and PostgreSQL 7.4.1.

Hm.  What happens if you turn off the hyperthreading?

We have seen a number of reports recently that suggest that our
spinlocking code behaves inefficiently on hyperthreaded machines.
This hasn't got to the point where we have any substantiated evidence,
mind you, but maybe you can help provide some.

Also it might be interesting to put one of these into the outer loop in

	__asm__ __volatile__(
		" rep; nop			\n"
		: : : "memory");

(This suggestion is a quick-and-dirty backport of a change that's
already in CVS tip.)

			regards, tom lane

In response to


pgsql-performance by date

Next:From: Greg SpiegelbergDate: 2004-03-23 22:27:23
Subject: Re: atrocious update performance
Previous:From: Josh BerkusDate: 2004-03-23 22:16:01
Subject: Re: Fwd: FreeBSD, PostgreSQL, semwait and sbwait!

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group