X-Original-To: pgsql-hackers-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 99A799F9316 for ; Tue, 18 Jul 2006 08:24:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 17051-01-9 for ; Tue, 18 Jul 2006 08:24:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from serv1.oss.ntt.co.jp (ns.oss.ntt.co.jp [222.151.198.98]) by postgresql.org (Postfix) with ESMTP id 241F29FB345 for ; Tue, 18 Jul 2006 04:50:57 -0300 (ADT) Received: from D6D7X2BX (unknown [172.17.1.43]) by serv1.oss.ntt.co.jp (Postfix) with ESMTP id 4244E2602CA for ; Tue, 18 Jul 2006 16:50:54 +0900 (JST) To: pgsql-hackers@postgresql.org Subject: CSStorm occurred again by postgreSQL8.2. (Re: poor performance with Context Switch Storm at TPC-W.) From: Katsuhiko Okano References: <200607112009.FED09315.TLPPUBIBOPuVLJL@oss.ntt.co.jp> <20060711135951.GA3995@surnet.cl> <200607141457.CFC04165.PBLJLPVTILUBOPu@oss.ntt.co.jp> In-Reply-To: <200607141457.CFC04165.PBLJLPVTILUBOPu@oss.ntt.co.jp> Message-Id: <200607181650.EDC81237.LOBJUTPuIPPBLLV@oss.ntt.co.jp> X-Mailer: Winbiff [Version 2.50 PL2 (on Trial)] X-Accept-Language: ja,en Date: Tue, 18 Jul 2006 16:50:43 +0900 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200607/690 X-Sequence-Number: 86545 Katsuhiko Okano wrote: > By PostgreSQL8.2, NUM_SUBTRANS_BUFFERS was changed into 128 > and recompile and measured again. > NOT occurrence of CSStorm. The value of WIPS was about 400. measured again. not occurrence when measured for 30 minutes. but occurrence when measured for 3 hours, and 1 hour and 10 minutes passed. It does not solve, even if it increases the number of NUM_SUBTRANS_BUFFERS. The problem was only postponed. > If the number of SLRU buffers is too low, > also in PostgreSQL8.1.4, if the number of buffers is increased > I think that the same result is brought. > (Although the buffer of CLOG or a multi-transaction also increases, > I think that effect is small) > > Now, NUM_SLRU_BUFFERS is changed into 128 in PostgreSQL8.1.4 > and is under measurement. Occurrence CSStorm when the version 8.1.4 passed similarly for 1 hour and 10 minutes. A strange point, The number of times of a LWLock lock for LRU buffers is 0 times until CSStorm occurs. After CSStorm occurs, the share lock and the exclusion lock are required and most locks are kept waiting. (exclusion lock for SubtransControlLock is increased rapidly after CSStorm start.) Is different processing done by whether CSStrom has occurred or not occurred? regards, -------- Katsuhiko Okano okano katsuhiko _at_ oss ntt co jp