Re: POSIX shared memory and dying jails

2021-08-02 Thread Michael Gmelin
On Fri, 25 Jun 2021 20:18:39 -0700 James Gritton wrote: > On 2021-06-25 09:58, Michael Gmelin wrote: > > Another problem caused by the lack of jail ownership is that access > > semantics are a bit strange. E.g., a jail based on / can easily list > > (and remove) all memory allocations in the s

POSIX shared memory, jails, and (lack of) limits

2021-08-02 Thread Michael Gmelin
Hi, I've been playing a bit with POSIX shared memory and, unlike for SysV shared memory, I couldn't find any way to limit its use by jails. First, I looked at racct/rctl, but there is no resource for POSIX shared memory and memoryuse/vmemoryuse don't seem to have an effect (which makes sense). T

Re: POSIX shared memory, jails, and (lack of) limits

2021-08-02 Thread Konstantin Belousov
On Mon, Aug 02, 2021 at 02:19:00PM +0200, Michael Gmelin wrote: > Hi, > > I've been playing a bit with POSIX shared memory and, unlike for SysV > shared memory, I couldn't find any way to limit its use by jails. > > First, I looked at racct/rctl, but there is no resource for POSIX shared > memory

Re: POSIX shared memory, jails, and (lack of) limits

2021-08-02 Thread Michael Gmelin
> On 2. Aug 2021, at 15:56, Konstantin Belousov wrote: > > On Mon, Aug 02, 2021 at 02:19:00PM +0200, Michael Gmelin wrote: >> Hi, >> >> I've been playing a bit with POSIX shared memory and, unlike for SysV >> shared memory, I couldn't find any way to limit its use by jails. >> >> First, I l

Re: POSIX shared memory, jails, and (lack of) limits

2021-08-02 Thread Konstantin Belousov
On Mon, Aug 02, 2021 at 05:06:43PM +0200, Michael Gmelin wrote: > > > > On 2. Aug 2021, at 15:56, Konstantin Belousov wrote: > > > > On Mon, Aug 02, 2021 at 02:19:00PM +0200, Michael Gmelin wrote: > >> Hi, > >> > >> I've been playing a bit with POSIX shared memory and, unlike for SysV > >> sh

Re: POSIX shared memory, jails, and (lack of) limits

2021-08-02 Thread Mark Johnston
On Mon, Aug 02, 2021 at 10:03:27PM +0300, Konstantin Belousov wrote: > On Mon, Aug 02, 2021 at 05:06:43PM +0200, Michael Gmelin wrote: > > > > > > > On 2. Aug 2021, at 15:56, Konstantin Belousov wrote: > > > > > > On Mon, Aug 02, 2021 at 02:19:00PM +0200, Michael Gmelin wrote: > > >> Hi, > > >

Re: POSIX shared memory, jails, and (lack of) limits

2021-08-02 Thread Thomas Steen Rasmussen via jail
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

Re: POSIX shared memory, jails, and (lack of) limits

2021-08-02 Thread Michael Gmelin
> On 2. Aug 2021, at 21:40, Mark Johnston wrote: > > On Mon, Aug 02, 2021 at 10:03:27PM +0300, Konstantin Belousov wrote: >>> On Mon, Aug 02, 2021 at 05:06:43PM +0200, Michael Gmelin wrote: >>> >>> On 2. Aug 2021, at 15:56, Konstantin Belousov wrote: On Mon, Aug 02, 2021 a