Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Aug 2021 21:58:08 +0200
From:      Thomas Steen Rasmussen via jail <jail@freebsd.org>
To:        Mark Johnston <markj@freebsd.org>
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:  <51d4462f-1958-3380-9973-365e018e533f@gibfest.dk>
In-Reply-To: <YQhKEDWzn01zQyyO@nuc>
References:  <YQf5ZNUV6hVm5gOK@kib.kiev.ua> <EF1E80B4-684B-4698-A971-F637F0D726B4@grem.de> <YQhBf17Sgwx91l/z@kib.kiev.ua> <YQhKEDWzn01zQyyO@nuc>

next in thread | previous in thread | raw e-mail | index | archive | help
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?

Thanks!

Best regards,

Thomas Steen Rasmussen




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51d4462f-1958-3380-9973-365e018e533f>