From owner-freebsd-questions Tue Dec 28 15: 8:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from pericles.IPAustralia.gov.au (pericles.IPAustralia.gov.au [202.14.186.30]) by hub.freebsd.org (Postfix) with ESMTP id A92CC1550A for ; Tue, 28 Dec 1999 15:08:17 -0800 (PST) (envelope-from anwsmh@IPAustralia.Gov.AU) Received: (from smap@localhost) by pericles.IPAustralia.gov.au (8.9.3/8.9.3) id KAA67817; Wed, 29 Dec 1999 10:08:15 +1100 (EST) (envelope-from anwsmh@IPAustralia.Gov.AU) Received: from wf-136.aipo.gov.au(192.168.1.136) by pericles.IPAustralia.gov.au via smap (V2.0) id xma067815; Wed, 29 Dec 99 10:08:05 +1100 Received: from localhost (anwsmh@localhost) by stan.aipo.gov.au (8.9.3/8.9.3) with ESMTP id KAA00330; Wed, 29 Dec 1999 10:08:02 +1100 (EST) (envelope-from anwsmh@IPAustralia.Gov.AU) X-Authentication-Warning: stan.aipo.gov.au: anwsmh owned process doing -bs Date: Wed, 29 Dec 1999 10:08:02 +1100 (EST) From: Stanley Hopcroft X-Sender: anwsmh@stan.aipo.gov.au To: questions@FreeBSD.ORG Cc: Stanley.Hopcroft@IPAustralia.Gov.AU Subject: Programming question - How do I make SysV IPC Message queues bigger ? Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dear Ladies and Gentlemen, I am writing to ask your help with an application using System V Message Queues for IPC. I would like to modify the application to increase the size of 1 each message (from MSGMMAX in sys/msg.h, of 2048 bytes) 2 the queue capacity (another constant in that header file) Should I modify the kernel definitions of those constants and then have the application define these constants accordingly ? The fantastic book "Advanced Programming in the Unix Environment" (APUE) suggests that these limits can be redefined but I am not sure how to. sysctl does not seem to deal with these limits nor does ulimit or login.conf. Your advice will be gratefully accepted. APUE does not seem to have a high opinion of Sys V IPC but I am too ignorant to consider named pipes or other alternatives. Thank you, Yours sincerely. Network Specialist IP Australia +61 2 6283 3189 +61 2 6281 1353 FAX To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message