Archive for Dezember, 2006

OpenVZ VPS configuration samples

Sonntag, Dezember 31st, 2006

Sample A
Hoster runs Virtuozzo on a Dual Core Opteron 175 CPU / 4 GB RAM with 32-bit SMP kernel and probably dozens of virtual hosts. First impression of delivered performance is ok, but scant resources make it almost unusable for even basic server tasks. To me this is more a „jailed“ environment to host a few static websites. Guaranteed memory of 90 MB per VPS.

resource        barrier      limit
----------------------------------
kmemsize       20971520   23068672
lockedpages         256        256
privvmpages       65536      72192
shmpages          20480      20480
numproc              96         96
physpages    2147483647 2147483647
vmguarpages        8192 2147483647
oomguarpages      23040 2147483647
numtcpsock          360        360
numflock            188        206
numpty               16         16
numsiginfo          256        256
tcpsndbuf       1720320    2703360
tcprcvbuf       1720320    2703360
othersockbuf    1126080    2097152
dgramrcvbuf      262144     288358
numothersock        360        360
dcachesize      3145728    3460300
numfile            4096       4096
numiptent           100        100

Sample B
Hoster runs Virtuozzo on a Pentium 4 CPU at 2.4 GHz / 1.5 GB RAM with 32-bit kernel and probably a handful of virtual hosts. First impression of delivered performance is ok and second impression is too, well configured and performing. This is the hoster and configuration that this website is currently running at. Guaranteed memory of 515 MB per VPS.

resource        barrier      limit
----------------------------------
kmemsize       14112433   15523665
lockedpages        7600       8192
privvmpages      238528     259324
shmpages         262144     262144
numproc             396        396
physpages             0 2147483647
vmguarpages      132062 2147483647
oomguarpages     132062 2147483647
numtcpsock         1000       1000
numflock            400        464
numpty              128        128
numsiginfo         1024       1024
tcpsndbuf       5366512    8204912
tcprcvbuf       5366512    8204912
othersockbuf    3006464    8126464
dgramrcvbuf      480000     524288
numothersock        764        764
dcachesize      5023656    5672656
numfile           12864      12864
numiptent           256        256

Show nonpresent devices to remove unneeded drivers

Samstag, Dezember 23rd, 2006
cmd
set DEVMGR_SHOW_NONPRESENT_DEVICES=1
devmgmt.msc

(see http://www.heise.de/ct/06/26/006/)


OpenVZ kernel on Manitu Rootserver M / Debian

Samstag, Dezember 23rd, 2006
#aptitude install wget bzip2 patch libncurses5-dev
#cd /usr/src

#wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.9.tar.bz2

#tar xvfj linux-2.6.9.tar.bz2

#ln -s linux-2.6.9 linux

#cd linux

#wget http://download.openvz.org/kernel/...\
      /patch-023stab037.3-combined.gz

#gzip -d patch-023stab037.3-combined.gz

#patch -p1 < patch-023stab037.3-combined

#wget http://download.openvz.org/kernel/...\
      /kernel-2.6.9-023stab037-i686.config.ovz

#cp kernel-2.6.9-023stab037-i686.config.ovz .config

#make bzImage

#make modules

#make modules_install

#cp arch/i386/boot/bzImage /boot/bzImage-2.6.9
#vi /boot/grub/menu.lst
title           Linux-2.6.9-openvz
root            (hd0,1)
kernel          /boot/bzImage-2.6.9 root=/dev/sda2
savedefault
boot
#shutdown -r now