X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id DBA5C9FA6B5; Fri, 21 Jul 2006 12:00:09 -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 63880-09; Fri, 21 Jul 2006 11:59:55 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.aeccom.com (port-83-236-156-26.static.qsc.de [83.236.156.26]) by postgresql.org (Postfix) with ESMTP id 22E6F9FA50D; Fri, 21 Jul 2006 11:59:54 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.aeccom.com (Postfix) with ESMTP id B05711C98B; Fri, 21 Jul 2006 16:59:53 +0200 (CEST) Received: from mail.aeccom.com ([127.0.0.1]) by localhost (gate6.aeccom.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31910-03-11; Fri, 21 Jul 2006 16:59:52 +0200 (CEST) Received: from [192.168.2.140] (andes.core.aeccom.com [192.168.2.140]) by mail.aeccom.com (Postfix) with ESMTP id B471E1C885; Fri, 21 Jul 2006 16:59:52 +0200 (CEST) Message-ID: <44C0EBE5.8010508@aeccom.com> Date: Fri, 21 Jul 2006 16:59:49 +0200 From: Sven Geisler Organization: AEC/communications GmbH User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Tom Lane CC: Robert Lor , Tatsuo Ishii , pgsql-hackers@postgresql.org, pgsql-performance@postgresql.org Subject: Re: [HACKERS] Sun Donated a Sun Fire T2000 to the PostgreSQL References: <20060617.101521.95879771.t-ishii@sraoss.co.jp> <10226.1150511655@sss.pgh.pa.us> <20060617.111838.39487910.t-ishii@sraoss.co.jp> <20060713.180234.45872055.t-ishii@sraoss.co.jp> <8669.1153422118@sss.pgh.pa.us> <44C088C8.9050303@sun.com> <21889.1153489365@sss.pgh.pa.us> In-Reply-To: <21889.1153489365@sss.pgh.pa.us> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at aeccom.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200607/209 X-Sequence-Number: 20069 Hi, Tom Lane schrieb: > Robert Lor writes: >> I ran pgbench and fired up a DTrace script using the lwlock probes we've >> added, and it looks like BufMappingLock is the most contended lock, but >> CheckpointStartLocks are held for longer duration! > > Those numbers look a bit suspicious --- I'd expect to see some of the > LWLocks being taken in both shared and exclusive modes, but you don't > show any such cases. You sure your script is counting correctly? > Also, it'd be interesting to count time spent holding shared lock > separately from time spent holding exclusive. Is there a test case which shows the contention for this full cached tables? It would be nice to have measurable numbers like context switches and queries per second. Sven.