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/