lmctfy

Trying out google's lmctfy

A nice introduction for the init and create commands was at gentoo's lmctfy page.

git clone https://github.com/google/lmctfy
sudo apt-get -y install libgflags-dev g++ pkg-config libprotobuf-dev python-protobuf
wget https://re2.googlecode.com/files/re2-20131024.tgz
tar zxf re2-20131024.tgz
cd re2
make
sudo make install
cd ../lmctfy
make -j3

# Now do a test run
# Note - you can have lmctfy do the mounting with a longer init command.
# We are having cgroup-lite do the mounting here.  Not sure what we would
# want.
sudo apt-get -y install cgroup-lite

sudo LD_LIBRARY_PATH=/usr/local/lib ./bin/lmctfy/cli/lmctfy init ""
sudo LD_LIBRARY_PATH=/usr/local/lib ./bin/lmctfy/cli/lmctfy create memory_only "memory:{limit:100000000}"
sudo LD_LIBRARY_PATH=/usr/local/lib ./bin/lmctfy/cli/lmctfy run memory_only /bin/bash

Lxc/lmctfy (last edited 2013-11-08 15:25:28 by serge-hallyn)