From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,3a6754711ac14f3e X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-25 17:52:01 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!swrinde!ihnp4.ucsd.edu!library.ucla.edu!news.mic.ucla.edu!DrMemory.nuc.ucla.edu!afj From: afj@DrMemory.nuc.ucla.edu (Andy Jacobson) Newsgroups: comp.unix.osf.osf1 Subject: Re: Q: "orphaned" shared memory segments Date: 26 Jul 1994 00:45:03 GMT Organization: UCLA Dept. of Pharmacology, Los Angeles, CA 90024-6948 Sender: afj@DrMemory.nuc.ucla.edu (Andy Jacobson) Distribution: world Message-ID: <311maf$398@news.mic.ucla.edu> References: Reply-To: afj@DrMemory.nuc.ucla.edu NNTP-Posting-Host: drmemory.nuc.ucla.edu In article peyton.bland@med.umich.edu (Peyton Bland) writes: >We are running OSF/1 V1.3a on a DEC Alpha 3000 Model 500. Our main >application (avs) uses shared memory extensively. Over time, we run out of >shared memory segments. The "ipcs -mo" command shows "orphaned" segments; >ie, segments that have no process attached to them. There are other >segments that show that they are attached to processes but were created by >users that are no longer logged on. I assume these result if the >application terminates abnormally. > >These can be cleaned up manually using the "ipcrm -m " command. >Anybody else seen this? Is this a problem with OSF or with the >application? It's easy to write a short script that uses awk to do some of This is an AVS thing. I use AVS on both Sun and Alpha AXP and they both have this problem. I have confered with AVS about it, and they explain that this is what happens anytime you exit AVS not through the main menu. I suppose that AVS has a destruct function that cleans these all out, otherwise there is nothing to delete them when AVS processes die. It would be nice if there were a utility (aside from reboot) that would clean out shmsegs that are not attached, but, not knowing of any, I use ipcrm -m for all the segs. (Quite a bother). One thing that I wonder about is why is /usr/bin/X11/X creating these shmsegs too? These appear to just pile up and are perhaps just fragmenting the available memory? On SunOS, there does not appear to be anything systemwise that creates these, why so on the DEC? -- Andy Jacobson