Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Jeffery A. White" <j.a.white@larc.nasa.gov>
To: axp-list@redhat.com
Subject: Re: Memory leaks
Date: Wed, 16 Feb 2000 15:13:12 -0500	[thread overview]
Message-ID: <38AB04D8.B3E26352@larc.nasa.gov> (raw)
In-Reply-To: 200002161948.MAA25701@sicilia.bradfordfamily.org

[-- Attachment #1: Type: text/plain, Size: 4563 bytes --]

Andy Bradford wrote:
> 
> Thus said "Jeffery A. White" on Wed, 16 Feb 2000 12:26:36 EST:
> 
> > I am using top to watch memory use and recently ran the test
> > case twice in a row so that (as far a top is concerned) the memory was
> > completely depleted and the job started to swap.
> 
> What does the second line of 'free' show?  This is what I would use to
> judge how much memory is currently allocated---the others have to do
> with the memory allocated in buffers which isn't in use and can be
> re-used if needed.  If you notice that the number doesn't decrease when
> you close your application then I would suspect a memory leak.
> 
> > Is there a better tool than top to monitor memory? Does anybody
> > have any idea why the memory is not being de-allocated after
> > the job completes?
> 
> top is a good tool, but not for tracking down memory leaks---it's
> display can be misleading.  I would try using 'free' instead even
> though it isn't the best program either.  I'm sure there must be some
> type of tool for detecting memory problems...  Keep looking.
> Andy
> --
>         +====== Andy ====== TiK: garbaglio ======+
>         |    Linux is about freedom of choice    |
>         +== http://www.xmission.com/~bradipo/ ===+
> 
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

Sorry but I had a meeting and just got back.

Here is what I have so far. I am running kernel 2.2.10
I am not running parallel at the moment. I am running
in single node mode and the code I am using does not 
have any MPI calls or parallel constructs in it.

Here are the results from free

Rebooted the node and typing free gives :

      total    used    free    shared  buffers  cached
Mem: 1035416  32504   1002912    15112  3296    16104
-/+ buffers/cache:    13104    1022312
Swap:      2094560          0    2094560

After job completion free gives:

      total   used    free     shared  buffers   cached
Mem: 1035416 595392  440024     15112   244536  298736
-/+ buffers/cache:   52120     983296
Swap:      2094560          0    2094560


Also the resul from ps auwx gives:

USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         1  0.7  0.0  3504  864 ?        S    16:01   0:05 init 
root         2  0.0  0.0     0    0 ?        SW   16:01   0:00 [kflushd]
root         3  0.0  0.0     0    0 ?        SW   16:01   0:00 [kpiod]
root         4  0.0  0.0     0    0 ?        SW   16:01   0:00 [kswapd]
daemon     239  0.0  0.0  2464  728 ?        S    16:01   0:00 portmap
root       286  0.0  0.1  5816 1112 ?        S    16:01   0:00 syslogd
-m 0
root       297  0.0  0.1  2904 1288 ?        S    16:01   0:00 klogd
root       324  0.0  0.1  6880 1128 ?        S    16:01   0:00 crond
root       338  0.0  0.1  5776 1064 ?        S    16:01   0:00 inetd
root       352  0.0  0.1  5840 1072 ?        S    16:01   0:00
/usr/sbin/lpd
root       576  0.0  0.0  3552 1008 ?        S    16:01   0:00 rpc.statd
root       587  0.0  0.0  2448  736 ?        S    16:01   0:00
rpc.rquotad
root       598  0.0  0.1  3632 1096 ?        S    16:01   0:00
rpc.mountd
root       609  0.0  0.0     0    0 ?        SW   16:01   0:00 [nfsd]
root       610  0.0  0.0     0    0 ?        SW   16:01   0:00 [nfsd]
root       611  0.0  0.0     0    0 ?        SW   16:01   0:00 [nfsd]
root       612  0.0  0.0     0    0 ?        SW   16:01   0:00 [nfsd]
root       613  0.0  0.0     0    0 ?        SW   16:01   0:00 [nfsd]
root       614  0.0  0.0     0    0 ?        SW   16:01   0:00 [nfsd]
root       615  0.0  0.0     0    0 ?        SW   16:01   0:00 [nfsd]
root       616  0.0  0.0     0    0 ?        SW   16:01   0:00 [nfsd]
root       617  0.0  0.0     0    0 ?        SW   16:01   0:00 [lockd]
root       618  0.0  0.0     0    0 ?        SW   16:01   0:00 [rpciod]
root       628  0.0  0.1 10360 1632 ?        S    16:01   0:00
/usr/sbin/amd -r -d larc.nasa.gov -l syslog -x noinfo /ump /etc/amd.u
root       633  0.0  0.0  2424  752 ttyS0    S    16:01   0:00
/sbin/mingetty ttyS0 --noclear
root       635  0.1  0.0  2416  584 ?        S    16:01   0:00 update
(bdflush)
root       669  0.0  0.1 11536 1616 ?        S    16:02   0:00
in.telnetd
root       670  0.0  0.2 23448 2216 pts/0    S    16:02   0:00 login --
guest_02

Ther does not appear to be any processes using memory left over.

-- 
Jeffery A. White
email : j.a.white@larc.nasa.gov
Phone : (757) 864-6882 ; Fax : (757) 864-6243
URL   : http://hapb-www.larc.nasa.gov/~jawhite/

[-- Attachment #2: Card for Jeffery A. White --]
[-- Type: text/x-vcard, Size: 413 bytes --]

begin:vcard 
n:White;Jeff 
tel;fax:(757) 864 - 6243
tel;work:(757) 864 - 6882
x-mozilla-html:FALSE
url:hapb-www.larc.nasa.gov/~jawhite
org:NASA Langley Research Center ;Hypersonic Airbreathing Propulsion Branch
version:2.1
email;internet:j.a.white@larc.nasa.gov
title:Aerospace Engineer
adr;quoted-printable:;;Mail Stop 168=0D=0A;Hampton;Virginia;23681-2199;USA
x-mozilla-cpt:;-2272
fn:Jeffery A. White
end:vcard

  parent reply	other threads:[~2000-02-16 20:13 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-16 17:26 Memory leaks Jeffery A. White
2000-02-16 17:43 ` Nelson Teixeira Brito
2000-02-16 17:43   ` Brian Pomerantz
2000-02-16 18:06     ` W Bauske
2000-02-16 18:04       ` Jeffery A. White
2000-02-16 18:12         ` Mohan
2000-02-16 18:23           ` W Bauske
2000-02-16 18:34             ` Nelson Teixeira Brito
2000-02-16 18:19         ` W Bauske
2000-02-16 17:47   ` Jeffery A. White
2000-02-16 18:11     ` Michal Jaegermann
2000-02-17  8:37       ` Sean Hunter
2000-02-16 19:48 ` Andy Bradford
2000-02-16 20:00   ` Jeffery A. White
2000-02-16 20:13   ` Jeffery A. White [this message]
2000-02-16 20:19     ` Jeffery A. White
2000-02-16 20:45       ` Don Russell
2000-02-16 20:50     ` Brian Pomerantz
2000-02-16 21:14       ` Jeffery A. White
2000-02-16 21:19         ` David Singleton
2000-02-16 21:31         ` Phillip Ezolt
2000-02-16 21:38           ` Jeffery A. White
2000-02-16 21:43             ` Phillip Ezolt
2000-02-17  2:53               ` Greg Lindahl
  -- strict thread matches above, loose matches on Subject: below --
2000-02-16 17:56 Mike Foley
read-only archive

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