Re: + vfs-pagecache-usage-optimization-onpagesize=blocksize-environment.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 29 May 2008 09:23, akpm@xxxxxxxxxxxxxxxxxxxx wrote:
> The patch titled
>      vfs: pagecache usage optimization for pagesize!=blocksize
> has been added to the -mm tree.  Its filename is
>     
> vfs-pagecache-usage-optimization-onpagesize=blocksize-environment.patch
>
> Before you just go and hit "reply", please:
>    a) Consider who else should be cc'ed
>    b) Prefer to cc a suitable mailing list as well
>    c) Ideally: find the original patch on the mailing list and do a
>       reply-to-all to that, adding suitable additional cc's
>
> *** Remember to use Documentation/SubmitChecklist when testing your code
> ***
>
> See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
> out what to do about this
>
> The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
>
> ------------------------------------------------------
> Subject: vfs: pagecache usage optimization for pagesize!=blocksize
> From: Hisashi Hifumi <hifumi.hisashi@xxxxxxxxxxxxx>
>
> When we read some part of a file through pagecache, if there is a
> pagecache of corresponding index but this page is not uptodate, read IO is
> issued and this page will be uptodate.
>
> I think this is good for pagesize == blocksize environment but there is
> room for improvement on pagesize != blocksize environment.  Because in
> this case a page can have multiple buffers and even if a page is not
> uptodate, some buffers can be uptodate.
>
> So I suggest that when all buffers which correspond to a part of a file
> that we want to read are uptodate, use this pagecache and copy data from
> this pagecache to user buffer even if a page is not uptodate.  This can
> reduce read IO and improve system throughput.
>
> Signed-off-by: Hisashi Hifumi <hifumi.hisashi@xxxxxxxxxxxxx>
> Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx>
> Cc: Jan Kara <jack@xxxxxx>
> Cc: <linux-ext4@xxxxxxxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>

Oh, you guys like this approach?

I'm not a big fan. The concept is good, but I'd much prefer to change
the readpage interface (or add a different interface perhaps) that
allows the filesystem to be called to do the actual data copy itself.

This would allow filesystems to effectively ask to be called at each
read as well without implementing the whole read path (if they simply
don't mark the page as uptodate).
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux