Re: [RFC][PATCH] fs: optimize inotify/fsnotify code for unwatched files

From: Dave Hansen
Date: Mon Jun 22 2015 - 14:51:03 EST

On 06/22/2015 08:11 AM, Paul E. McKenney wrote:
> But if Dave is willing to test it, I would be happy to send along
> a fast-readers patch, easy to do.

I'm always willing to test, but the cost of the srcu_read_lock() barrier
shows up even on my 2-year-old "Intel(R) Core(TM) i5-3320M CPU @
2.60GHz" laptop. The numbers I shared in this thread are on a newer CPU
than that, so I'm fairly confident this will show up on just about any
(big core) Intel CPU newer than SandyBridge.

The tests I've been running are:

with two new 1-byte read/write tests copied in to "tests/":

The one-byte thing is silly but it does help isolate the kernel's
overhead from what the app is doing.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at