We already do all our accounting in pages for total_vm (field of mm_struct).
task_vsize() for example multiplies PAGE_SIZE with total_vm before returning the
result.
I can't see that happening, but I'll look again and request reviewers to help me
identify any such problems that can occur.
That's a good question. From the sustenance point of view, resource counters
have worked really well so far. Abstracting accounting and tracking from the
controllers has been a good thing. One of the goals of the rlimit controller is
to keep it open for extension, so that others can add their own control for
other resources like mlock'ed pages.
--
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL
--