Date: Tue, 3 Aug 2021 09:50:55 -0400 From: Mark Johnston <markj@freebsd.org> To: Thomas Steen Rasmussen <thomas@gibfest.dk> Cc: Michael Gmelin <freebsd@grem.de>, jail@freebsd.org, Konstantin Belousov <kostikbel@gmail.com> Subject: Re: POSIX shared memory, jails, and (lack of) limits Message-ID: <YQlJvydRzLz%2BkTnC@nuc> In-Reply-To: <51d4462f-1958-3380-9973-365e018e533f@gibfest.dk> References: <YQf5ZNUV6hVm5gOK@kib.kiev.ua> <EF1E80B4-684B-4698-A971-F637F0D726B4@grem.de> <YQhBf17Sgwx91l/z@kib.kiev.ua> <YQhKEDWzn01zQyyO@nuc> <51d4462f-1958-3380-9973-365e018e533f@gibfest.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 02, 2021 at 09:58:08PM +0200, Thomas Steen Rasmussen wrote: > On 8/2/21 9:40 PM, Mark Johnston wrote: > > Cyril has written a few patches for racct, including one which includes > > POSIX shared memory objects in rctl's "nshm" and "shmsize" resources, > > which currently only apply to SysV shm objects: > > https://reviews.freebsd.org/D30775 > > We plan to get them committed in the next couple of weeks. > > > Hello, > > I haven't looked at it for a bit, but the last time I tried to use > sysutils/jail_exporter to get graphs for jail resource usage the graphs > for Postgres jails were hilariously wrong, which I believe I tracked > down to shared memory being counted more than once. > > I gave up trying to figure out how to fix it and just lived with Grafana > telling me a postgres jail on a 128gb jailhost used 900gb of memory. > > But it sounds like the above might fix this? I'm not familiar with jail_exporter, which resource counters is it fetching? I doubt this change on its own will solve the problem, it simply includes POSIX shm objects in racct's shared memory accounting. The mechanisms we use for memory usage are not changed there.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YQlJvydRzLz%2BkTnC>