OpenVZ Forum


Home » General » Support » Howto config ve of ram 1GB
Howto config ve of ram 1GB [message #24641] Fri, 07 December 2007 07:07 Go to next message
powervps is currently offline  powervps
Messages: 54
Registered: December 2007
Member
Howto config ve of ram 1GB and 1500 Mb and 512 ram

Quote:

ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
AVNUMPROC="360"
NUMPROC="480"
NUMTCPSOCK="720"
NUMOTHERSOCK="720:720"
VMGUARPAGES="67584:2147483647"
# Secondary parameters
KMEMSIZE="22111846:22754099"
TCPSNDBUF="319488:524288"
TCPRCVBUF="3440640:5406720"
OTHERSOCKBUF="2252160:4194304"
DGRAMRCVBUF="524288:524288"
OOMGUARPAGES="52224:2147483647"
# Auxiliary parameters
LOCKEDPAGES="512:512"
SHMPAGES="43008"
PRIVVMPAGES="131072:139264"
NUMFILE="18624"
NUMFLOCK="376:412"
NUMPTY="32:32"
NUMSIGINFO="512:512"
DCACHESIZE="6819840:7249920"

PHYSPAGES="0:2147483647"
NUMIPTENT="256:256"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="104857600:104857600"
DISKINODES="2000000:2200000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000
icon10.gif  Re: Howto config ve of ram 1GB [message #24642 is a reply to message #24641] Fri, 07 December 2007 07:10 Go to previous messageGo to next message
powervps is currently offline  powervps
Messages: 54
Registered: December 2007
Member
1GB RAM and 2GB swap
512 RAM and 1GB swap
256 RAM and 512 Swap
2000 Ram and 2500 swap

Thx yoy
Crying or Very Sad
Re: Howto config ve of ram 1GB [message #24693 is a reply to message #24642] Fri, 07 December 2007 20:11 Go to previous messageGo to next message
powervps is currently offline  powervps
Messages: 54
Registered: December 2007
Member
up Sad
Re: Howto config ve of ram 1GB [message #24695 is a reply to message #24693] Fri, 07 December 2007 21:37 Go to previous messageGo to next message
blunt is currently offline  blunt
Messages: 16
Registered: October 2007
Junior Member
there is no way of saying that you want X of Ram and Y of Swap. You say you want Z of virtual memory and openvz will manage it between ram and swap...

hope this clarifies things up for you
Re: Howto config ve of ram 1GB [message #24701 is a reply to message #24695] Fri, 07 December 2007 22:39 Go to previous messageGo to next message
powervps is currently offline  powervps
Messages: 54
Registered: December 2007
Member
Ok how ican do that any file need to changed
i have install at my server swap 30 g and real ram 16 g

how ican config them
Re: Howto config ve of ram 1GB [message #24702 is a reply to message #24701] Fri, 07 December 2007 22:59 Go to previous messageGo to next message
blunt is currently offline  blunt
Messages: 16
Registered: October 2007
Junior Member
VMGUARPAGES="32768:2147483647" // 128MB Guaranteed
VMGUARPAGES="65536:2147483647" // 256MB Guaranteed
VMGUARPAGES="131072:2147483647" // 512MB Guaranteed

PRIVVMPAGES="64000:65536" // 256MB Burst
PRIVVMPAGES="128000:131072" // 512MB Burst
PRIVVMPAGES="256000:262140" // 1024MB Burst

guaranteed is the minimum amount of virtual memory your vps has in a normal situation.
burst is the amount of memory your server will be able to use if there is enough available...

just multiply to get the values you want.

hope it helps
Re: Howto config ve of ram 1GB [message #24704 is a reply to message #24702] Fri, 07 December 2007 23:31 Go to previous messageGo to next message
powervps is currently offline  powervps
Messages: 54
Registered: December 2007
Member
Thx you very much sir i will test them now and get back to you.
what about

512 MB Ram Guaranteed
620 MB Burstable Ram

1 Guaranteed Ram
1500 Burstable Ram

Laughing Laughing Laughing Laughing

[Updated on: Fri, 07 December 2007 23:37]

Report message to a moderator

Re: Howto config ve of ram 1GB [message #24705 is a reply to message #24702] Fri, 07 December 2007 23:35 Go to previous messageGo to next message
blunt is currently offline  blunt
Messages: 16
Registered: October 2007
Junior Member
it's just doing the maths...

VMGUARPAGES="262144:2147483647" // 1GB Guaranteed

PRIVVMPAGES="384000:393212" // 1,5GB Burst

Smile

Re: Howto config ve of ram 1GB [message #24707 is a reply to message #24705] Sat, 08 December 2007 00:46 Go to previous messageGo to next message
powervps is currently offline  powervps
Messages: 54
Registered: December 2007
Member
Look what iam geting sir

[root@vpsvps ~]# vzctl create 101 --config vps.basic --hostname server.xxx.net
Warning: VE config file already exists, will be rewritten with /etc/vz/conf/ve-vps.basic.conf-sample
Private area already exists in /vz/private/101
[root@vpsvps ~]# vzctl start 101
Warning: distribution not specified default used /etc/vz/dists/default
Starting VE ...
vzquota : (warning) block_hard_limit [1153534] < block_current_usage [2934380]
VE is mounted
Setting CPU units: 1000
Configure meminfo: 49152
vzquota : (warning) block_hard_limit [1153434] < block_current_usage [2934380]
VE start in progress...



Quote:


# Copyright (C) 2000-2007 SWsoft. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
# Primary parameters
AVNUMPROC="360"
NUMPROC="480"
NUMTCPSOCK="720:720"
NUMOTHERSOCK="720:720"
VMGUARPAGES="131072:2147483647"
# Secondary parameters
KMEMSIZE="22111846:22754099"
TCPSNDBUF="319488:524288"
TCPRCVBUF="3440640:5406720"
OTHERSOCKBUF="135168:237568"
DGRAMRCVBUF="524288:524288"
OOMGUARPAGES="1725:2147483647"
# Auxiliary parameters
LOCKEDPAGES="1024:1024"
SHMPAGES="512:512"
PRIVVMPAGES="256000:262140"
NUMFILE="18624"
NUMFLOCK="396:412"
NUMPTY="32:32"
NUMSIGINFO="512:512"
DCACHESIZE="6819840:7249920"

PHYSPAGES="0:2147483647"
NUMIPTENT="256:256"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="512000:512000"
DISKINODES="80000:88000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"


[Updated on: Sat, 08 December 2007 00:46]

Report message to a moderator

Re: Howto config ve of ram 1GB [message #24708 is a reply to message #24707] Sat, 08 December 2007 00:50 Go to previous messageGo to next message
blunt is currently offline  blunt
Messages: 16
Registered: October 2007
Junior Member
Well here is a little tutorial on how to create a VPS:

#change to the dir where you have your templates
cd /var/lib/vz/template/cache

#get the template from the openvz site
wget http://download.openvz.org/template/precreated/[filename]
# create with the template you have downloaded
vzctl create [number] --ostemplate debian-3.1-i386-minimal --config vps.basic
# set onboot to boot the VPS on server boot
vzctl set [number] --onboot yes --save
# set vps hostname
vzctl set [number] --hostname hostname.org --save
#set ip
vzctl set [number] --ipadd 192.168.1.130 --save
#set number of sockets (may not be needed)
vzctl set [number] --numothersock 120 --save
#set the ip of a dns server (local or on the internet)
vzctl set [number] --nameserver 192.168.1.130 --save
# start vps
vzctl start [number]
#set root password
vzctl exec [number] passwd

hope this helps Smile
icon10.gif  Re: Howto config ve of ram 1GB [message #24709 is a reply to message #24708] Sat, 08 December 2007 01:15 Go to previous messageGo to next message
powervps is currently offline  powervps
Messages: 54
Registered: December 2007
Member
I will try and get back to you but thx you very much it is very esay Laughing


what it is bedst way for create --config vps
Current CPU utilization: 1000
Power of the node: 808993

VMGUARPAGES="32768:2147483647" // 128MB Guaranteed
PRIVVMPAGES="64000:65536" // 256MB Burst

VMGUARPAGES="65536:2147483647" // 256MB Guaranteed
PRIVVMPAGES="128000:131072" // 512MB Burst

VMGUARPAGES="131072:2147483647" // 512MB Guaranteed
PRIVVMPAGES="256000:262140" // 1024MB Burst

VMGUARPAGES="262144:2147483647" // 1GB Guaranteed
PRIVVMPAGES="384000:393212" // 1,5GB Burst

Thx you for your time....

[Updated on: Sat, 08 December 2007 01:16]

Report message to a moderator

Re: Howto config ve of ram 1GB [message #29401 is a reply to message #24709] Sat, 12 April 2008 03:33 Go to previous messageGo to next message
SoftDux is currently offline  SoftDux
Messages: 55
Registered: November 2007
Location: Johannesburg, South Afric...
Member
powervps wrote on Sat, 08 December 2007 03:15

I will try and get back to you but thx you very much it is very esay Laughing


what it is bedst way for create --config vps
Current CPU utilization: 1000
Power of the node: 808993

VMGUARPAGES="32768:2147483647" // 128MB Guaranteed
PRIVVMPAGES="64000:65536" // 256MB Burst

VMGUARPAGES="65536:2147483647" // 256MB Guaranteed
PRIVVMPAGES="128000:131072" // 512MB Burst

VMGUARPAGES="131072:2147483647" // 512MB Guaranteed
PRIVVMPAGES="256000:262140" // 1024MB Burst

VMGUARPAGES="262144:2147483647" // 1GB Guaranteed
PRIVVMPAGES="384000:393212" // 1,5GB Burst

Thx you for your time....





Hi powervps

Can you please explain to me how you got the figures?
I want to set a VPS with 512MB guaranteed RAM, and 1024 burst.


So, I used your example, but free -m shows me something odd:

[root@gandalf ~]# vzctl set 1001 --privvmpages=256000:262140 --save
UB limits were set successefully
Saved parameters for VE 1001
[root@gandalf ~]# vzctl set 1001 --vmguarpages=131072:2147483647 --save
UB limits were set successefully
Saved parameters for VE 1001
[root@gandalf ~]# vzctl restart 1001
Restarting VE
Stopping VE ...
VE was stopped
VE is unmounted
Starting VE ...
VE is mounted
Setting CPU units: 1000
Configure meminfo: 256000
Set hostname: vps03.softdux.com
File resolv.conf was modified
VE start in progress...
[root@gandalf ~]# vzctl exec 1001 free -m
             total       used       free     shared    buffers     cached
Mem:          1000        171        828          0          0          0
-/+ buffers/cache:        171        828
Swap:            0          0          0


Why does the total say 1000, and not 1024, or for that matter 512?
Re: Howto config ve of ram 1GB [message #29413 is a reply to message #24641] Sat, 12 April 2008 09:59 Go to previous messageGo to next message
blunt is currently offline  blunt
Messages: 16
Registered: October 2007
Junior Member
You used these values:

VMGUARPAGES="131072:2147483647" // 512MB Guaranteed
PRIVVMPAGES="256000:262140" // 1024MB Burst

free -m shows you the soft limit on burstable ram, which is 256000 (1000MB). The hard limit, the one which you cannot pass is the hard limit (262140 - 1024MB). If you wish, you can set the soft limit equal to the hard limit, both with 262140, and free should say it has 1024MB. free will never show 512MB of ram, unless your hardware node is crowded and there is not enough space for everyone.

Hope this helps.
Re: Howto config ve of ram 1GB [message #29420 is a reply to message #24641] Sat, 12 April 2008 10:58 Go to previous messageGo to next message
SoftDux is currently offline  SoftDux
Messages: 55
Registered: November 2007
Location: Johannesburg, South Afric...
Member
ok, that makes sense.

So, If I sell a VPS with 512 gauranteed & 1024 burst, the user will see 1000MB when he uses free -m to check the memory, or even in cPanel's "Server Information" - can / does this cause a problem?
Re: Howto config ve of ram 1GB [message #29448 is a reply to message #29420] Sat, 12 April 2008 23:21 Go to previous message
blunt is currently offline  blunt
Messages: 16
Registered: October 2007
Junior Member
that is up to your clients...

If you want to avoid problems, just set the soft and hard limit to the hard limit values, and the users will see the 1024MB instead of the 1000MB
Previous Topic: [SOLVED] where do I download brctl ?
Next Topic: migration?
Goto Forum:
  


Current Time: Fri Mar 29 13:39:43 GMT 2024

Total time taken to generate the page: 0.01927 seconds