Advanced

An OpenVZ Experiment - How many containers?

Posted by dowdle on · Post a comment
MontanaLinux.org; By Scott Dowdle
Mail this story
Print this story

I was wondering just how many containers I could create on a beefy host and how many processes the Linux kernel would be happy running so I decided to do an experiment.

I have two OpenVZ hosts... one is the primary and the other is a backup. Both of them are HP Proliant DL380 Gen5 machines with dual, quad-core Xeon processors, 32GB of RAM, 32GB of swap, and a 600GB /vz partition. I decided to use the backup OpenVZ machine for the experiment.

I thought I'd start with a high target of 1,000 containers so I used vzsplit to generate a sample config (vzsplit -n 1000 -f split1000). Then I wrote a script to create 1,000 containers, one at a time. The script uses the centos-5-i386-default OS Template (124MB .tar.gz file, 427MB extracted), assigns an IP address and DNS, then starts up the container. Between each container creation it sleeps for 60 seconds... to give the container processes a little time to start. For the full results, read the article. I think you'll be surprised.

Full Story

  Nav
» Read more about: Story Type: Reviews, Tutorial; Groups: Red Hat

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments

No comments yet. Be the first.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post