From owner-freebsd-hackers Sun Oct 31 23:20:42 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (Postfix) with ESMTP id CE452151D6 for ; Sun, 31 Oct 1999 23:20:33 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.8.8/8.8.8) with UUCP id IAA23548 for freebsd-hackers@freebsd.org; Mon, 1 Nov 1999 08:20:33 +0100 (CET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.9.3/8.9.1) id IAA05173; Mon, 1 Nov 1999 08:15:22 +0100 (MET) (envelope-from j) Date: Mon, 1 Nov 1999 08:15:22 +0100 (MET) Message-Id: <199911010715.IAA05173@uriah.heep.sax.de> Mime-Version: 1.0 X-Newsreader: knews 0.9.8 Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Organization: Private BSD site, Dresden X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E References: From: j@uriah.heep.sax.de (J Wunsch) Subject: Re: semaphores/semget problem X-Original-Newsgroups: local.freebsd.hackers To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kent Boortz wrote: > semget(IPC_PRIVATE, SEMMSL, IPC_EXCL | IPC_CREAT | 0600)) > > fails with the error "No space left on device". I tried to > use a smaller value for SEMMSL but it did not help. The tunable kernel paramater "SEMMNS" defaults to 60, that's the maximal number of semaphores allowed in the system (accumulated over all calls to semget() that are active by the same time). Also, due to the crocky^H^H^H^H^H^Hfunny concept of SysV IPC, you might as well run out of semaphore IDs instead (== #calls to semget()), which is the tunable parameter SEMMNI, defaulting to 10. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message