Re: [PATCH 2/2] fuse: Move clear_bit() up in request_end()

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

 



On 07.08.2018 15:22, Miklos Szeredi wrote:
> On Tue, Jul 31, 2018 at 12:25 PM, Kirill Tkhai <ktkhai@xxxxxxxxxxxxx> wrote:
>> Nobody can clear FR_BACKGROUND bit on processing
>> request in parallel, so it's possible to do it
>> out of fc->lock.
> 
> Moving such a cheap operation outside the splinlock won't make any
> difference in real life.

It's not about difference in real life, it's about readability.
Testing the bit outside the lock and clearing it inside the lock
confuses a reader, and makes he to thing there is a tricky synchronization,
while there is no tricky synchronization.

> And anyway the biggest problem with fc->lock is not contention (hold
> for long period of time), I would guess, but cachline pingponging
> (being acquired on different CPUs one after the other).
> 
> So there's definitely work to do regarding locking in fuse, but it
> needs a bigger axe.

I've moved background stuff at a separate lock in my sandbox tree,
and this was pretty easy. Not yet sent to you, since I'm going to do
some performance testing on this. I've locked for tests used to measure
the performance in fuse git log, but there is no one pointing in the log
I found. Could you tell, what fuse driver do you use to measure performance
and which test you use?

Kirill



[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