From owner-freebsd-stable@FreeBSD.ORG Wed Sep 3 11:44:15 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22857106567D for ; Wed, 3 Sep 2008 11:44:15 +0000 (UTC) (envelope-from is@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.freebsd.org (Postfix) with ESMTP id C7D888FC13 for ; Wed, 3 Sep 2008 11:44:14 +0000 (UTC) (envelope-from is@rambler-co.ru) Received: from localhost (is1.park.rambler.ru [81.19.64.121]) by relay0.rambler.ru (Postfix) with ESMTP id 8606B5DC4; Wed, 3 Sep 2008 15:44:13 +0400 (MSD) Date: Wed, 3 Sep 2008 15:42:11 +0400 From: Igor Sysoev To: Sujit Karataparambil Message-ID: <20080903114210.GC62541@rambler-co.ru> References: <20080903095352.GA62541@rambler-co.ru> <921ca19c0809030333u6accf415l80ec5bfb4a984ce1@mail.gmail.com> <20080903112512.GB62541@rambler-co.ru> <921ca19c0809030433w50e16100rd624cdb4a2e4e947@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <921ca19c0809030433w50e16100rd624cdb4a2e4e947@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-stable@freebsd.org Subject: Re: vfs.ffs.rawreadahead X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2008 11:44:15 -0000 On Wed, Sep 03, 2008 at 05:03:21PM +0530, Sujit Karataparambil wrote: > These are Journalling File System. Some thing like WAPBL > which stands for Write-Ahead Physical Block Logging. These > are built on Generic kernel components. vfs.ffs.rawreadahead as it may be seen from its name is read-ahead capability, but not write-ahead. And there is no any write-ahead related sysctl: #sysctl -a|grep ahead vfs.ffs.rawreadahead: 1 # > On 9/3/08, Igor Sysoev wrote: > > On Wed, Sep 03, 2008 at 04:03:59PM +0530, Sujit Karataparambil wrote: > > > > > The VFS was designed to be Object abtraction of the Berkeley Fast File System. > > > This has been since an terminology with journalling filesystem to have > > > functionality to added on request. > > > > In src/sys/ufs/ffs/ffs_rawread.c I see that rawreadahead is used. > > However, I do not understand whether rawreadahead starts a second > > parallel ahead disk transaction with supplied userland buffer or not. > > > > > > -- > > Igor Sysoev > > http://sysoev.ru/en/ > > > > > On 9/3/08, Igor Sysoev wrote: > > > > Hi, > > > > > > > > could anyone tell what does vfs.ffs.rawreadahead enable ? > > > > As I understand it's used in DIRECTIO code that allows read data > > > > directly to an userland buffer bypassing the buffer cache. > > > > What I can not understand where the read ahead data can be placed in ? > > > > > > > > > > > > -- > > > > Igor Sysoev > > > > http://sysoev.ru/en/ > > > > > -- > --linux(2.4/2.6),bsd(4.5.x+),solaris(2.5+) -- Igor Sysoev http://sysoev.ru/en/