home *** CD-ROM | disk | FTP | other *** search
- From: stroyan@hpfcso.FC.HP.COM (Mike Stroyan)
- Date: Wed, 6 Jan 1993 20:17:06 GMT
- Subject: Re: HP 7xx problem with virtual memory (thrashing)
- Message-ID: <7371514@hpfcso.FC.HP.COM>
- Organization: Hewlett-Packard, Fort Collins, CO, USA
- Path: sparky!uunet!paladin.american.edu!gatech!emory!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!stroyan
- Newsgroups: comp.sys.hp
- References: <1992Dec31.193847.6419@csi.com>
- Lines: 28
-
- > Some added data: after boot, and for several days, the system would
- > report that about 60 MB of our 128 MB was "free". After that, the "free"
- > memory would decline slowly, until the system would become useless
- > when about 5 MB or less was free. The number of processes remained more
- > or less the same (i.e. not a huge number of defunct/zombies eating
- > memory), and no task would show more "SIZE" than it would when the
- > system was booted. It seems there is a black hole for memory; we have
- > one program which may not be well-behaved about returning malloc'ed
- > memory, but the system MUST recover all such memory when the process
- > dies no matter how screwed up the process becomes.
-
- There is another possible way to use up swap space. Shared memory
- segments also require swap space. Since shared memory segments will
- survive the exit of their creating process, they can accumulate whenever
- a program fails to destroy segments that it creates. The command
- "ipcs -mb" will list shared memory segments, their owners and their sizes.
- If you note segments accumulating over time you can ask the owners
- what kind of programs they are executing, and try to pin down the source.
-
- Shared memory segments can be removed using "ipcrm", but it can be
- difficult to determine whether a shared memory segment is entirely
- unused. A segment is in use if the "NATTCH" field reported by "ipcs -mo"
- is greater than 0. An apparently unused segment might be left
- around intentionally to hold information for later executions of a
- program. The only way to check for this is to check the documentation
- or the author of each program involved.
-
- Mike Stroyan, mike_stroyan@fc.hp.com
-