LINUXCN-1: need to correctly apply resource limits

Details

Issue Type:Bug
Priority:4 - Normal
Status:Resolved
Created at:2021-08-06T17:05:26.660Z
Updated at:2022-08-10T00:18:36.538Z

People

Created by:Brian Bennett
Reported by:Brian Bennett
Assigned to:Brian Bennett

Resolution

Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2021-09-01T21:25:24.493Z)

Description

Comments

Comment by Brian Bennett
Created at 2021-08-09T18:38:22.371Z

Memory and CPU limits weren't enforced because lxcfs wasn't running. This was because of missing /var/lib/lxcfs directory. Creating it and starting the lxcfs systemd service fixed that. I've also updated the PI to create that directory if it doesn't exist.


Comment by Brian Bennett
Created at 2021-08-09T22:58:54.477Z
Updated at 2021-08-09T22:59:11.594Z

For quota, I think I might need to remove the root device from the default profile and add it with every instance so I can set the size.


Comment by Brian Bennett
Created at 2021-09-01T21:25:13.135Z

Ultimately, I didn't need to remove the default root device from the default profile. Simply adding a root device in the instance overrides the one provided by the profile.


Comment by Brian Bennett
Created at 2021-09-01T21:25:17.267Z

Related commits:

linux-live:

commit d8258c774f94c422d8d409013f411e10cc9e6379
Author: Brian Bennett <brian.bennett@joyent.com>
Date:   Mon Aug 9 16:11:42 2021 -0700


    LINUXCN-1 need to correctly apply resource limits
 

node-vmadm:

commit 7e1df3416bd7ef3d3800f39de7e4782f0ca0cc25
Author: Brian Bennett <brian.bennett@joyent.com>
Date:   Wed Sep 1 07:35:45 2021 -0700

    LINUXCN-1 need to correctly apply resource limits (zfs quota)

Comment by Jira Bot
Created at 2022-08-10T00:18:36.538Z

linux-live commit d60539360bf4a4e94238acc006790ab2235edbd4 (branch master, by Brian Bennett)

LINUXCN-1 need to correctly apply resource limits