tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Losing Swap Space - SUMMARY
@ 1995-05-03 20:11 system PRIVILEGED account
  0 siblings, 0 replies; only message in thread
From: system PRIVILEGED account @ 1995-05-03 20:11 UTC (permalink / raw)
  To: tru64-unix-managers


	Thanks to everyone who replied.  The problem seems to have
been corrected by editing the xdm-config file and renaming /sbin/swapdefault

Martyn

ORIGINAL POST
	Hi.  I am managing a DEC 3000 workstation running the GCG
DNA sequence analysis software for a medical school.  I am new
to system management.  We are running OSF v2.1.  I have been using
the freeware program SWAPSTATUS to monitor the amount of swapspace
available and notice that it slowly decays from 83% free down to
about 30% free after a few days of multiple users being logged
on and running the software.

	Is this usual?  Do I need to reconfigure something.
We have 128MB of swap mounted on rzz2b.  My approach has been to
regularly reboot the machine 

Thanks for any replies

Martyn White

REPLIES
From zhou@puffin.usmcs.maine.edu Wed May  3 12:02:38 1995

Or you might want to check with ps command to see if there are runaway
processes.  You might regain swapspace by killing those processes.

---
Yizhong Zhou

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
From iglesias@draco.acs.uci.edu Wed May  3 12:05:54 1995

You first need to look at the system to see what is using the space.
If you're using a lot X clients or something that allocates large bitmaps,
your X server may be growing.  If that is the case, put the following line

DisplayManager*terminateServer: true

in /usr/lib/X11/xdm/xdm-config and either reboot the system or type:

  kill -HUP `cat /usr/lib/X11/xdm/xdm-pid`

This will cause the X server to be restarted after each user logs out.

If the X server is not the problem, you'll have to figure out what is.
Using 'ps augxww' is a good place to start.


Mike

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
From demarthe@alpha.cad.cea.fr Wed May  3 12:46:23 1995

Martyn,

if your problem looks like one of these, apply the patch :


Problem 1:
*********

Patch ID: OSFV20-073-3          (QAR-26589)(MGO100893)(ISO100049)(USG-00642)

System panics after upgrading from V2.0 to V2.1 or build V2.1.
The panic is created by any program that repeatedly calls
munmap() and mmap() if mmap maps more than munmap unmaps.
Config file probably altered to include mapentries = large number.
This is a configurable parameter.

The program will either abort when it consumes all of swap space or
the system will panic: h_getfreehdr

Stack trace as follows:

(dbx) t
>  0 boot(reason = 0x0, howto = 0x0)
        ["../../../../src/kernel/arch/alpha/machdep.c":1190, 0xfffffc00003880ec]
   1 panic(s = 0xfffffc00004c4dc0)
        ["../../../../src/kernel/bsd/subr_prf.c":616, 0xfffffc0000250210]
   2 h_getfreehdr(hp = 0xfffffc0000362760, wait = 0xffffffff8b415120)
        ["../../../../src/kernel/vm/heap_kmem.c":1093, 0xfffffc0000362c14]
   3 h_kmem_free_memory_(hp = 0xffffffff00000000, ptr = 0xffffffff86305df0, 
nbytes = 0x10, wait = 0x0)
        ["../../../../src/kernel/vm/heap_kmem.c":860, 0xfffffc000036275c]
   4 u_anon_unmap(ep = 0xffffffff862eb360, addr = 0x14e8ca000, len = 0x20000)
        ["../../../../src/kernel/vm/u_mape_anon.c":1387, 0xfffffc0000367120]
   5 u_map_delete(map = 0xffffffff862eb360, start = 0x14e8ca000, end = 
0x14e8ea000, contain = 0x0)
        ["../../../../src/kernel/vm/vm_umap.c":996, 0xfffffc000037cf2c]
   6 vm_map_delete(map = 0xffffffff862eb360, start = 0x14e8ca000, end = 
0x14e8ea000, contain = 0x0)
        ["../../../../src/kernel/vm/vm_map.c":1007, 0xfffffc0000374a04]
   7 munmap(p = 0xffffffff95887c20, args = 0xffffffff961ade20, retval = 
0xffffffff961ade10)
        ["../../../../src/kernel/bsd/kern_mman.c":1015, 0xfffffc0000241994]
   8 syscall(ep = 0xffffffff961adef8, code = 0x49)
        ["../../../../src/kernel/arch/alpha/syscall_trap.c":670, 
0xfffffc00003948ec]
   9 _Xsyscall()
        ["../../../../src/kernel/arch/alpha/locore.s":860, 0xfffffc00003862f8]
(dbx)


Problem 2:         (QAR-26589)(QAR-USG-00642)(CLD-MGO100893)(ISO100049)
*********

Patch ID: OSFV20-073-x

System panics after upgrading from V2.0 to V2.1 or build V2.1.
The panic is created by any program that repeatedly calls
munmap() and mmap() if mmap maps more than munmap unmaps.
Config file probably altered to include mapentries = large number.
This is a configurable parameter.

The program will either abort when it consumes all of swap space or
the system will panic: h_getfreehdr

Stack trace as follows:

(dbx) t
>  0 boot(reason = 0x0, howto = 0x0)
        ["../../../../src/kernel/arch/alpha/machdep.c":1190, 0xfffffc00003880ec]
   1 panic(s = 0xfffffc00004c4dc0)
        ["../../../../src/kernel/bsd/subr_prf.c":616, 0xfffffc0000250210]
   2 h_getfreehdr(hp = 0xfffffc0000362760, wait = 0xffffffff8b415120)
        ["../../../../src/kernel/vm/heap_kmem.c":1093, 0xfffffc0000362c14]
   3 h_kmem_free_memory_(hp = 0xffffffff00000000, ptr = 0xffffffff86305df0, 
nbytes = 0x10, wait = 0x0)
        ["../../../../src/kernel/vm/heap_kmem.c":860, 0xfffffc000036275c]
   4 u_anon_unmap(ep = 0xffffffff862eb360, addr = 0x14e8ca000, len = 0x20000)
        ["../../../../src/kernel/vm/u_mape_anon.c":1387, 0xfffffc0000367120]
   5 u_map_delete(map = 0xffffffff862eb360, start = 0x14e8ca000, end = 
0x14e8ea000, contain = 0x0)
        ["../../../../src/kernel/vm/vm_umap.c":996, 0xfffffc000037cf2c]
   6 vm_map_delete(map = 0xffffffff862eb360, start = 0x14e8ca000, end = 
0x14e8ea000, contain = 0x0)
        ["../../../../src/kernel/vm/vm_map.c":1007, 0xfffffc0000374a04]
   7 munmap(p = 0xffffffff95887c20, args = 0xffffffff961ade20, retval = 
0xffffffff961ade10)
        ["../../../../src/kernel/bsd/kern_mman.c":1015, 0xfffffc0000241994]
   8 syscall(ep = 0xffffffff961adef8, code = 0x49)
        ["../../../../src/kernel/arch/alpha/syscall_trap.c":670, 
0xfffffc00003948ec]
   9 _Xsyscall()
        ["../../../../src/kernel/arch/alpha/locore.s":860, 0xfffffc00003862f8]
(dbx)

A kernel rebuild is required

Hope this helps,
+--------------------------------------------------------------+
| Herve DEMARTHE   %^)    E-Mail:   demarthe@alpha.cad.cea.fr  |
+--------------------------------------------------------------+

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
From nicolis@celfi.phys.univ-tours.fr Wed May  3 13:09:46 1995
Subject: Re: Losing Swapspace  

Hi,
the infamous swapspace bug strikes once more....Put the following 
line in the /usr/lib/X11/xdm/xdm-config file:

DisplayManager._0.terminateServer: true

this will free swap space after a logout. Also you might consider 
getting rid of the /sbin/swapdefault link to the swap partition. 
(Renaming /sbin/swapdefault to anything else will do the trick).

Best regards
Stam Nicolis
nicolis@celfi.phys.univ-tours.fr
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


1) Move "/sbin/swapdefault" to "/sbin/swapdefault.old"

2) Dormant Xserver process are known to take up swapspace and will not 
   release the space until the system is rebooted.  Add the following
   line to your file "/usr/lib/X11/adm/Xservers".

	:0 local /usr/bin/X11/X -nice -2 -terminate

3) After the above changes are made, reboot your system.

Dan Winger  __   _     *      )     * NASA-Goddard Space Flight Center
SEWP BOWL (soop bol)   *   _ ( \\   * RMS Technologies Inc.
winger@sewp.nasa.gov   *  (_X__//_  * Code 251.9
301.286.7658           * (        ) * Bldg 18 Room 274
FAX 301.286.1619       *  \______/  * Greenbelt, MD  20771
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
From alan@nabeth.cxo.dec.com Wed May  3 14:17:11 1995

	It sounds like you're *using* swap space instead of losing
	it.  Having swap space used is normal, since all virtual
	memory allocations require the reservation or at least
	usage of page/swap space.  If the space is still gone after
	the users have logged out and all the processes they have
	started are gone, then you might need to worry.

	If particular applications seem to continue growing without
	apparent need, then you may want to check the application for
	memory leaks.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
From george@mms.water.ci.detroit.mi.us Wed May  3 14:37:11 1995

Use swapon -s   command to monitor the swapspace will be better.  
Allocate the swapspace about 3 to 4 times the size of memory and split 
the swapspace between disks.  I am managina a DEC 3000-600S server with 
160 MB of memory.  I am allocating 540 Mb of swapsapce and is distributed 
in 3 disks.  It handle it very good and running without any problem.  The 
use of swapspace is about 25% .   Please post the solution that works 
for you.  thanks and a have a good day!!

alex.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 

From fabrice@cisk.atmos.Ucla.EDU Wed May  3 15:07:53 1995


Which version of OSF? You may have to add -terminate in the Xervers file
as the X server was known as not releasing memory otherwise.

Fabrice
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-05-03 20:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-05-03 20:11 Losing Swap Space - SUMMARY system PRIVILEGED account

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox