X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1A2F78B9BA0 for ; Tue, 22 Feb 2005 01:05:17 +0000 (GMT) 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 70492-03 for ; Tue, 22 Feb 2005 01:05:10 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.250.190.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4CDE98B9B9A for ; Tue, 22 Feb 2005 01:05:12 +0000 (GMT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id EFB9230E67; Tue, 22 Feb 2005 02:05:12 +0100 (MET) From: Ron Mayer X-Newsgroups: pgsql.performance Subject: Re: seq scan cache vs. index cache smackdown Date: Mon, 21 Feb 2005 17:14:19 -0800 Organization: Hub.Org Networking Services Lines: 21 Message-ID: <421A876B.6010308@cheapcomplexdevices.com> References: <6EE64EF3AB31D5448D0007DD34EEB3412A762F@Herge.rcsinc.local> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org To: Merlin Moncure User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en In-Reply-To: <6EE64EF3AB31D5448D0007DD34EEB3412A762F@Herge.rcsinc.local> To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200502/291 X-Sequence-Number: 10620 Merlin Moncure wrote: > > readv and writev are in the single unix spec...and yes ... > > On some systems they might just be implemented as a loop inside the > library, or even as a macro. You sure? Requirements like this: http://www.opengroup.org/onlinepubs/007908799/xsh/write.html "Write requests of {PIPE_BUF} bytes or less will not be interleaved with data from other processes doing writes on the same pipe." make me think that it couldn't be just a macro; and if it were a loop in the library it seems it'd still have to make sure it's done with a single write system call. (yeah, I know that requirement is just for pipes; and I suppose they could write a loop for normal files and a different special case for pipes; but I'd be surprised).