Subject: Re: posix semaphore stats
To: None <email@example.com>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 12/06/2007 00:27:47
In article <20071205221343.291ADD2B88F@mail.connecty.lt>,
Mindaugas R. <rmind@NetBSD.org> wrote:
>Is there any reason to not allow dynamical changing of SEM_MAX and
>increasing the default value?
>> On Tue, Nov 20, 2007 at 06:23:43PM -0800, Aaron J. Grier wrote:
>> > I can use ipcs to show statistics on sysV semaphores.
>> > is there something equivalent for posix semaphores?
>> to answer my own question, after a co-worker read through the code,
>> apparently not. this ties into PR36979, where it is noted that the
>> limit is hard-coded at kernel compile time, and there is no kernel
>> config option for it other than using a makeoptions line.
You need to make sure that only root/kauth_something can raise the limit
otherwise you can use this to run the kernel out of memory.