Editing
Util-vserver:Cgroups
(section)
From Linix VServer
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span class="editsection">[<nowiki/>[[index.php?title=util-vserver:Cgroups&action=edit§ion=9|edit]]]</span> <span class="mw-headline"> using cgroup to enforce memory limits </span> == in linux-vserver patch version vs2.3.0.36.29 memory limiting by cgroup is introduced. to use it you need to have the following config lines in your kernel build (aditionally to the others mentioned for cgroup cpu limits): * CONFIG_RESOURCE_COUNTERS=y * CONFIG_CGROUP_MEM_RES_CTLR=y * CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y make sure /dev/cgroup is mounted with -o...,memory to be able to use this feature. The following files let you adjust memory limits of a running vserver (create them in /etc/vservers/-vserver-name- /cgroup/ to make them permanent): * memory.memsw.limit_in_bytes the total memory limit (memory+swap) of your cgroup context * memory.limit_in_bytes the total memory limit values are stored in bytes. When writing to those files you can use suffixes: K,M,G. Note: cgroup memory limits are to replace rss.soft and rss.hard some time in the future. When you wish the guests to see only their limited memory pool, be sure to include VIRT_MEM in your cflags config file. For a deeper understanding check out Documentation/cgroups/memory.txt of your kernel source tree. <span id="Real_world_Examples_of_Scheduling"></span> <span id="edit-real-world-examples-of-scheduling"></span>
Summary:
Please note that all contributions to Linix VServer may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linix VServer:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
About
Overview
Paper
News
Developers
Donations
Search
Getting Started
Downloads
FAQs
Documentation
Support
Participate
How to participate
Report a Bug
Communicate
Teams/Projects
Hall of Fame
Resources
Archives
Recent Wiki Changes
Pastebin
Related Projects
VServer Hosting
Happy VServer Users
Tools
What links here
Related changes
Special pages
Page information