Date: Thu, 2 Mar 2000 02:01:20 +0800 From: Clive Lin <clive@GnatS.CirX.ORG> To: Alfred Perlstein <bright@wintelcom.net> Cc: Cliff Rowley <dozprompt@onsea.com>, Christopher Masto <chris@netmonger.net>, freebsd-current@FreeBSD.ORG Subject: Re: Shared memory - Was: 2 Queries Message-ID: <20000302020119.A5176@host.cer.ntnu.edu.tw> In-Reply-To: <20000301075833.R21720@fw.wintelcom.net> References: <20000229134143.B4903@netmonger.net> <Pine.BSF.4.21.0002292003210.2954-100000@merlin.onsea.com> <20000301075833.R21720@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 01, 2000 at 07:58:34AM -0800, Alfred Perlstein wrote: > > It'd be nice if we had a utility that could clean out and reclaim the > > shared memory in 1 swoop. Then we'd be able to shut down XFree86 (and > > obviously any other apps using shared memory), and get on with life :) > > > > (anyone listening?) > > er, yes this is entirely possible. > > If you want to clear SHM then use 'ipcs' to list and 'ipcrm' to delete. > > I used to have a shell script to do this, but i don't know where it > went. Hi, I dont' know if this meet what you described, but I use a single line to clean un-referenced shared memory. x.sh: #!/bin/sh ipcs | awk '{if ($5 == ENVIRON["USER"]) system("ipcrm -m" $2)}' Before applying 3 options posted by ade lovett into my kernel, most heavy gtk programs like xmms, gimp, gnome-controlcenter...etc, will die with whole X crashing. (I invoke X with gnome-session, what the gnome document said) Thus I have to run x.sh whenever my X crashed with share memory bodiz *shurg* /.\ -- CirX - This site doesnt' exist. 9c k9o h9 s1bg s1f, 7v .y xqx a sj m8r ffg1 vg5 a6 asox tmul h38. ant sj m8r ob ? 1fj mwby a1 tao vg5. soq df v' .a. CirX. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000302020119.A5176>