Re: poor performance with Context Switch Storm at TPC-W.

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Katsuhiko Okano <okano(dot)katsuhiko(at)oss(dot)ntt(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: poor performance with Context Switch Storm at TPC-W.
Date: 2006-07-11 13:59:51
Message-ID: 20060711135951.GA3995@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Katsuhiko Okano wrote:

> I suspected conflict of BufMappingLock.
> but, collected results are seen,
> occurrence of CSStorm and the increase of BufMappingLock counts
> seem not to correspond.
> Instead, SubtransControlLock and SubTrans were increasing.
> I do not understand what in the cause of CSStorm.

Please see this thread:
http://archives.postgresql.org/pgsql-hackers/2005-11/msg01547.php
(actually it's a single message AFAICT)

This was applied on the 8.2dev code, so I'm surprised that 8.2dev
behaves the same as 8.1.

Does your problem have any relationship to what's described there?

I also wondered whether the problem may be that the number of SLRU
buffers we use for subtrans is too low. But the number was increased
from the default 8 to 32 in 8.2dev as well. Maybe you could try
increasing that even further; say 128 and see if the problem is still
there. (src/include/access/subtrans.h, NUM_SUBTRANS_BUFFERS).

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-07-11 14:02:49 Max size of a btree index entry
Previous Message Tom Lane 2006-07-11 13:30:14 Re: Three weeks left until feature freeze

Browse pgsql-patches by date

  From Date Subject
Next Message Josh Berkus 2006-07-11 14:25:03 Re: poor performance with Context Switch Storm at TPC-W.
Previous Message Qingqing Zhou 2006-07-11 13:06:13 Re: poor performance with Context Switch Storm at TPC-W.