LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 06-03-2011, 06:40 AM   #1
rpereyra
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Rep: Reputation: Disabled
openvz node with only one vps


I have an openvz server with 2Gb ram and would like to configure a vps for use all server resources (no swap).

I run:

vzsplit -n 1 -f vps1 -s 0

and have this setup:

Configuration file generated by vzsplit for 1 containers
on HN with total amount of physical mem 1998 Mb
low memory 1998 Mb, swap size 0 Mb, Max treads 8000
Resourse commit level 0:
Free resource distribution. Any parameters may be
Primary parameters

NUMPROC="10230:10230"
AVNUMPROC="5115:5115"
NUMTCPSOCK="10230:10230"
NUMOTHERSOCK="10230:10230"
VMGUARPAGES="294151:9223372036854775807"

Secondary parameters

KMEMSIZE="419090432:460999475"
TCPSNDBUF="97794730:139696810"
TCPRCVBUF="97794730:139696810"
OTHERSOCKBUF="48897365:90799445"
DGRAMRCVBUF="48897365:48897365"
OOMGUARPAGES="294151:9223372036854775807"
PRIVVMPAGES="306951:337646"

Auxiliary parameters

LOCKEDPAGES="20463:20463"
SHMPAGES="30695:30695"
PHYSPAGES="0:9223372036854775807"
NUMFILE="163680:163680"
NUMFLOCK="1000:1100"
NUMPTY="512:512"
NUMSIGINFO="1024:1024"
DCACHESIZE="91533669:94279680"
NUMIPTENT="200:200"
DISKSPACE="203811210:224192332"
DISKINODES="53798327:59178160"
CPUUNITS="139987"

When I start a new vps with this setup the vps run out of memory.

The "free" command show only 1.2 Gb ram available,

Are this setup the optimal for my vps ?

Are the memory parameters correct ?

I suspect that vzsplit is generating bad memory settings for my vps.

Thanks in advance.

roberto
 
Old 06-03-2011, 11:52 AM   #2
wpeckham
Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 759

Rep: Reputation: 171Reputation: 171
OpenVZ

What template or OS did you use to populate this virtual? What is it running?
 
Old 06-03-2011, 04:06 PM   #3
rpereyra
LQ Newbie
 
Registered: Jun 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi

It's a Centos 5.6 template.

roberto
 
Old 06-06-2011, 10:10 AM   #4
wpeckham
Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix
Posts: 759

Rep: Reputation: 171Reputation: 171
OpenVZ

1. Are youo using the most recent version of OVZ and the utilities?

2. I have never used '-n 1' with vzsplit. I recommend using '-n 2' for this instance to leave enough resource for the HOST to run properly. Remember, if the host has problems EVERY guest has problems!

3. I would not worry about swap. As long as swap is set up well on the host, the default settings for the guest work better (for most things) than any way you are going to manipulate them.

4. WHERE are you getting the OOM error? Is it from the guest, or from the host?

I have taken a blade with 512 Mb ram and 80Gig of hard space and made it an OpenVZ host with three guests (no X-windows, running web servers managed via web and command-line only) without errors. Your machine should not be underpowered for this unless you are running something big and nasty.

After you create your new split config, but before you create the guest, check your new file against the sample. You want to do a sanity check against the values, and make sure that none are missing in your new file. Vzsplit is a tool, not a solution: it has no way to read your mind or determine your preferences.

The OpenVZ site has forums and how-to documents (some WIKI style) that you can use as a resource for advice about values that you think may be wrong or misleading. Asking for help there may get the attention of the developers, who have the most recent data and advice.

Alas: I have NOT tried making a CentOS guest at version 5.6 using that template, so I have no test data to relate. I hope someone who does will chime it here.........

Last edited by wpeckham; 06-06-2011 at 10:12 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] URGENT::Unable to open pty: Permission denied while trying to login to vps node dontob Linux - Newbie 2 03-08-2011 05:14 AM
OpenVZ and Slackware running on vps astanton Slackware 1 03-08-2011 02:08 AM
VPS Host Node Security tuftystick Linux - Security 12 01-23-2009 04:24 AM
vps node locks up? I_AM Linux - Networking 1 10-09-2008 01:35 AM
Where can I download UML VPS or Xen VPS to make a virtual private server? abefroman Linux - Software 3 12-09-2005 10:00 AM


All times are GMT -5. The time now is 11:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration