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 BB24C9FB3C9 for ; Fri, 22 Sep 2006 00:02:01 -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 89806-09-2 for ; Fri, 22 Sep 2006 00:01:47 -0300 (ADT) X-Greylist: delayed 00:09:00.394087 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 25D089FB3D6 for ; Fri, 22 Sep 2006 00:01:17 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mail.esphion.com (serv-0.esphion.com [202.55.97.148]) by svr4.postgresql.org (Postfix) with ESMTP id CBB535AF98D for ; Fri, 22 Sep 2006 02:52:29 +0000 (GMT) Received: from conker.alb-nz.esphion.com ([10.0.1.137]) by mail.esphion.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1GQb98-0006JG-1n; Fri, 22 Sep 2006 14:52:10 +1200 Received: from guy by conker.alb-nz.esphion.com with local (Exim 4.50) id 1GQb97-0004Iv-6u; Fri, 22 Sep 2006 14:52:09 +1200 Date: Fri, 22 Sep 2006 14:52:09 +1200 From: Guy Thornley To: Markus Schaber Cc: Luke Lonergan , pgsql-performance@postgresql.org Subject: Re: Large tables (was: RAID 0 not as fast as Message-ID: <20060922025209.GO6211@esphion.com> Reply-To: Guy Thornley References: <45123FC0.9060100@logix-tt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45123FC0.9060100@logix-tt.com> User-Agent: Mutt/1.5.9i 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: 200609/291 X-Sequence-Number: 20977 > >> I thought that posix_fadvise() with POSIX_FADV_WILLNEED was exactly > >> meant for this purpose? > > > > This is a good idea - I wasn't aware that this was possible. > > This possibility was the reason for me to propose it. :-) posix_fadvise() features in the TODO list already; I'm not sure if any work on it has been done for pg8.2. Anyway, I understand that POSIX_FADV_DONTNEED on a linux 2.6 kernel allows pages to be discarded from memory earlier than usual. This is useful, since it means you can prevent your seqscan from nuking the OS cache. Of course you could argue the OS should be able to detect this, and prevent it occuring anyway. I don't know anything about linux's behaviour in this area. .Guy