Date: Thu, 3 Aug 2000 23:57:25 -0700 (MST) From: John Reynolds <jjreynold@home.com> To: questions@freebsd.org Subject: how to tell the amount of SysV shared memory available? Message-ID: <14730.26965.108462.419415@whale.home-net>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14730.26965.108462.419415>