X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2ADB4DBAE6 for ; Fri, 18 Nov 2005 19:46:56 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08330-03 for ; Fri, 18 Nov 2005 23:46:58 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from linda-5.paradise.net.nz (bm-5a.paradise.net.nz [203.96.152.184]) by svr1.postgresql.org (Postfix) with ESMTP id 931F9DB9FA for ; Fri, 18 Nov 2005 19:46:53 -0400 (AST) Received: from smtp-1.paradise.net.nz (tclsnelb2-src-1.paradise.net.nz [203.96.152.177]) by linda-5.paradise.net.nz (Paradise.net.nz) with ESMTP id <0IQ600J49CQ8SS@linda-5.paradise.net.nz> for pgsql-performance@postgresql.org; Sat, 19 Nov 2005 12:46:56 +1300 (NZDT) Received: from [192.168.1.11] (218-101-29-15.dsl.clear.net.nz [218.101.29.15]) by smtp-1.paradise.net.nz (Postfix) with ESMTP id 7BCC010DA585; Sat, 19 Nov 2005 12:46:55 +1300 (NZDT) Date: Sat, 19 Nov 2005 12:46:54 +1300 From: Mark Kirkwood Subject: Re: Hardware/OS recommendations for large databases ( In-reply-to: To: Luke Lonergan Cc: Dave Cramer , Greg Stark , Joshua Marsh , pgsql-performance@postgresql.org Message-id: <437E67EE.4070605@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 8BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (X11/20051106) References: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.332 required=5 tests=[RCVD_IN_BL_SPAMCOP_NET=1.332] X-Spam-Score: 1.332 X-Spam-Level: * X-Archive-Number: 200511/384 X-Sequence-Number: 15641 Luke Lonergan wrote: > (mass snippage) > time psql -c "select count(*) from ivp.bigtable1" dgtestdb > [llonergan@modena2 IVP]$ cat sysout3 > count > ---------- > 80000000 > (1 row) > > > real 1m9.875s > user 0m0.000s > sys 0m0.004s > [llonergan@modena2 IVP]$ !du > du -sk dgtestdb/base > 17021260 dgtestdb/base > > > Summary: > > OK – you can get more I/O bandwidth out of the current > I/O path for sequential scan if you tune the filesystem for large > readahead. This is a cheap alternative to overhauling the executor to > use asynch I/O. > > Still, there is a CPU limit here – this is not I/O bound, it is CPU > limited as evidenced by the sensitivity to readahead settings. If the > filesystem could do 1GB/s, you wouldn’t go any faster than 244MB/s. > > Luke, Interesting - but possibly only representative for a workload consisting entirely of one executor doing "SELECT ... FROM my_single_table". If you alter this to involve more complex joins (e.g 4. way star) and (maybe add a small number of concurrent executors too) - is it still the case? Cheers Mark