LWN.net Logo

Resource beancounters

Resource beancounters

Posted Aug 31, 2006 14:28 UTC (Thu) by utoddl (subscriber, #1232)
Parent article: Resource beancounters

Wow. They've reinvented another flavor of process groups. Kind of like the old AFS PAG, but it tracks resource allocations instead of tracking authentication tokens. And then there's the keyring based implementation of process authentication groups that OpenAFS is moving toward and that NFSv4+ (and any other externally hosted authenticated resource) is going to need. I'm sure there are others. How many different ways of grouping processes do we need, and does some of this code overlap?


(Log in to post comments)

Resource beancounters

Posted Sep 16, 2006 6:41 UTC (Sat) by devx (guest, #40551) [Link]

There is a small misunderstanding. Beancounters have nothing to do with tasks directly and don't do task groupping.
Look, there are a lot of resources which can be shared: pages, IPCs, files etc. Task groupping doesn't help anyhow since the same file can belong to 2 different tasks in 2 different resource groups.
So tasks if accounted are just the same kind of abstract objects just like any other are (files, sockets, ...).

And beancounters do not track and do not have a list of the objects.
Instead, beancounters do:
- accounting
- limiting
- beancounters are referenced to _by_ all the charged objects (not otherwise) to make uncharging correct (objects freeing can be done in arbitrary context).

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds