From owner-freebsd-stable Sun Apr 8 13:42:48 2001 Delivered-To: freebsd-stable@freebsd.org Received: from head.lvl.ru (head.lvl.ru [194.67.189.100]) by hub.freebsd.org (Postfix) with ESMTP id 86C9937B423 for ; Sun, 8 Apr 2001 13:42:44 -0700 (PDT) (envelope-from jadream@chat.ru) Received: from chat.ru (p26.gw.lvl.ru [194.67.189.26]) by head.lvl.ru (8.11.2/8.11.2) with ESMTP id f38Kgmc01532 for ; Mon, 9 Apr 2001 00:42:48 +0400 (MSD) Message-ID: <3AD0CF8D.F02AB836@chat.ru> Date: Mon, 09 Apr 2001 00:52:29 +0400 From: alex X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: SysV msg queue strange behaviour Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi ppl ! I have FreeBSD 4.2 on a common i386 pc with SysV IPC configured and recompiled kernel. Everything goes well untill I create more than 128 processes sending messages (24bytes in size) to the same queue at a time with flags = 0 (Blocking mode) and 1 process getting them all with flags = 0 (Blocking mode too). After queue size rises up to 70 -180 all processes hangs - both the ones that sends (what's naturally) and the one that gets (that's strange to my mind). Hence I have dead lock. With all this I have in my kernel config file options like that MSGMNI=64 MSGMAX=256 MSGMNB=2048*24 MSGTQL=2048 I used semaphores to block sending messages processes until receiver cleares whole queue and it all works but total performance go down dramatically :0( Any idea how to handle that? Alexander Komratov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message