學術及資源的交流園地 ^_^

Tuning

<1>

If your default LANG environment variable was set to something like en_US.UTF-8, you can reduce shell (bash) startup time up to ~15% with LANG=C.


 

<2>

a single VCPU to each container. => significantly reduce overhead on SMP memory coherence


 

<3>

ethtool -k venet0
# ethtool -K venet0 tx on sg on

yum install vzkernel

 

yum offers to delete the second-oldest version

 

try to use yum update when you want to save your previous kernel.
yum install kernel, will always delete oldest one.

vzctl stop failed

 

 

vzctl --verbose stop 2001

 

strace -f -o strace.out vzctl stop 2001

 

vzctl stop <VEID> --fast

#

execute halt, it just try to kill VE's init.

 

Disk Quota

first-level:per-VPS quotas
second-level:per-user and per-group quotas

 

 

First-level:

/etc/vz/vz.conf
..........
DISK_QUOTA=yes   <---- 可以 per VPS 設定
VZFASTBOOT=no
..........

 

每個 VPS 的 quota 使用情況記錄在 /var/vzquota/quota.vpsid

而 disk quota 的單位是1024 bytes

Space

Get:

vzquota stat <VEID>

Set:

vzctl set <VEID> --diskspace 10G:11G --save
vzctl set <VEID> --quotatime 600 --save
 

 

inodes:

Get:

vzctl exec <VEID> df -i

Set:

RSS feed