VCMD HowTo

From Linux-VServer

Revision as of 18:55, 23 November 2006 by 80.123.22.221 (Talk)

Jump to: navigation, search

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
  • start a cpuhog with sched_hard (supposed to get 25% by default)
vcmd -i 100 -BC ctx_create .flagword=^34^33^32^8 -- cpuhog
Personal tools