On Tue, 9 Nov 2004 12:01:33 -0500 (EST) "Gregory (Grisha) Trubetskoy" <[EMAIL PROTECTED]> wrote:
> > On Tue, 9 Nov 2004, Herbert Poetzl wrote: > > > On Tue, Nov 09, 2004 at 10:55:43AM -0500, Gregory (Grisha) > > Trubetskoy wrote: > > > >> Related to this - why is xid tagging required for per-context disk > >limits? > > > > a simple example: > > > > context xid=100 creates a 10MB file, the size is added > > to xid=100's disk usage, then the host admin decides to > > remove it with rm, how should the kernel know that the > > size should be substracted from xid=100's disk usage? > > I see. But how about if it doesn't, i.e. the size adjustment is solely > based on the context from which the operation is performed? I don't see any reason why it should behave like that, would only cause trouble. Example: xid 10 is limited to 500MB and has 300MB in use. xid 0 deletes some 50MB file. Now there are files worth 250MB, but still the kernel assumes that 300MB are in use. Where's the sense behind that? You would have to adapt the usage statistics every now and then. Bjoern _______________________________________________ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver