Skip to main content

OpenVZ VSwap


New RHEL6-based OpenVZ kernel has a new memory management model, which supersedes User beancounters. It is called VSwap.
Now you can set two primary parameters: physpages and swappages, while all the other beancounters become secondary.
  • physpages
This parameter limits the physical memory (RAM) available to processes inside a container.
The barrier is ignored, and the limit sets the limit.
Currently the user memory and the page cache are accounted into physpages.
  • swappages
This parameter limits the amount of swap space which can be used for processes inside a container.
The barrier is ignored, and the limit sets the limit.
The sum of physpages.limit and swappages.limit limits the maximum amount of allocated memory which can be used by a container. When physpages limit is reached, memory pages belonging to the container are pushed out to so called virtual swap (vswap). The difference between normal swap and vswap is that with vswap no actual disk I/O usually occurs. Instead, a container is artificially slowed down, to emulate the effect of the real swapping. Actual swap out occurs only if there is a global memory shortage on the system.


Comments

Popular posts from this blog

Feedly launches 'Feedly Cloud' sync platform, new web interface

Feedly, one of the leading Google Reader replacement services, announced major restructuring of its services today with a new cloud infrastructure and web interface. Posted on its official blog, Feedly unveiled what it calls "Feedly Cloud", a scalable infrastructure it says is ready to replace Google Reader. The new Feedly Cloud provides several benefits, the first of which is one-click import from Google Reader -- new users to the service can now simply pull everything over seamlessly from their Google account and start using Feedly right away. Existing users will simply have to make sure that they have the latest version of Feedly installed, and their accounts will be migrated to Feedly Cloud over the next few days. Additionally, the new service allowed Feedly to create a stand-alone web interface (found simply at cloud.feedly.com) that works in all major browsers without plugins or extensions. The transition to Feedly Cloud has another benefit, and that is the abilit...

Romanian profanity (înjurătură)

This includes simple verbs and verb phrases. a da la untura lu binica : to have sexual intercourse; very used by the romanian community in Meudon a (şi-)o pune : to have sexual intercourse (literally "to put it," "it" being the penis) Jucăm o Biliboacă : to have oral sex (literally "Let's play Biliboaca" - it suggests that you take the balls in your mouth and shake your head while sucking the balls) a (i-)o da la chechereş : to have sexual intercourse (literally "to give it," "it" being the penis) a suge inima : to have oral sex(literally "to suck the heart,") a şi-o trage : to have sexual intercourse (literally "to pull it," with "it," as above, being the penis) a da în geantă : to have sexual intercourse (literally "to hit the purse") a băga mielu' la căldură : to have sexual intercourse (literally "to take the lamb somewhere warm") a băga lemnul in sobă : to have sex...

How to create a local Repository for Linux!

You should have a FTP server or HTTP server to make yum actually working. However since we haven't really gone through setting up FTP or HTTP server, please read-on and understand the process. If you have got vsftpd installed, use that. Otherwise, don't forget to actually set it up yourself later. Here we will create a local repository for Fedora and CentOS in the easy way. 0. You should have the yum as well as the createrepo package installed first. 1. Create the directory to hold the repository. mkdir -p /var/ftp/pub/yum-repo/centos/ mkdir -p /var/ftp/pub/yum-repo/fedora/ 2. createrepo /var/ftp/pub/yum-repo/centos/ ; createrepo /var/ftp/pub/yum-repo/fedora/ will create the local yum repository by creating a folder named "repodata with four xml files named, filelists.xml.gz, other.xml.gz, primary.xml.gz and repomd.xml ............ http://humanlinux.blogspot.com/2009/04/how-to-create-local-repository-for.html