Public bug reported:
Hello,
I've a test KVM guest with hostname 'lxdhost'. Latest Ubuntu 14.04 is on
lxdhost with 3.13.0-85-generic kernel. I give 2 GiB RAM and 2 vCPU core
to this host. When I create a Trusty container and set up resource
limits, these do not apply to the container.
ubuntu@lxdhost:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
root@lxdhost:~# lxc init ubuntu:14.04 u1
Creating u1
root@lxdhost:~# lxc config set u1 limits.memory 128MB
root@lxdhost:~# lxc config set u1 limits.cpu 1
root@lxdhost:~# lxc start u1
root@lxdhost:~# lxc exec u1 -- free -m
total used free shared buffers cached
Mem: 2000 10 1990 0 0 2
-/+ buffers/cache: 8 1992
Swap: 0 0 0
root@lxdhost:~# lxc exec u1 -- cat /proc/cpuinfo|grep ^processor
processor : 0
processor : 1
root@lxdhost:~# lxc config show u1|grep limits
limits.cpu: "1"
limits.memory: 128MB
root@lxdhost:~# dpkg -l lxd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version
Architecture Description
+++-======================================-========================-========================-=================================================================================
ii lxd 2.0.0-0ubuntu1~ubuntu14. amd64
Container hypervisor based on LXC - daemon
root@lxdh14:~# apt-cache policy lxd
lxd:
Installed: 2.0.0-0ubuntu1~ubuntu14.04.1
Candidate: 2.0.0-0ubuntu1~ubuntu14.04.1
Version table:
*** 2.0.0-0ubuntu1~ubuntu14.04.1 0
100 http://hu.archive.ubuntu.com/ubuntu/ trusty-backports/universe
amd64 Packages
100 /var/lib/dpkg/status
I tried with linux-generic-lts-xenial kernel (4.4.0-22-generic), but
does not solve issue.
Thank you!
** Affects: lxd (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579786
Title:
Resource limits do not apply when host is Trusty
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxd/+bug/1579786/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs