From owner-freebsd-questions Thu Aug 3 23:57:28 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cx587235-a.chnd1.az.home.com (cx587235-a.chnd1.az.home.com [24.11.88.170]) by hub.freebsd.org (Postfix) with ESMTP id 9E27337B7FB for ; Thu, 3 Aug 2000 23:57:25 -0700 (PDT) (envelope-from jjreynold@home.com) Received: from whale.home-net (whale [192.168.1.2]) by cx587235-a.chnd1.az.home.com (8.9.3/8.9.3) with ESMTP id XAA82726 for ; Thu, 3 Aug 2000 23:57:25 -0700 (MST) (envelope-from jjreynold@home.com) Received: (from jjreynold@localhost) by whale.home-net (8.9.3/8.9.3) id XAA61359; Thu, 3 Aug 2000 23:57:25 -0700 (MST) (envelope-from jjreynold@home.com) From: John Reynolds MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14730.26965.108462.419415@whale.home-net> Date: Thu, 3 Aug 2000 23:57:25 -0700 (MST) To: questions@freebsd.org Subject: how to tell the amount of SysV shared memory available? X-Mailer: VM 6.75 under Emacs 20.7.1 Cc: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, Is there a way to tell how much SysV-ish shared memory can be allocated? One of the *stat commands? I grepped through the archives looking for shmget() articles because I'm having problems running the "buffer" command (/usr/ports/misc/buffer) in conjunction with backing up onto tape. If I run 'buffer' alone it succeeds but if I try and allocate more memory with the -m option I get: root@whale [~]<98># buffer -m 2m -s 54k -u 100 -t -p 75 -B buffer: couldn't create shared memory segment: Cannot allocate memory I saw article: http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=3414394+3416672+/usr/local/www/db/text/1998/freebsd-questions/19980308.freebsd-questions mention the SHMMAX parameter in LINT. I looked in RELENG_4's LINT and sure enough there it is at the bottom. Is this the proper way to increase the amount of shared memory shmget() can get? i.e. setting SHMMAXPGS to something higher than the default? I grepped through sysv_shm.c and saw that the default for this parameter if not given in a kernel config file is 1024. Would doubling it screw something up? Thanks, -Jr ps: btw: I'm running GNOME+Sawfish and have read in the archives that sawfish uses lots of shared memory ... maybe untrue, but that could be why I'm "running low" after making the window manager switch ...... -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= John Reynolds Chandler Capabilities Engineering, CDS, Intel Corporation jreynold@sedona.ch.intel.com My opinions are mine, not Intel's. Running jjreynold@home.com FreeBSD 4.0-STABLE. FreeBSD: The Power to Serve. http://members.home.com/jjreynold/ Come join us!!! @ http://www.FreeBSD.org/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message