Re: [-mm][PATCH 3/4] Add rlimit controller accounting and control

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Balbir Singh
Date: Monday, May 5, 2008 - 10:34 pm

Andrew Morton wrote:

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[-mm][PATCH 0/4] Add rlimit controller to cgroups (v3), Balbir Singh, (Sat May 3, 2:37 pm)
[-mm][PATCH 1/4] Setup the rlimit controller, Balbir Singh, (Sat May 3, 2:37 pm)
[-mm][PATCH 4/4] Add rlimit controller documentation, Balbir Singh, (Sat May 3, 2:38 pm)
Re: [-mm][PATCH 0/4] Add rlimit controller to cgroups (v3), kamezawa.hiroyu, (Sun May 4, 8:24 am)
Re: [-mm][PATCH 1/4] Setup the rlimit controller, Andrew Morton, (Mon May 5, 3:11 pm)
Re: [-mm][PATCH 1/4] Setup the rlimit controller, Li Zefan, (Mon May 5, 6:31 pm)
Re: [-mm][PATCH 1/4] Setup the rlimit controller, Balbir Singh, (Mon May 5, 8:40 pm)
Re: [-mm][PATCH 3/4] Add rlimit controller accounting and ..., Balbir Singh, (Mon May 5, 10:34 pm)
Re: [-mm][PATCH 4/4] Add rlimit controller documentation, Andrew Morton, (Mon May 5, 10:54 pm)
Re: [-mm][PATCH 1/4] Setup the rlimit controller, Balbir Singh, (Tue May 6, 1:15 am)
Re: [-mm][PATCH 0/4] Add rlimit controller to cgroups (v3), KAMEZAWA Hiroyuki, (Tue May 6, 6:09 pm)