Messages in this thread | | | Subject | Re: [ckrm-tech] [RFC][PATCH 5/7] UBC: kernel memory accounting (core) | From | Dave Hansen <> | Date | Mon, 21 Aug 2006 08:10:56 -0700 |
| |
On Mon, 2006-08-21 at 14:40 +0400, Kirill Korotaev wrote: > The one reason is that such an accounting allows to estimate the > memory > used/required by containers, while limitations by objects: > - per object accounting/limitations do not provide any memory > estimation
I know you're more clever than _that_. ;)
> - having a big number of reasonably high limits still allows the user > to consume big amount of memory. I.e. the sum of all the limits tend > to be high and potentially DoS exploitable :/ > - memory is easier to setup/control from user POV. > having hundreds of controls is good, but not much user friendly.
I'm actually starting to think that some accounting memory usage *only* in the slab, plus a few other structures for any stragglers not using the slab would suffice. Since the slab knows the size of the objects, there is no ambiguity about how many are being used. It should also be a pretty generic way to control individual object types, if anyone else should ever need it.
The high level pages-used-per-container metric is really nice for just that, containers. But, I wonder if other users would find it useful if there were more precise ways of controlling individual object usage.
-- Dave
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |