Palmer Dabbelt
unread,Oct 3, 2013, 5:24:38 AM10/3/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lmc...@googlegroups.com
I've gotten lmctfy to build and run on Gentoo Linux,
"kernel 3.10.7-gentoo-r1", but I can't seem to get it to work. It seems
to pass the tests run by "make check" (at least, it prints a whole lot
of passes, it scrolled past my terminal buffer), but I can't get the
simple memory_only container example to run. When I do
# lmctfy init
# lmctfy create memory_only "memory:{limit:100000000}"
# lmctfy run memory_only "memtester 200M"
I would expect memtester to fail to allocate 200M, but it does
successfully allocate that much (which is over the 100M limit I set for
it).
Am I misunderstanding what lmctfy is supposed to be doing, or should I
go and debug my setup?
On a whim, I tried running
# lmctfy run memory_only "memtester 5G" &
# memtester 5G
on my 8G machine, and Linux OOM kills one of them arbitrarily. I
was testing if this just allow me to oversubscribe memory and then kill
the offending container, but apparently that's not happening either.
For full disclosure, I ran the following
# cd /dev
# ln -s /sys/fs/cgroup/ .
# cd
to get lmctfy to start. I assume this is OK, as it appears I've just
got my cgroups filesystem mounted somewhere else
# mount | grep cgroup
cgroup_root on /sys/fs/cgroup type tmpfs ...
If anyone is interested in trying out the Gentoo package, my ebuild is
available in the "palmer" overlay.