login
Login
/
Register
Search
Search this site:
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
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Randy Dunlap
Subject:
Re: [RFC][3/3] Update documentation for virtual address space control
Date: Sunday, March 16, 2008 - 11:32 am
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, 10:29 am)
[RFC][1/3] Add user interface for virtual address space co ...
, Balbir Singh
, (Sun Mar 16, 10:29 am)
[RFC][2/3] Account and control virtual address space alloc ...
, Balbir Singh
, (Sun Mar 16, 10:30 am)
[RFC][3/3] Update documentation for virtual address space ...
, Balbir Singh
, (Sun Mar 16, 10:30 am)
Re: [RFC][3/3] Update documentation for virtual address sp ...
, Randy Dunlap
, (Sun Mar 16, 11:32 am)
Re: [RFC][0/3] Virtual address space control for cgroups
, Paul Menage
, (Sun Mar 16, 4:26 pm)
Re: [RFC][3/3] Update documentation for virtual address sp ...
, Balbir Singh
, (Sun Mar 16, 6:33 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Li Zefan
, (Sun Mar 16, 6:47 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Balbir Singh
, (Sun Mar 16, 6:50 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Paul Menage
, (Sun Mar 16, 6:55 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Paul Menage
, (Sun Mar 16, 6:57 pm)
Re: [RFC][2/3] Account and control virtual address space a ...
, Paul Menage
, (Sun Mar 16, 7:02 pm)
Re: [RFC][2/3] Account and control virtual address space a ...
, Balbir Singh
, (Sun Mar 16, 7:57 pm)
Re: [RFC][2/3] Account and control virtual address space a ...
, Paul Menage
, (Sun Mar 16, 8:03 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Balbir Singh
, (Sun Mar 16, 8:12 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Balbir Singh
, (Sun Mar 16, 10:08 pm)
Re: [RFC][0/3] Virtual address space control for cgroups
, Paul Menage
, (Sun Mar 16, 10:22 pm)
Re: [RFC][2/3] Account and control virtual address space a ...
, Pavel Emelyanov
, (Mon Mar 17, 4:36 am)
Re: [RFC][2/3] Account and control virtual address space a ...
, Balbir Singh
, (Mon Mar 17, 5:29 am)
Re: [RFC][2/3] Account and control virtual address space a ...
, Pavel Emelyanov
, (Mon Mar 17, 5:40 am)
Re: [RFC][2/3] Account and control virtual address space a ...
, Balbir Singh
, (Mon Mar 17, 5:51 am)
Re: [RFC][2/3] Account and control virtual address space a ...
, Pavel Emelyanov
, (Mon Mar 17, 6:01 am)
Re: [RFC][2/3] Account and control virtual address space a ...
, Balbir Singh
, (Mon Mar 17, 7:39 am)
Re: [RFC][0/3] Virtual address space control for cgroups
, Balbir Singh
, (Mon Mar 17, 8:15 am)
Re: [RFC][2/3] Account and control virtual address space a ...
, Dave Hansen
, (Mon Mar 17, 9:53 am)
Re: [RFC][2/3] Account and control virtual address space a ...
, YAMAMOTO Takashi
, (Mon Mar 17, 4:35 pm)
Re: [RFC][2/3] Account and control virtual address space a ...
, Balbir Singh
, (Mon Mar 17, 6:10 pm)
Re: [RFC][2/3] Account and control virtual address space a ...
, Balbir Singh
, (Mon Mar 17, 6:14 pm)
Re: [RFC][2/3] Account and control virtual address space a ...
, Dave Hansen
, (Tue Mar 18, 10:11 am)
Re: [RFC][2/3] Account and control virtual address space a ...
, Balbir Singh
, (Tue Mar 18, 10:58 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Howells
[PATCH] KEYS: Use the variable 'key' in keyctl_describe_key()
Dave Jones
Re: OT: character encodings (was: Linux 2.6.20-rc4)
Greg Kroah-Hartman
[PATCH 17/36] sysdev: detect multiple driver registrations
Sam Ravnborg
Re: [PATCH] kbuild: fix make V=1
Nick Piggin
Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Junio C Hamano
Re: [PATCH 1/2] Teach git-describe to display distances from tags.
Johannes Schindelin
Re: [PATCH 2/2] git-svn: support fetch with autocrlf on
Dan Chokola
Re: how do you "force a pull"?
Junio C Hamano
Re: [PATCH 6/6] Teach core object handling functions about gitlinks
linux-netdev
:
Jan Engelhardt
[PATCH 1/3] net: tcp: make hybla selectable as default congestion module
Jarek Poplawski
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Lennert Buytenhek
Re: Distributed Switch Architecture(DSA)
Daniel Schaffrath
Re: tcp bw in 2.6
Matt Mackall
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
git-commits-head
:
Linux Kernel Mailing List
ipv6: fix an oops when force unload ipv6 module
Linux Kernel Mailing List
tracing: protect reader of cmdline output
Linux Kernel Mailing List
kconfig: recalc symbol value before showing search results
Linux Kernel Mailing List
KVM: VMX: Clear CR4.VMXE in hardware_disable
Linux Kernel Mailing List
USB-serial: pl2303: fix baud rate handling in case of unsupported values
openbsd-misc
:
Claudio Jeker
Re: Vlan Tag on Vlan Tag (l2tunneling)
Josh Grosse
ssh/sshd challenge-response seems to have stopped working in -current
Pieter Verberne
File collision while using pkg_add
Tomas Bodzar
bsd: uvm_mapent_alloc: out of static map entries
Community First Financial
Teacher A+ Loan
Colocation donated by:
Syndicate