Re: high latency NFS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dave Chinner
Date: Sunday, August 3, 2008 - 7:14 pm

On Sun, Aug 03, 2008 at 09:11:58PM -0400, J. Bruce Fields wrote:

In a nutshell.


Simple counters, IIRC (memory hazy so it might be a bit different).
Basically, when we queue a request we check a wakeup counter. If
the wakeup counter is less than a certain threshold (e.g. 5) we
issue a wakeup to get another NFSD running. When the NFSD first
runs and dequeues a request, it then decrements the wakeup counter,
effectively marking that NFSD as busy doing work. IIRC a small
threshold was necessary to ensure we always had enough NFSDs ready
to run if there was some I/O going on (i.e. a mixture of blocking
and non-blocking RPCs).

i.e. we need to track the wakeup-to-run latency to prevent waking too
many NFSDs and loading the run queue unnecessarily.


Partly, yes, in that the scheduler overhead shouldn't increase when we
do this. However, from an efficiency point of view, if we are blindly
waking NFSDs when it is not necessary then (IMO) we've got an NFSD
problem....


I don't know enough about how the group scheduling works to be able
to comment in detail. In theory it sounds like it would prevent
the starvation problems, but if it prevents implementation of
dynamic NFSD pools then I don't think it's a good idea....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: high latency NFS, Neil Brown, (Thu Jul 31, 12:03 am)
Re: high latency NFS, Dave Chinner, (Fri Aug 1, 12:23 am)
Re: high latency NFS, J. Bruce Fields, (Fri Aug 1, 12:15 pm)
Re: high latency NFS, J. Bruce Fields, (Fri Aug 1, 12:23 pm)
Re: high latency NFS, Dave Chinner, (Sun Aug 3, 5:32 pm)
Re: high latency NFS, Dave Chinner, (Sun Aug 3, 5:38 pm)
Re: high latency NFS, J. Bruce Fields, (Sun Aug 3, 6:11 pm)
Re: high latency NFS, NeilBrown, (Sun Aug 3, 6:29 pm)
Re: high latency NFS, Dave Chinner, (Sun Aug 3, 7:14 pm)
Re: high latency NFS, Greg Banks, (Sun Aug 3, 11:42 pm)
Re: high latency NFS, Bernd Schubert, (Mon Aug 4, 2:18 am)
Re: high latency NFS, Greg Banks, (Mon Aug 4, 2:25 am)
Re: high latency NFS, J. Bruce Fields, (Mon Aug 4, 12:07 pm)
Re: high latency NFS, Greg Banks, (Tue Aug 5, 3:51 am)