login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
16
Re: [RFC][3/3] Update documentation for virtual address space control
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Randy Dunlap <randy.dunlap@...>
To: Balbir Singh <balbir@...>
Cc: <linux-mm@...>, Hugh Dickins <hugh@...>, Sudhir Kumar <skumar@...>, YAMAMOTO Takashi <yamamoto@...>, Paul Menage <menage@...>, <lizf@...>, <linux-kernel@...>, <taka@...>, David Rientjes <rientjes@...>, Pavel Emelianov <xemul@...>, Andrew Morton <akpm@...>, KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>
Subject:
Re: [RFC][3/3] Update documentation for virtual address space control
Date: Sunday, March 16, 2008 - 2:32 pm
On Sun, 16 Mar 2008 23:00:17 +0530 Balbir Singh wrote:
quoted text
> This patch adds documentation for virtual address space control. > > Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> > --- > > Documentation/controllers/memory.txt | 26 +++++++++++++++++++++++++- > 1 file changed, 25 insertions(+), 1 deletion(-) > > diff -puN Documentation/controllers/memory.txt~memory-controller-virtual-address-control-documentation Documentation/controllers/memory.txt > --- linux-2.6.25-rc5/Documentation/controllers/memory.txt~memory-controller-virtual-address-control-documentation 2008-03-16 22:57:44.000000000 +0530 > +++ linux-2.6.25-rc5-balbir/Documentation/controllers/memory.txt 2008-03-16 22:57:44.000000000 +0530 > @@ -237,7 +237,31 @@ cgroup might have some charge associated > tasks have migrated away from it. Such charges are automatically dropped at > rmdir() if there are no tasks. > > -5. TODO > +5. Virtual address space accounting > + > +A new resource counter controls the address space expansion of the tasks in > +the cgroup. Address space control is provided along the same lines as > +RLIMIT_AS control, which is available via getrlimit(2)/setrlimit(2). > +The interface for controlling address space is provided through > +"as_limit_in_bytes". The file is similar to "limit_in_bytes" w.r.t the user
w.r.t. or even spelled out.
quoted text
> +interface. Please see section 3 for more details on how to use the user > +interface to get and set values. > + > +The "as_usage_in_bytes" file provides information about the total address > +space usage of the cgroup in bytes. > + > +5.1 Advantages of providing this feature > + > +1. Control over virtual address space allows for a cgroup to fail gracefully > + i.e, via a malloc or mmap failure as compared to OOM kill when no
i.e.,
quoted text
> + pages can be reclaimed
end with period.
quoted text
> +2. It provides better control over how many pages can be swapped out when > + the cgroup goes over it's limit. A badly setup cgroup can cause excessive
its (not "it is")
quoted text
> + swapping. Providing control over the address space allocations ensures > + that the system administrator has control over the total swapping that > + can take place. > + > +6. TODO > > 1. Add support for accounting huge pages (as a separate controller) > 2. Make per-cgroup scanner reclaim not-shared pages first > _
--- ~Randy --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[RFC][0/3] Virtual address space control for cgroups
, Balbir Singh
, (Sun Mar 16, 1:29 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Paul Menage
, (Sun Mar 16, 7:26 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Balbir Singh
, (Sun Mar 16, 9:50 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Paul Menage
, (Sun Mar 16, 9:55 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Balbir Singh
, (Sun Mar 16, 11:12 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Li Zefan
, (Sun Mar 16, 9:47 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Paul Menage
, (Sun Mar 16, 9:57 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Balbir Singh
, (Mon Mar 17, 1:08 am)
Re: [RFC][0/3] Virtual address space control for cgroups
, Paul Menage
, (Mon Mar 17, 1:22 am)
Re: [RFC][0/3] Virtual address space control for cgroups
, Balbir Singh
, (Mon Mar 17, 11:15 am)
[RFC][3/3] Update documentation for virtual address space co...
, Balbir Singh
, (Sun Mar 16, 1:30 pm)
Re: [RFC][3/3] Update documentation for virtual address spac...
, Randy Dunlap
, (Sun Mar 16, 2:32 pm)
Re: [RFC][3/3] Update documentation for virtual address spac...
, Balbir Singh
, (Sun Mar 16, 9:33 pm)
[RFC][2/3] Account and control virtual address space allocat...
, Balbir Singh
, (Sun Mar 16, 1:30 pm)
Re: [RFC][2/3] Account and control virtual address space all...
, Paul Menage
, (Sun Mar 16, 10:02 pm)
Re: [RFC][2/3] Account and control virtual address space all...
, Balbir Singh
, (Sun Mar 16, 10:57 pm)
Re: [RFC][2/3] Account and control virtual address space all...
, Paul Menage
, (Sun Mar 16, 11:03 pm)
Re: [RFC][2/3] Account and control virtual address space all...
, Pavel Emelyanov
, (Mon Mar 17, 7:36 am)
Re: [RFC][2/3] Account and control virtual address space all...
, Balbir Singh
, (Mon Mar 17, 8:29 am)
Re: [RFC][2/3] Account and control virtual address space all...
, Pavel Emelyanov
, (Mon Mar 17, 8:40 am)
Re: [RFC][2/3] Account and control virtual address space all...
, Balbir Singh
, (Mon Mar 17, 8:51 am)
Re: [RFC][2/3] Account and control virtual address space all...
, Pavel Emelyanov
, (Mon Mar 17, 9:01 am)
Re: [RFC][2/3] Account and control virtual address space all...
, Balbir Singh
, (Mon Mar 17, 10:39 am)
Re: [RFC][2/3] Account and control virtual address space all...
, YAMAMOTO Takashi
, (Mon Mar 17, 7:35 pm)
Re: [RFC][2/3] Account and control virtual address space all...
, Balbir Singh
, (Mon Mar 17, 9:10 pm)
Re: [RFC][2/3] Account and control virtual address space all...
, Dave Hansen
, (Mon Mar 17, 12:53 pm)
Re: [RFC][2/3] Account and control virtual address space all...
, Balbir Singh
, (Mon Mar 17, 9:14 pm)
Re: [RFC][2/3] Account and control virtual address space all...
, Dave Hansen
, (Tue Mar 18, 1:11 pm)
Re: [RFC][2/3] Account and control virtual address space all...
, Balbir Singh
, (Tue Mar 18, 1:58 pm)
[RFC][1/3] Add user interface for virtual address space cont...
, Balbir Singh
, (Sun Mar 16, 1:29 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
Re: Linux 2.6.21-rc4
Andrew Morton
-mm merge plans for 2.6.23
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Balbir Singh
Re: [RFC][PATCH 2/7] RSS controller core
git
:
linux-netdev
:
Gerrit Renker
[PATCH 15/37] dccp: Set per-connection CCIDs via socket options
David Miller
[GIT]: Networking
Andreas Henriksson
[PATCH 06/12] Remove bogus reference to tc-filters(8) from tc(8) manpage.
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
797 guests
online.
Online users
Maurizio
Syndicate