lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200806031622.25568.nickpiggin@yahoo.com.au>
Date:	Tue, 3 Jun 2008 16:22:25 +1000
From:	Nick Piggin <nickpiggin@...oo.com.au>
To:	akpm@...ux-foundation.org, linux-fsdevel@...r.kernel.org
Cc:	mm-commits@...r.kernel.org, hifumi.hisashi@....ntt.co.jp,
	jack@....cz, linux-ext4@...r.kernel.org
Subject: Re: + vfs-pagecache-usage-optimization-onpagesize=blocksize-environment.patch added to -mm tree

On Thursday 29 May 2008 09:23, akpm@...ux-foundation.org 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@....ntt.co.jp>
>
> 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@....ntt.co.jp>
> Cc: Nick Piggin <nickpiggin@...oo.com.au>
> Cc: Jan Kara <jack@....cz>
> Cc: <linux-ext4@...r.kernel.org>
> Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>

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-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ