VCMD HowTo: Difference between revisions
From Linix VServer
Jump to navigationJump to search
imported>Hollow m (Linux-VServer-Hacks moved to VCMD HowTo: needed a more descriptive name, should be extended with some introduction to vcmd) |
imported>Bertl m (added dentry set) |
||
| Line 6: | Line 6: | ||
* create a virtualized init task | * create a virtualized init task | ||
: <pre>vcmd -i 100 -BC ctx_create .flagword=^34^33^32^4 -- vcmd -i -1 -BC set_cflags .mask=^33 -- cat /proc/self/status</pre> | : <pre>vcmd -i 100 -BC ctx_create .flagword=^34^33^32^4 -- vcmd -i -1 -BC set_cflags .mask=^33 -- cat /proc/self/status</pre> | ||
* set context 100 dentry (hard) limit (22) to 4000 | |||
: <pre>vcmd -i 100 -BC set_rlimit .id=22 .maximum=4000</pre> | |||
Revision as of 02:39, 8 November 2006
VCMD one-liners (by Bertl)
- create a non virtualized init task
vcmd -i 100 -BC ctx_create .flagword=^34^33^32 -- vcmd -i -1 -BC set_cflags .mask=^33 -- cat /proc/self/status
- create a virtualized init task
vcmd -i 100 -BC ctx_create .flagword=^34^33^32^4 -- vcmd -i -1 -BC set_cflags .mask=^33 -- cat /proc/self/status
- set context 100 dentry (hard) limit (22) to 4000
vcmd -i 100 -BC set_rlimit .id=22 .maximum=4000