Re: [PATCH] ipc/shm: Increase the defaults for SHMALL, SHMMAX to infinity

2014-04-19 Thread Michael Kerrisk (man-pages)
On 04/19/2014 10:37 AM, Manfred Spraul wrote: > On 04/19/2014 08:55 AM, Davidlohr Bueso wrote: >> On Fri, 2014-04-18 at 11:18 +0200, Manfred Spraul wrote: >>> - ULONG_MAX is not really infinity, but 18 Exabyte segment size and >>>75 Zettabyte total size. This should be enough for the next few w

Re: [PATCH] ipc/shm: Increase the defaults for SHMALL, SHMMAX to infinity

2014-04-19 Thread Michael Kerrisk (man-pages)
On 04/19/2014 10:45 AM, Manfred Spraul wrote: > On 04/19/2014 09:10 AM, Michael Kerrisk (man-pages) wrote: >> On Sat, Apr 19, 2014 at 8:55 AM, Davidlohr Bueso wrote: >>> On Fri, 2014-04-18 at 11:18 +0200, Manfred Spraul wrote: Risks: - The patch breaks installations that use "take curren

Re: [PATCH] ipc/shm: Increase the defaults for SHMALL, SHMMAX to infinity

2014-04-19 Thread Manfred Spraul
On 04/19/2014 09:10 AM, Michael Kerrisk (man-pages) wrote: On Sat, Apr 19, 2014 at 8:55 AM, Davidlohr Bueso wrote: On Fri, 2014-04-18 at 11:18 +0200, Manfred Spraul wrote: Risks: - The patch breaks installations that use "take current value and increase it a bit". [seems to exist, http://ma

Re: [PATCH] ipc/shm: Increase the defaults for SHMALL, SHMMAX to infinity

2014-04-19 Thread Manfred Spraul
On 04/19/2014 08:55 AM, Davidlohr Bueso wrote: On Fri, 2014-04-18 at 11:18 +0200, Manfred Spraul wrote: - ULONG_MAX is not really infinity, but 18 Exabyte segment size and 75 Zettabyte total size. This should be enough for the next few weeks. (assuming a 64-bit system with 4k pages) Note:

Re: [PATCH] ipc/shm: Increase the defaults for SHMALL, SHMMAX to infinity

2014-04-19 Thread Michael Kerrisk (man-pages)
On Sat, Apr 19, 2014 at 8:55 AM, Davidlohr Bueso wrote: > On Fri, 2014-04-18 at 11:18 +0200, Manfred Spraul wrote: >> System V shared memory >> >> a) can be abused to trigger out-of-memory conditions and the standard >>measures against out-of-memory do not work: >> >> - it is not possible

Re: [PATCH] ipc/shm: Increase the defaults for SHMALL, SHMMAX to infinity

2014-04-18 Thread Davidlohr Bueso
On Fri, 2014-04-18 at 11:18 +0200, Manfred Spraul wrote: > System V shared memory > > a) can be abused to trigger out-of-memory conditions and the standard >measures against out-of-memory do not work: > > - it is not possible to use setrlimit to limit the size of shm segments. > > -

RE: [PATCH] ipc/shm: Increase the defaults for SHMALL, SHMMAX to infinity

2014-04-18 Thread Motohiro Kosaki
rg; Manfred Spraul; > mtk.manpa...@gmail.com > Subject: [PATCH] ipc/shm: Increase the defaults for SHMALL, SHMMAX to infinity > > System V shared memory > > a) can be abused to trigger out-of-memory conditions and the standard >measures against out-of-memory do not work: > >

[PATCH] ipc/shm: Increase the defaults for SHMALL, SHMMAX to infinity

2014-04-18 Thread Manfred Spraul
System V shared memory a) can be abused to trigger out-of-memory conditions and the standard measures against out-of-memory do not work: - it is not possible to use setrlimit to limit the size of shm segments. - segments can exist without association with any processes, thus the