X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E6B4A9DCA5B for ; Tue, 20 Dec 2005 10:41:28 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90320-04 for ; Tue, 20 Dec 2005 10:41:32 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 89F4C9DCA7F for ; Tue, 20 Dec 2005 10:41:26 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id jBKEfUOQ028872; Tue, 20 Dec 2005 09:41:30 -0500 (EST) To: Oleg Bartunov cc: Anjan Dave , Vivek Khera , Postgresql Performance Subject: Re: High context switches occurring In-reply-to: References: <4BAFBB6B9CC46F41B2AD7D9F4BBAF785098F14@vt-pe2550-001.vantage.vantage.com> Comments: In-reply-to Oleg Bartunov message dated "Tue, 20 Dec 2005 08:26:29 +0300" Date: Tue, 20 Dec 2005 09:41:30 -0500 Message-ID: <28871.1135089690@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.018 required=5 tests=[AWL=0.018] X-Spam-Score: 0.018 X-Spam-Level: X-Archive-Number: 200512/489 X-Sequence-Number: 16310 Oleg Bartunov writes: > I see a very low performance and high context switches on our > dual itanium2 slackware box (Linux ptah 2.6.14 #1 SMP) > with 8Gb of RAM, running 8.1_STABLE. Any tips here ? > postgres@ptah:~/cvs/8.1/pgsql/contrib/pgbench$ time pgbench -s 10 -c 10 -t 3000 pgbench > starting vacuum...end. > transaction type: TPC-B (sort of) > scaling factor: 1 > number of clients: 10 You can't expect any different with more clients than scaling factor :-(. Note that -s is only effective when supplied with -i; it's basically ignored during an actual test run. regards, tom lane