Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 060C064FEA5 for ; Thu, 11 Dec 2008 11:54:19 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15107-03 for ; Thu, 11 Dec 2008 11:54:12 -0400 (AST) X-Greylist: delayed 00:19:28.717267 by SQLgrey-1.7.6 Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mail.postgresql.org (Postfix) with ESMTP id 94F4964FC25 for ; Thu, 11 Dec 2008 11:54:11 -0400 (AST) Received: by yx-out-2324.google.com with SMTP id 8so458793yxb.73 for ; Thu, 11 Dec 2008 07:54:08 -0800 (PST) Received: by 10.65.215.14 with SMTP id s14mr2162435qbq.5.1229007892877; Thu, 11 Dec 2008 07:04:52 -0800 (PST) Received: from ?192.168.2.10? (206-248-170-70.dsl.teksavvy.com [206.248.170.70]) by mx.google.com with ESMTPS id k7sm3276247qba.6.2008.12.11.07.04.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 11 Dec 2008 07:04:51 -0800 (PST) Message-Id: From: Greg Stark To: ITAGAKI Takahiro Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPhone Mail (5G77) Mime-Version: 1.0 (iPhone Mail 5G77) Subject: Re: posix_fadvise v22 Date: Thu, 11 Dec 2008 10:04:13 -0500 Cc: Gregory Stark , Postgres X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/778 X-Sequence-Number: 129407 I'll send another path with at least 1 and 3 fixed and hunt around again for a header file to put this guc into. On 10 Dec 2008, at 04:22, ITAGAKI Takahiro wrote: > Hello, > > Gregory Stark wrote: >> Here's an update to eliminate two small bitrot conflicts. > > I read your patch with interest, but found some trivial bad manners. > > * LET_OS_MANAGE_FILESIZE is already obsoleted. > You don't have to cope with the option. Huh I didn't realize that. I guess the idea is that users just configure a very large segment size to get the old behaviour. > > * Type mismatch in prefetch_pages > A variable prefetch_pages is defined as "unsigned" or "int" > in some places. Why don't you define it only once in a header > and include the header in source files? Just... Which header? > * Assignment to prefetch_pages > What do "+0.99" means here? > [assign_io_concurrency()] > + prefetch_pages = new_prefetch_pages+0.99; > You want to do as follows, right? > + prefetch_pages = (int) ceil(new_prefetch_pages); Sure