Changes

Jump to: navigation, search

Demo scripts

61 bytes added, 14:30, 30 October 2006
CPU scheduler
=== CPU scheduler ===
Create 3 VPSesVEs:
<pre>
# vzctl create 101
</pre>
Set VPS VEs weights:
<pre>
# vzctl set 101 --cpuunits 1000 --save
</pre>
We set next cpu sharing <code>VPS101 VE101 : VPS102 VE102 : VPS103 VE103 = 1 : 2 : 3</code>
Run VPSesVEs:
<pre>
# vzctl start 101
</pre>
Run busy loops in VPSesVEs:
<pre>
# vzctl enter 101
bash 17.5
</pre>
 
So, we see that CPU time is given to VEs in proportion ~ 1 : 2 : 3.
=== Disk quota ===
22
edits

Navigation menu