bug-hurd
[Top][All Lists]
Advanced

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

Re: [PATCH] Page cache accounting


From: Neal H. Walfield
Subject: Re: [PATCH] Page cache accounting
Date: Sun, 15 Jul 2012 20:39:28 +0200
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Sun, 15 Jul 2012 19:35:31 +0200,
Richard Braun wrote:
> 
> On Sun, Jul 15, 2012 at 06:39:05PM +0200, Neal H. Walfield wrote:
> > I'd encourage you to use a more self-describing data structure.  In
> > the very least, please consider a version number and a bitmask
> > indicating which fields are valid.
> 
> What about versioning the call itself, e.g. vm_cache_statistics1 etc.. ?

In this case, I guess it doesn't make a big difference.  But, in
general, you could have the caller provide a list of versions that it
understands and allow the server to choose the best version from the
intersection of that list and what it supports.  This prevents the
client from having to make O(N) calls.

Neal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]