Controlling memory use in containers
Posted Aug 2, 2007 8:14 UTC (Thu) by
Nick (guest, #15060)
In reply to:
Controlling memory use in containers by balbir_singh
Parent article:
Controlling memory use in containers
Heh, this is a very appropriate forum for discussing patches ;)
Some more direct name like struct page_container sounds nicer
to me, yes. I wouldn't worry about how to add different types
of extra page data yet. It is going to be yet more costly, so
I would just tackle that if/when it comes up:
eg. struct page_extra {
struct page_container *pc;
struct something_else *blah;
};
While you're here: do you think you could look at not using up a
page flag for locking, please? As you're adding a new pointer in
struct page, then you might be able to use the low bit or two of
that guy as flags. This even gives you the advantage that you can
use a non-atomic store to unlock, once I get my bitops patches in,
as long as the word it isn't subject to concurrent modifications
when it is locked.
(
Log in to post comments)