Re: Wierd context-switching issue on Xeon patch for 7.4.1 - Mailing list pgsql-performance

From Josh Berkus
Subject Re: Wierd context-switching issue on Xeon patch for 7.4.1
Date
Msg-id 200404211953.24898.josh@agliodbs.com
Whole thread Raw
In response to Re: Wierd context-switching issue on Xeon patch for 7.4.1  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Wierd context-switching issue on Xeon patch for 7.4.1  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-performance
Tom,

> As far as I can tell, this does reduce the rate of semop's
> significantly, but it does so by bringing the overall processing rate
> to a crawl :-(.  I see 97% CPU idle time when using this patch.
> I believe what is happening is that the select() delay in s_lock.c is
> being hit frequently because the spin loop isn't allowed to run long
> enough to let the other processor get out of the spinlock.

Also, I tested it on production data, and it reduces the CSes by about 40%.
An improvement, but not a magic bullet.

--
Josh Berkus
Aglio Database Solutions
San Francisco

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Wierd context-switching issue on Xeon patch for 7.4.1
Next
From: Tom Lane
Date:
Subject: Re: Wierd context-switching issue on Xeon patch for 7.4.1