Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Increase RAM of openvz container from command line

DrukpaDrukpa Member
edited May 2015 in Help

I tried the following commands from the node to increase the RAM of 110 container from 6GB to 8GB, but it does not seem to work. If I do a free -m it still shows 6GB.

vzctl set 110 --vmguarpages 8G --save
vzctl set 110 --oomguarpages 8G --save
vzctl set 110 -- privvmpages 8G --save

It says it successfully wrote to the configuration file, and the 110.conf file is as below (some details removed for privacy):

KMEMSIZE="2147483646"
LOCKEDPAGES="5000"
PRIVVMPAGES="2097152"
SHMPAGES="1572864"
NUMPROC="5000"
PHYSPAGES="0:2147483647"
VMGUARPAGES="2097152"
OOMGUARPAGES="2097152"
NUMTCPSOCK="40000"
NUMFLOCK="5000"
NUMPTY="2500"
NUMSIGINFO="5000"
TCPSNDBUF="1288489984:1452329984"
TCPRCVBUF="1288489984:1452329984"
OTHERSOCKBUF="1288489984:1452329984"
DGRAMRCVBUF="1288489984:1452329984"
NUMOTHERSOCK="40000"
DCACHESIZE="46080000"
NUMFILE="120000"
AVNUMPROC="180:180"
NUMIPTENT="5000"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="256000000:256000000"
DISKINODES="128000000:128000000"
QUOTATIME="0"

# CPU fair scheduler parameter
CPUUNITS="1000"
VE_ROOT="/vz/root/$VEID"
VE_PRIVATE="/vz/private/110"
OSTEMPLATE="centos-5-x86_64"
ORIGIN_SAMPLE="basic"
IP_ADDRESS="REMOVED-REMOVED"
QUOTAUGIDLIMIT="10000"
HOSTNAME="REMOVED"
ONBOOT="yes"
CPULIMIT="800"
MEMINFO="pages:1572864"
CPUS="8"

From the above I can see that the MEMINFO value of pages:1572864 results to 6GB. Do I have to change that too? If I do vzctl set 110 --meminfo pages:2097152, then it shows as 8GB in my container, but now am lost if there's been a real change or not.

Comments

  • jarjar Patron Provider, Top Host, Veteran

    Tried physpages?

  • DrukpaDrukpa Member

    @Jar said:
    Tried physpages?

    Tried setting physpages, it says I dont have vswap.

  • BharatBBharatB Member, Patron Provider

    /usr/sbin/vzctl set $ctid --vmguarpages {$ram}M --oomguarpages {$ram}M --privvmpages {$ram}M:{$burst}M --swap {$swap}M --save;

    This is what I'm using

  • Relaunch the container and vzw

Sign In or Register to comment.