Changes

Jump to: navigation, search

Demo scripts

709 bytes added, 12:02, 27 October 2006
CPU scheduler
=== CPU scheduler ===
FIXMECreate 3 VPSes:<pre># vzctl create 101# vzctl create 102# vzctl create 103</pre> Set VPS weights:<pre># vzctl set 101 --cpuunits 1000 --save# vzctl set 102 --cpuunits 2000 --save# vzctl set 103 --cpuunits 3000 --save</pre> We set next cpu sharing <code>VPS101 : VPS102 : VPS103 = 1 : 2 : 3</code> Run VPSes:<pre># vzctl start 101# vzctl start 102# vzctl start 103</pre> Run busy loops in VPSes:<pre># vzctl enter 101[ve101]# while [ true ]; do true; done# vzctl enter 102[ve102]# while [ true ]; do true; done# vzctl enter 103[ve103]# while [ true ]; do true; done</pre> Check in top that sharing works:<pre># topCOMMAND %CPUbash 48.0bash 34.0bash 17.5</pre>
=== Disk quota ===
22
edits

Navigation menu