lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 28 Aug 2006 15:28:09 -0700
From:	Rohit Seth <rohitseth@...gle.com>
To:	Kir Kolyshkin <kir@...nvz.org>
Cc:	devel@...nvz.org, Alan Cox <alan@...rguk.ukuu.org.uk>,
	Andrew Morton <akpm@...l.org>, Rik van Riel <riel@...hat.com>,
	Andi Kleen <ak@...e.de>,
	Chandra Seetharaman <sekharan@...ibm.com>,
	Greg KH <greg@...ah.com>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Christoph Hellwig <hch@...radead.org>,
	Andrey Savochkin <saw@...ru>,
	Matt Helsley <matthltc@...ibm.com>,
	Oleg Nesterov <oleg@...sign.ru>
Subject: Re: [Devel] Re: BC: resource beancounters (v2)

On Mon, 2006-08-28 at 21:41 +0400, Kir Kolyshkin wrote:
> Rohit Seth wrote:
> >
> > I'm not saying per use glibc etc.  That will indeed be useless and bring
> > it to virtualization world.  Just like fake node, one should be allowed
> > to use pages that are already in  (for example) page cache- so that you
> > don't end up duplicating all shared stuff.  But as far as charging is
> > concerned, charge it to container who either got the page in page cache
> > OR if FS based semantics exist then charge it to the container where the
> > file belongs.  What I was suggesting is to not charge a page to
> > different counters.
> >   
> 
> Consider the following simple scenario: there are 50 containers 
> (numbered, say, 1 to 50) all sharing a single installation of Fedora 
> Core 5. They all run sshd, apache, syslogd, crond and some other stuff 
> like that. This is actually quite a real scenario.
> 
> In the world that you propose the container which was unlucky to start 
> first (probably the one with ID of either 1 or 50) will be charged for 
> all the memory, and all the
> others will have most of their memory for free. And in such a world 
> per-container memory accounting or limiting is just not possible.

If you are only having task based accounting then yes the first
container using a page will be charged.  And when it hit its limit then
it will inactivate some of the pages.  If some other container now uses
the same page (that got inactivated) again then this next container will
be charged for that page.

Though if we have file/directory based accounting then shared pages
belonging to /usr/lib or /usr/bin can go to a common container.

-rohit

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ