Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-28 Thread Waiman Long
On 08/28/2017 01:58 PM, Waiman Long wrote: > On 07/28/2017 02:34 PM, Waiman Long wrote: >> v2->v3: >> - Add a faster pruning rate when the free pool is closed to depletion. >> - As suggested by James Bottomley, add an artificial delay waiting >> loop before killing a negative dentry and

Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-28 Thread Waiman Long
On 07/28/2017 02:34 PM, Waiman Long wrote: > v2->v3: > - Add a faster pruning rate when the free pool is closed to depletion. > - As suggested by James Bottomley, add an artificial delay waiting > loop before killing a negative dentry and properly clear the > DCACHE_KILL_NEGATIVE flag

RE: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-21 Thread Wangkai (Kevin,C)
. McKenney; Andrew Morton; Ingo Molnar; > Miklos Szeredi; Matthew Wilcox; Larry Woodman; James Bottomley > Subject: Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries > > On 08/20/2017 11:23 PM, Wangkai (Kevin,C) wrote: > > > > Yes, I have add some trace info for the d

Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-21 Thread Waiman Long
On 08/20/2017 11:23 PM, Wangkai (Kevin,C) wrote: > > Yes, I have add some trace info for the dentry state changed, with dentry > flag and reference count: > > File create: > [ 42.636675] dentry [_1234] 0x880230be8180 flag 0x0 ref 1 ev dentry > alloc > File close: > [ 42.637421]

RE: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-20 Thread Wangkai (Kevin,C)
. McKenney; Andrew Morton; Ingo Molnar; > Miklos Szeredi; Matthew Wilcox; Larry Woodman; James Bottomley > Subject: Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries > > On 08/18/2017 05:59 AM, Wangkai (Kevin,C) wrote: > > > >>> In my patch the DCACHE_FILE_R

Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-18 Thread Waiman Long
On 08/18/2017 05:59 AM, Wangkai (Kevin,C) wrote: > >>> In my patch the DCACHE_FILE_REMOVED flag was to distinguish the >>> removed file and The closed file, I found there was no difference of a >>> dentry between the removed file and the closed File, they all on the lru >>> list. >> There is a

RE: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-18 Thread Wangkai (Kevin,C)
. McKenney; Andrew Morton; Ingo Molnar; > Miklos Szeredi; Matthew Wilcox; Larry Woodman; James Bottomley > Subject: Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries > > On 08/17/2017 12:00 AM, Wangkai (Kevin,C) wrote: > > > >>> > >>> Hi Longman, &

Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-17 Thread Waiman Long
On 08/17/2017 12:00 AM, Wangkai (Kevin,C) wrote: > >>> >>> Hi Longman, >>> I am a fresher of fsdevel, about 2 weeks before, I have joined this >>> mail list, recently I have met the same problem of negative dentries, >>> in my opinion, the dentries should be remove together with the files or >>

RE: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-16 Thread Wangkai (Kevin,C)
; Paul E. McKenney; Andrew Morton; Ingo Molnar; > Miklos Szeredi; Matthew Wilcox; Larry Woodman; James Bottomley > Subject: Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries > > On 08/16/2017 06:33 AM, Wangkai (Kevin,C) wrote: > >> -Original Message- > &g

Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-16 Thread Waiman Long
nathan Corbet >> Cc: linux-ker...@vger.kernel.org; linux-doc@vger.kernel.org; >> linux-fsde...@vger.kernel.org; Paul E. McKenney; Andrew Morton; Ingo Molnar; >> Miklos Szeredi; Matthew Wilcox; Larry Woodman; James Bottomley >> Subject: Re: [PATCH v3 0/5] fs/dcache: Limit # of

RE: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-16 Thread Wangkai (Kevin,C)
ernel.org; > linux-fsde...@vger.kernel.org; Paul E. McKenney; Andrew Morton; Ingo Molnar; > Miklos Szeredi; Matthew Wilcox; Larry Woodman; James Bottomley > Subject: Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries > > On 07/28/2017 02:34 PM, Waiman Long wrote: > > v2

Re: [PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-08-15 Thread Waiman Long
On 07/28/2017 02:34 PM, Waiman Long wrote: > v2->v3: > - Add a faster pruning rate when the free pool is closed to depletion. > - As suggested by James Bottomley, add an artificial delay waiting > loop before killing a negative dentry and properly clear the > DCACHE_KILL_NEGATIVE flag

[PATCH v3 0/5] fs/dcache: Limit # of negative dentries

2017-07-28 Thread Waiman Long
v2->v3: - Add a faster pruning rate when the free pool is closed to depletion. - As suggested by James Bottomley, add an artificial delay waiting loop before killing a negative dentry and properly clear the DCACHE_KILL_NEGATIVE flag if killing doesn't happen. - Add a new patch to