Re: NFS client latencies

From: Ingo Molnar
Date: Thu Mar 31 2005 - 10:00:32 EST



* Trond Myklebust <trond.myklebust@xxxxxxxxxx> wrote:

> Errm... That looks a bit unsafe. What is there then to stop another
> process from removing "pos" while you are scheduling? It seems to me
> that you should really start afresh in that case.

yeah.

> The good news, though, is that because requests on the "commit" list
> do not remain locked for long without being removed from the list, you
> should rarely have to skip them. IOW restarting from the head of the
> list is pretty much the same as starting from where you left off.

as we've learned it through painful experience on the ext3 side,
restarting scans where 'skipping' has to be done is unhealthy.

would it be safe to collect locked entries into a separate, local list,
so that the restart would only see newly added entries? Then once the
moving of all entries has been done, all the locked entries could be
added back to the commit_list via one list_add. (can anything happen to
those locked entries that would break this method?)

Ingo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/