OpenVZ Forum


Home » General » Support » increase ram memory in a VPS
increase ram memory in a VPS [message #4540] Fri, 14 July 2006 00:35 Go to next message
carlo is currently offline  carlo
Messages: 4
Registered: July 2006
Location: Sapin
Junior Member
hello, somebody can say an example to me of like putting 256MB of ram to a VPS?
Re: increase ram memory in a VPS [message #4549 is a reply to message #4540] Fri, 14 July 2006 09:57 Go to previous messageGo to next message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

here: http://forum.swsoft.com/showthread.php?threadid=26770

Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
Re: increase ram memory in a VPS [message #4568 is a reply to message #4540] Fri, 14 July 2006 15:57 Go to previous messageGo to next message
carlo is currently offline  carlo
Messages: 4
Registered: July 2006
Location: Sapin
Junior Member
hello again, please they can put the commando here to me? it is that I cannot assign ram memory to my VPS and I cannot does nothing.
Re: increase ram memory in a VPS [message #5624 is a reply to message #4540] Thu, 24 August 2006 16:33 Go to previous messageGo to next message
gral is currently offline  gral
Messages: 34
Registered: May 2006
Member

To limit the memory i used a strange method...

In in my vps server (Hardware Node) i run the cat /proc/user_beancounters ... and dividi the number..

Example, i want to create a VPS of 256 MB of Ram in a hardware of 1 GB of ram 

root@hardwarenode#cat /proc/user_beancounters

.......
privvmpages       77431      77666     750000     825000
.......

So i divide the Limit and the barrier by 4...

(All the numbers are illustrated)



Is too bad do it by this way ??

Thanks!!!


Argentina
--Vz--
Re: increase ram memory in a VPS [message #5642 is a reply to message #5624] Fri, 25 August 2006 06:41 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
This is bad method.
Each fresh installed VE has some default parameters by default.
For example, privvmpages limit equals by default 53575 pages.
It isn't related to the amount of memory installed on your machine!

If you want to set privvmpages barrier or limit to 256MB, do the following calculation:
(256 MB * 1024) KB / 4 KB = 65,536 PAGES
This is if page size on your architecture is 4KB (x86 arch).

HTH!
Re: increase ram memory in a VPS [message #35963 is a reply to message #4540] Wed, 06 May 2009 16:48 Go to previous message
narcisgarcia is currently offline  narcisgarcia
Messages: 41
Registered: May 2009
Member
You can get the memory page size of the computer with:
getconf PAGE_SIZE


In Bash you can show the complete calculation for how many pages are 256MB with:
echo $(($((256 * 1024)) / $(($(getconf PAGE_SIZE) / 1024))))


But I've found this:
http://www.digipedia.pl/man/vzctl.8.html
And it seems to be able to modify the VPS memory with (I'm not sure):
vzctl set [vpsid] --vmguarpages 256M:257M --save


Narcis Garcia
Previous Topic: updated from centos 5.2 to 5.3, yum error now on VEs
Next Topic: ovzkernel at Itanium 2
Goto Forum:
  


Current Time: Mon Sep 09 23:25:05 GMT 2024

Total time taken to generate the page: 0.04633 seconds