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 007249DCA86 for ; Tue, 20 Dec 2005 11:18:37 -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 00330-03-6 for ; Tue, 20 Dec 2005 11:18:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from ra.sai.msu.su (ra.sai.msu.su [158.250.29.2]) by postgresql.org (Postfix) with ESMTP id 853079DCBA4 for ; Tue, 20 Dec 2005 11:18:24 -0400 (AST) Received: from ra (ra [158.250.29.2]) by ra.sai.msu.su (8.13.4/8.13.4) with ESMTP id jBKFIKaK021350; Tue, 20 Dec 2005 18:18:20 +0300 (MSK) Date: Tue, 20 Dec 2005 18:18:20 +0300 (MSK) From: Oleg Bartunov X-X-Sender: megera@ra.sai.msu.su To: Tom Lane cc: Anjan Dave , Vivek Khera , Postgresql Performance Subject: Re: High context switches occurring In-Reply-To: <28871.1135089690@sss.pgh.pa.us> Message-ID: References: <4BAFBB6B9CC46F41B2AD7D9F4BBAF785098F14@vt-pe2550-001.vantage.vantage.com> <28871.1135089690@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.353 required=5 tests=[AWL=-0.126, DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.353 X-Spam-Level: X-Archive-Number: 200512/494 X-Sequence-Number: 16315 On Tue, 20 Dec 2005, Tom Lane wrote: > 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 :-(. Argh :) I copy'n pasted from previous message. I still wondering with very poor performance of my server. Moving pgdata to RAID6 helped - about 600 tps. Then, I moved pg_xlog to separate disk and got strange error messages postgres@ptah:~$ time pgbench -c 10 -t 3000 pgbench starting vacuum...end. Client 0 aborted in state 8: ERROR: integer out of range Client 7 aborted in state 8: ERROR: integer out of range dropdb,createdb helped, but performance is about 160 tps. Low-end AMD64 with SATA disks gives me ~400 tps in spite of disks on itanium2 faster ( 80MB/sec ) than on AMD64 (60MB/sec). Regards, Oleg _____________________________________________________________ Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru), Sternberg Astronomical Institute, Moscow University, Russia Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(495)939-16-83, +007(495)939-23-83