Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1656806 > unrolled thread

Re: [PATCH] fs/buffer.c: make bh_lru_install() more efficient

Started bySean Fu <fxinrong@gmail.com>
First post2017-06-03 16:00 +0200
Last post2017-06-03 16:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] fs/buffer.c: make bh_lru_install() more efficient Sean Fu <fxinrong@gmail.com> - 2017-06-03 16:00 +0200

#1656806 — Re: [PATCH] fs/buffer.c: make bh_lru_install() more efficient

FromSean Fu <fxinrong@gmail.com>
Date2017-06-03 16:00 +0200
SubjectRe: [PATCH] fs/buffer.c: make bh_lru_install() more efficient
Message-ID<tOhKW-7ID-17@gated-at.bofh.it>
On Sat, Mar 25, 2017 at 08:34:30PM -0700, Eric Biggers wrote:
> On Thu, Dec 29, 2016 at 01:34:45PM -0600, Eric Biggers wrote:
> > From: Eric Biggers <ebiggers@google.com>
> > 
> > To install a buffer_head into the cpu's LRU queue, bh_lru_install()
> > would construct a new copy of the queue and then memcpy it over the real
> > queue.  But it's easily possible to do the update in-place, which is
> > faster and simpler.  Some work can also be skipped if the buffer_head
> > was already in the queue.
> > 
> > As a microbenchmark I timed how long it takes to run sb_getblk()
> > 10,000,000 times alternating between BH_LRU_SIZE + 1 blocks.
> > Effectively, this benchmarks looking up buffer_heads that are in the
> > page cache but not in the LRU:
> > 
> > 	Before this patch: 1.758s
> > 	After this patch: 1.653s
> > 
> > This patch also removes about 350 bytes of compiled code (on x86_64),
> > partly due to removal of the memcpy() which was being inlined+unrolled.
> > 
> > Signed-off-by: Eric Biggers <ebiggers@google.com>
> 
> Ping?  Al, do you have any interest in taking this patch?
> 
> - Eric
IMO, It is great patch.
Could you please share your microbenchmark steps?
I wanna take a deep look at it.

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web