From owner-freebsd-questions Sun Apr 8 1: 4:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from head.lvl.ru (head.lvl.ru [194.67.189.100]) by hub.freebsd.org (Postfix) with ESMTP id 57B1337B422 for ; Sun, 8 Apr 2001 01:04:18 -0700 (PDT) (envelope-from jadream@chat.ru) Received: from chat.ru (p21.gw.lvl.ru [194.67.189.21]) by head.lvl.ru (8.11.2/8.11.2) with ESMTP id f3884Kc02568 for ; Sun, 8 Apr 2001 12:04:20 +0400 (MSD) Message-ID: <3AD01DC7.E2BFA324@chat.ru> Date: Sun, 08 Apr 2001 12:13:59 +0400 From: alex X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Strange behaviour of the SYSV msg queue Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@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-questions" in the body of the message