* Memory leaks
@ 2000-02-16 17:26 Jeffery A. White
2000-02-16 17:43 ` Nelson Teixeira Brito
2000-02-16 19:48 ` Andy Bradford
0 siblings, 2 replies; 25+ messages in thread
From: Jeffery A. White @ 2000-02-16 17:26 UTC (permalink / raw)
To: axp-list@redhat.com
[-- Attachment #1: Type: text/plain, Size: 1224 bytes --]
Help!,
I have assembled an 11 node Beowulf computer
using Microway Screamer LX machines. These machines
use the 21164A chip and have 8 Mb of cache. Each machine
is configured with 1 Gb of RAM. We are running RedHat 6.0.
The problem is that we have ported a FORTRAN 77 code using
ver. 1.0 of the DEC Linux FORTRAN compiler and are having
severe memory depeletion problems. The code does not use
any sort of dynamic memory allocation, all memory is
allocated statically at compile time. The code runs to
completion fine gives the right answer but the memory used
during the job is not being de-allocated after the job completes. This
code has been run on SGI , Cray, Sun, and
HP Unix O/S machines without every running into this problem
before.
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.
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?
--
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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
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 17:47 ` Jeffery A. White
2000-02-16 19:48 ` Andy Bradford
1 sibling, 2 replies; 25+ messages in thread
From: Nelson Teixeira Brito @ 2000-02-16 17:43 UTC (permalink / raw)
To: axp-list@redhat.com
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=US-ASCII, Size: 1597 bytes --]
On Wed, 16 Feb 2000, Jeffery A. White wrote:
> Help!,
>
> I have assembled an 11 node Beowulf computer
> using Microway Screamer LX machines. These machines
> use the 21164A chip and have 8 Mb of cache. Each machine
> is configured with 1 Gb of RAM. We are running RedHat 6.0.
>
> The problem is that we have ported a FORTRAN 77 code using
> ver. 1.0 of the DEC Linux FORTRAN compiler and are having
> severe memory depeletion problems. The code does not use
> any sort of dynamic memory allocation, all memory is
> allocated statically at compile time. The code runs to
> completion fine gives the right answer but the memory used
> during the job is not being de-allocated after the job completes. This
> code has been run on SGI , Cray, Sun, and
> HP Unix O/S machines without every running into this problem
> before.
Just a sugestion; why don't you try fortran compiler for linux alpha?
I'm not an expert but i think f77 has not dynamic memory allocation
(please correct me)!
Got to http://www.digital.com/fortran/linux/ and then click on
Technology Enthusiast page link.
Regards,
Nelson
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´'´
"Je n'ecoute que les conseils du vent qui passe ..."
------------------------------------------------------
Nelson Brito |
Departamento de Quimica | Tel: 351-226082851
Faculdade de Ciencias | 351-226082827
R. do Campo Alegre, n 687 | Fax: 351-226082959
4169-007 Porto |
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´'´
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
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 17:47 ` Jeffery A. White
1 sibling, 1 reply; 25+ messages in thread
From: Brian Pomerantz @ 2000-02-16 17:43 UTC (permalink / raw)
To: axp-list@redhat.com
On Wed, Feb 16, 2000 at 05:43:30PM +0000, Nelson Teixeira Brito wrote:
> On Wed, 16 Feb 2000, Jeffery A. White wrote:
>
> > Help!,
> >
> > I have assembled an 11 node Beowulf computer
> > using Microway Screamer LX machines. These machines
> > use the 21164A chip and have 8 Mb of cache. Each machine
> > is configured with 1 Gb of RAM. We are running RedHat 6.0.
> >
> > The problem is that we have ported a FORTRAN 77 code using
> > ver. 1.0 of the DEC Linux FORTRAN compiler and are having
--------------------------
> > severe memory depeletion problems. The code does not use
> > any sort of dynamic memory allocation, all memory is
> > allocated statically at compile time. The code runs to
> > completion fine gives the right answer but the memory used
> > during the job is not being de-allocated after the job completes. This
> > code has been run on SGI , Cray, Sun, and
> > HP Unix O/S machines without every running into this problem
> > before.
>
> Just a sugestion; why don't you try fortran compiler for linux alpha?
> I'm not an expert but i think f77 has not dynamic memory allocation
> (please correct me)!
> Got to http://www.digital.com/fortran/linux/ and then click on
> Technology Enthusiast page link.
>
Sounds like he is.
BAPper
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 17:43 ` Nelson Teixeira Brito
2000-02-16 17:43 ` Brian Pomerantz
@ 2000-02-16 17:47 ` Jeffery A. White
2000-02-16 18:11 ` Michal Jaegermann
1 sibling, 1 reply; 25+ messages in thread
From: Jeffery A. White @ 2000-02-16 17:47 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 287 bytes --]
I am using the linux DEC fortran compiler for the alpha.
I have also tried the tru64 DEC fortran compiler with the
-nonshared option envoked so that the executable can be run
on the linux box. It has the same problem as the linux
compiled code run on the linux box.
Jeffery A. White
[-- 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* RE: Memory leaks
@ 2000-02-16 17:56 Mike Foley
0 siblings, 0 replies; 25+ messages in thread
From: Mike Foley @ 2000-02-16 17:56 UTC (permalink / raw)
To: 'axp-list@redhat.com'
There are some support pages on the Compaq
linux web site specifically for the Compaq
Linux compilers. Have you posted something there
yet?
mike
-----Original Message-----
From: Jeffery A. White [mailto:j.a.white@larc.nasa.gov]
Sent: Wednesday, February 16, 2000 12:48 PM
To: axp-list@redhat.com
Subject: Re: Memory leaks
I am using the linux DEC fortran compiler for the alpha.
I have also tried the tru64 DEC fortran compiler with the
-nonshared option envoked so that the executable can be run
on the linux box. It has the same problem as the linux
compiled code run on the linux box.
Jeffery A. White
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
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:19 ` W Bauske
0 siblings, 2 replies; 25+ messages in thread
From: Jeffery A. White @ 2000-02-16 18:04 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 2637 bytes --]
W Bauske wrote:
>
> I don't think it's the compiler if the memory stays allocated
> between job runs. More likely a kernel leak of some sort.
>
> What level of kernel are you running?
>
> Some are known to have memory leaks in them in the 2.2.x
> series.
>
> Also, the job does terminate, correct? If not, then it
> could be the compiler. By that I mean no zombies and
> such left around hanging onto memory? No processes were
> spawned by your code that didn't die correctly?
> Try "ps auwx" or your favorite args to see what's actually
> still running on your systems. I run parallel codes using
> PVM all the time without problems using DS10's.
>
> Wes
>
> Brian Pomerantz wrote:
> >
> > On Wed, Feb 16, 2000 at 05:43:30PM +0000, Nelson Teixeira Brito wrote:
> > > On Wed, 16 Feb 2000, Jeffery A. White wrote:
> > >
> > > > Help!,
> > > >
> > > > I have assembled an 11 node Beowulf computer
> > > > using Microway Screamer LX machines. These machines
> > > > use the 21164A chip and have 8 Mb of cache. Each machine
> > > > is configured with 1 Gb of RAM. We are running RedHat 6.0.
> > > >
> > > > The problem is that we have ported a FORTRAN 77 code using
> > > > ver. 1.0 of the DEC Linux FORTRAN compiler and are having
> > --------------------------
> >
> > > > severe memory depeletion problems. The code does not use
> > > > any sort of dynamic memory allocation, all memory is
> > > > allocated statically at compile time. The code runs to
> > > > completion fine gives the right answer but the memory used
> > > > during the job is not being de-allocated after the job completes. This
> > > > code has been run on SGI , Cray, Sun, and
> > > > HP Unix O/S machines without every running into this problem
> > > > before.
> > >
> > > Just a sugestion; why don't you try fortran compiler for linux alpha?
> > > I'm not an expert but i think f77 has not dynamic memory allocation
> > > (please correct me)!
> > > Got to http://www.digital.com/fortran/linux/ and then click on
> > > Technology Enthusiast page link.
> > >
> >
> > Sounds like he is.
> >
> > BAPper
> >
> > --
> > 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
>
> --
> 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
The jobs run to completeing successfully, I'll have to check
ont he kernel info.
--
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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 17:43 ` Brian Pomerantz
@ 2000-02-16 18:06 ` W Bauske
2000-02-16 18:04 ` Jeffery A. White
0 siblings, 1 reply; 25+ messages in thread
From: W Bauske @ 2000-02-16 18:06 UTC (permalink / raw)
To: axp-list
I don't think it's the compiler if the memory stays allocated
between job runs. More likely a kernel leak of some sort.
What level of kernel are you running?
Some are known to have memory leaks in them in the 2.2.x
series.
Also, the job does terminate, correct? If not, then it
could be the compiler. By that I mean no zombies and
such left around hanging onto memory? No processes were
spawned by your code that didn't die correctly?
Try "ps auwx" or your favorite args to see what's actually
still running on your systems. I run parallel codes using
PVM all the time without problems using DS10's.
Wes
Brian Pomerantz wrote:
>
> On Wed, Feb 16, 2000 at 05:43:30PM +0000, Nelson Teixeira Brito wrote:
> > On Wed, 16 Feb 2000, Jeffery A. White wrote:
> >
> > > Help!,
> > >
> > > I have assembled an 11 node Beowulf computer
> > > using Microway Screamer LX machines. These machines
> > > use the 21164A chip and have 8 Mb of cache. Each machine
> > > is configured with 1 Gb of RAM. We are running RedHat 6.0.
> > >
> > > The problem is that we have ported a FORTRAN 77 code using
> > > ver. 1.0 of the DEC Linux FORTRAN compiler and are having
> --------------------------
>
> > > severe memory depeletion problems. The code does not use
> > > any sort of dynamic memory allocation, all memory is
> > > allocated statically at compile time. The code runs to
> > > completion fine gives the right answer but the memory used
> > > during the job is not being de-allocated after the job completes. This
> > > code has been run on SGI , Cray, Sun, and
> > > HP Unix O/S machines without every running into this problem
> > > before.
> >
> > Just a sugestion; why don't you try fortran compiler for linux alpha?
> > I'm not an expert but i think f77 has not dynamic memory allocation
> > (please correct me)!
> > Got to http://www.digital.com/fortran/linux/ and then click on
> > Technology Enthusiast page link.
> >
>
> Sounds like he is.
>
> BAPper
>
> --
> 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 17:47 ` Jeffery A. White
@ 2000-02-16 18:11 ` Michal Jaegermann
2000-02-17 8:37 ` Sean Hunter
0 siblings, 1 reply; 25+ messages in thread
From: Michal Jaegermann @ 2000-02-16 18:11 UTC (permalink / raw)
To: axp-list
Jeffery A. White wrote:
>
> I am using the linux DEC fortran compiler for the alpha.
> I have also tried the tru64 DEC fortran compiler with the
> -nonshared option envoked so that the executable can be run
> on the linux box. It has the same problem as the linux
> compiled code run on the linux box.
How did you decide that you really have memory leaks. The first
line of output from 'free'? Maybe you are just seeing a memory
used in buffers? Are you sure that this is not something covered
by a section 6.4 in /usr/doc/FAQ/?
I am not saying that your trouble is real; only that this is not
clear from what you posted so far.
Michal
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
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:19 ` W Bauske
1 sibling, 1 reply; 25+ messages in thread
From: Mohan @ 2000-02-16 18:12 UTC (permalink / raw)
To: axp-list
Hi,
I am running kernel v2.2.14 on a ds20 with MPICH application
compiled using the compaq fortran compiler w/o any memory
leaks.
I am also suspecting "kernel leaks"
Mohan
On Wed, 16 Feb 2000, Jeffery A. White wrote:
> W Bauske wrote:
> >
> > I don't think it's the compiler if the memory stays allocated
> > between job runs. More likely a kernel leak of some sort.
> >
> > What level of kernel are you running?
> >
> > Some are known to have memory leaks in them in the 2.2.x
> > series.
> >
> > Also, the job does terminate, correct? If not, then it
> > could be the compiler. By that I mean no zombies and
> > such left around hanging onto memory? No processes were
> > spawned by your code that didn't die correctly?
> > Try "ps auwx" or your favorite args to see what's actually
> > still running on your systems. I run parallel codes using
> > PVM all the time without problems using DS10's.
> >
> > Wes
> >
> > Brian Pomerantz wrote:
> > >
> > > On Wed, Feb 16, 2000 at 05:43:30PM +0000, Nelson Teixeira Brito wrote:
> > > > On Wed, 16 Feb 2000, Jeffery A. White wrote:
> > > >
> > > > > Help!,
> > > > >
> > > > > I have assembled an 11 node Beowulf computer
> > > > > using Microway Screamer LX machines. These machines
> > > > > use the 21164A chip and have 8 Mb of cache. Each machine
> > > > > is configured with 1 Gb of RAM. We are running RedHat 6.0.
> > > > >
> > > > > The problem is that we have ported a FORTRAN 77 code using
> > > > > ver. 1.0 of the DEC Linux FORTRAN compiler and are having
> > > --------------------------
> > >
> > > > > severe memory depeletion problems. The code does not use
> > > > > any sort of dynamic memory allocation, all memory is
> > > > > allocated statically at compile time. The code runs to
> > > > > completion fine gives the right answer but the memory used
> > > > > during the job is not being de-allocated after the job completes. This
> > > > > code has been run on SGI , Cray, Sun, and
> > > > > HP Unix O/S machines without every running into this problem
> > > > > before.
> > > >
> > > > Just a sugestion; why don't you try fortran compiler for linux alpha?
> > > > I'm not an expert but i think f77 has not dynamic memory allocation
> > > > (please correct me)!
> > > > Got to http://www.digital.com/fortran/linux/ and then click on
> > > > Technology Enthusiast page link.
> > > >
> > >
> > > Sounds like he is.
> > >
> > > BAPper
> > >
> > > --
> > > 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
> >
> > --
> > 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
>
> The jobs run to completeing successfully, I'll have to check
> ont he kernel info.
>
> --
> 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/
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 18:04 ` Jeffery A. White
2000-02-16 18:12 ` Mohan
@ 2000-02-16 18:19 ` W Bauske
1 sibling, 0 replies; 25+ messages in thread
From: W Bauske @ 2000-02-16 18:19 UTC (permalink / raw)
To: axp-list
Keep in mind a main program can complete but leave child
processes hanging around consuming resources. You must be
using some sort of parallelization package and those can
easily spawn children, both on a local machine and on remote
systems you're trying to run on in your config.
Wes
"Jeffery A. White" wrote:
>
> W Bauske wrote:
> >
> > I don't think it's the compiler if the memory stays allocated
> > between job runs. More likely a kernel leak of some sort.
> >
> > What level of kernel are you running?
> >
> > Some are known to have memory leaks in them in the 2.2.x
> > series.
> >
> > Also, the job does terminate, correct? If not, then it
> > could be the compiler. By that I mean no zombies and
> > such left around hanging onto memory? No processes were
> > spawned by your code that didn't die correctly?
> > Try "ps auwx" or your favorite args to see what's actually
> > still running on your systems. I run parallel codes using
> > PVM all the time without problems using DS10's.
> >
> > Wes
> >
> > Brian Pomerantz wrote:
> > >
> > > On Wed, Feb 16, 2000 at 05:43:30PM +0000, Nelson Teixeira Brito wrote:
> > > > On Wed, 16 Feb 2000, Jeffery A. White wrote:
> > > >
> > > > > Help!,
> > > > >
> > > > > I have assembled an 11 node Beowulf computer
> > > > > using Microway Screamer LX machines. These machines
> > > > > use the 21164A chip and have 8 Mb of cache. Each machine
> > > > > is configured with 1 Gb of RAM. We are running RedHat 6.0.
> > > > >
> > > > > The problem is that we have ported a FORTRAN 77 code using
> > > > > ver. 1.0 of the DEC Linux FORTRAN compiler and are having
> > > --------------------------
> > >
> > > > > severe memory depeletion problems. The code does not use
> > > > > any sort of dynamic memory allocation, all memory is
> > > > > allocated statically at compile time. The code runs to
> > > > > completion fine gives the right answer but the memory used
> > > > > during the job is not being de-allocated after the job completes. This
> > > > > code has been run on SGI , Cray, Sun, and
> > > > > HP Unix O/S machines without every running into this problem
> > > > > before.
> > > >
> > > > Just a sugestion; why don't you try fortran compiler for linux alpha?
> > > > I'm not an expert but i think f77 has not dynamic memory allocation
> > > > (please correct me)!
> > > > Got to http://www.digital.com/fortran/linux/ and then click on
> > > > Technology Enthusiast page link.
> > > >
> > >
> > > Sounds like he is.
> > >
> > > BAPper
> > >
> > > --
> > > 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
> >
> > --
> > 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
>
> The jobs run to completeing successfully, I'll have to check
> ont he kernel info.
>
> --
> 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/
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 18:12 ` Mohan
@ 2000-02-16 18:23 ` W Bauske
2000-02-16 18:34 ` Nelson Teixeira Brito
0 siblings, 1 reply; 25+ messages in thread
From: W Bauske @ 2000-02-16 18:23 UTC (permalink / raw)
To: axp-list
I haven't looked at MPICH lately but if it uses control
daemons on each node, it could be the source of memory
consumption. I've seen PVM daemons do it if your program
improperly sends messages and no other process bothers
to read the message. They just keep piling up until you
run out of memory. Watch those daemons....
Wes
Mohan wrote:
>
> Hi,
> I am running kernel v2.2.14 on a ds20 with MPICH application
> compiled using the compaq fortran compiler w/o any memory
> leaks.
> I am also suspecting "kernel leaks"
>
> Mohan
>
> On Wed, 16 Feb 2000, Jeffery A. White wrote:
>
> > W Bauske wrote:
> > >
> > > I don't think it's the compiler if the memory stays allocated
> > > between job runs. More likely a kernel leak of some sort.
> > >
> > > What level of kernel are you running?
> > >
> > > Some are known to have memory leaks in them in the 2.2.x
> > > series.
> > >
> > > Also, the job does terminate, correct? If not, then it
> > > could be the compiler. By that I mean no zombies and
> > > such left around hanging onto memory? No processes were
> > > spawned by your code that didn't die correctly?
> > > Try "ps auwx" or your favorite args to see what's actually
> > > still running on your systems. I run parallel codes using
> > > PVM all the time without problems using DS10's.
> > >
> > > Wes
> > >
> > > Brian Pomerantz wrote:
> > > >
> > > > On Wed, Feb 16, 2000 at 05:43:30PM +0000, Nelson Teixeira Brito wrote:
> > > > > On Wed, 16 Feb 2000, Jeffery A. White wrote:
> > > > >
> > > > > > Help!,
> > > > > >
> > > > > > I have assembled an 11 node Beowulf computer
> > > > > > using Microway Screamer LX machines. These machines
> > > > > > use the 21164A chip and have 8 Mb of cache. Each machine
> > > > > > is configured with 1 Gb of RAM. We are running RedHat 6.0.
> > > > > >
> > > > > > The problem is that we have ported a FORTRAN 77 code using
> > > > > > ver. 1.0 of the DEC Linux FORTRAN compiler and are having
> > > > --------------------------
> > > >
> > > > > > severe memory depeletion problems. The code does not use
> > > > > > any sort of dynamic memory allocation, all memory is
> > > > > > allocated statically at compile time. The code runs to
> > > > > > completion fine gives the right answer but the memory used
> > > > > > during the job is not being de-allocated after the job completes. This
> > > > > > code has been run on SGI , Cray, Sun, and
> > > > > > HP Unix O/S machines without every running into this problem
> > > > > > before.
> > > > >
> > > > > Just a sugestion; why don't you try fortran compiler for linux alpha?
> > > > > I'm not an expert but i think f77 has not dynamic memory allocation
> > > > > (please correct me)!
> > > > > Got to http://www.digital.com/fortran/linux/ and then click on
> > > > > Technology Enthusiast page link.
> > > > >
> > > >
> > > > Sounds like he is.
> > > >
> > > > BAPper
> > > >
> > > > --
> > > > 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
> > >
> > > --
> > > 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
> >
> > The jobs run to completeing successfully, I'll have to check
> > ont he kernel info.
> >
> > --
> > 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/
>
> --
> 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 18:23 ` W Bauske
@ 2000-02-16 18:34 ` Nelson Teixeira Brito
0 siblings, 0 replies; 25+ messages in thread
From: Nelson Teixeira Brito @ 2000-02-16 18:34 UTC (permalink / raw)
To: axp-list
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=US-ASCII, Size: 985 bytes --]
>
> I haven't looked at MPICH lately but if it uses control
> daemons on each node, it could be the source of memory
> consumption. I've seen PVM daemons do it if your program
> improperly sends messages and no other process bothers
> to read the message. They just keep piling up until you
> run out of memory. Watch those daemons....
>
>
> Wes
I don't know about mpich, i use mpi from lam and i don't
have this kind of problem with memory consumption. I have
some others with comunications...
Nelson
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´'´
"Je n'ecoute que les conseils du vent qui passe ..."
------------------------------------------------------
Nelson Brito |
Departamento de Quimica | Tel: 351-226082851
Faculdade de Ciencias | 351-226082827
R. do Campo Alegre, n 687 | Fax: 351-226082959
4169-007 Porto |
´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´'´
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 17:26 Memory leaks Jeffery A. White
2000-02-16 17:43 ` Nelson Teixeira Brito
@ 2000-02-16 19:48 ` Andy Bradford
2000-02-16 20:00 ` Jeffery A. White
2000-02-16 20:13 ` Jeffery A. White
1 sibling, 2 replies; 25+ messages in thread
From: Andy Bradford @ 2000-02-16 19:48 UTC (permalink / raw)
To: axp-list
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/ ===+
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 19:48 ` Andy Bradford
@ 2000-02-16 20:00 ` Jeffery A. White
2000-02-16 20:13 ` Jeffery A. White
1 sibling, 0 replies; 25+ messages in thread
From: Jeffery A. White @ 2000-02-16 20:00 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 1536 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
--
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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 19:48 ` Andy Bradford
2000-02-16 20:00 ` Jeffery A. White
@ 2000-02-16 20:13 ` Jeffery A. White
2000-02-16 20:19 ` Jeffery A. White
2000-02-16 20:50 ` Brian Pomerantz
1 sibling, 2 replies; 25+ messages in thread
From: Jeffery A. White @ 2000-02-16 20:13 UTC (permalink / raw)
To: axp-list
[-- 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 20:13 ` Jeffery A. White
@ 2000-02-16 20:19 ` Jeffery A. White
2000-02-16 20:45 ` Don Russell
2000-02-16 20:50 ` Brian Pomerantz
1 sibling, 1 reply; 25+ messages in thread
From: Jeffery A. White @ 2000-02-16 20:19 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 278 bytes --]
More info.
I am running the job in nohup and at the end of the output
stream is the following statement:
197.36user 26.48system 4:46.72elapsed 78%CPU (0avgtext+0avgdata
0maxresident)k
0inputs+0outputs (46008major+80116minor)pagefaults 0swaps
Can anyone translate this for me?
[-- 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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 20:19 ` Jeffery A. White
@ 2000-02-16 20:45 ` Don Russell
0 siblings, 0 replies; 25+ messages in thread
From: Don Russell @ 2000-02-16 20:45 UTC (permalink / raw)
To: axp-list
You might try "ipcs -a" to see if any shared memory
buffers are left laying around.
They will have a life of their own even after the process that
created them has gone.
--
+------------------------------+-----------------------------------+
| Don Russell | Internet: djr@mr.marconimed.com |
| Marconi Medical Systems | Voice: (440)-483-5726 |
| 595 Miner Road | Fax: (440) 483-5728 |
| Cleveland, Ohio, USA 44143 | |
+------------------------------+-----------------------------------+
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 20:13 ` Jeffery A. White
2000-02-16 20:19 ` Jeffery A. White
@ 2000-02-16 20:50 ` Brian Pomerantz
2000-02-16 21:14 ` Jeffery A. White
1 sibling, 1 reply; 25+ messages in thread
From: Brian Pomerantz @ 2000-02-16 20:50 UTC (permalink / raw)
To: axp-list
On Wed, Feb 16, 2000 at 03:13:12PM -0500, Jeffery A. White wrote:
>
> 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
>
If you look at the second line from free on both runs, the first
number is the amount of memory actually being used by kernel/programs
(minus buffer and cache) and the second number is the amount of
"free" memory that can be reclaimed if need be. If you run your
program a few more times and look at this second line, it should be
about the same on the last two runs. There will probably be some swap
used after a while but it should stabilize and not try to claim more.
If you run your program several times and swap continues to grow, then
you have a problem. There is a way to poke the proc file system to
tell the kernel max buffer and cache usage which could minimize swap
usage a little more, but I don't recall how to do this off the top of
my head. The tradeoff there is you'll still have around the same
amount of disk I/O if you are writing a lot to disk and using swap is
probably faster than writing dirty pages to disk. I would say from
these results you probably don't have a memory leak, but you should
run your program a few more times to watch the behavior of your swap
usage.
BAPper
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
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
0 siblings, 2 replies; 25+ messages in thread
From: Jeffery A. White @ 2000-02-16 21:14 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 4065 bytes --]
Brian Pomerantz wrote:
>
> On Wed, Feb 16, 2000 at 03:13:12PM -0500, Jeffery A. White wrote:
> >
> > 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
> >
>
> If you look at the second line from free on both runs, the first
> number is the amount of memory actually being used by kernel/programs
> (minus buffer and cache) and the second number is the amount of
> "free" memory that can be reclaimed if need be. If you run your
> program a few more times and look at this second line, it should be
> about the same on the last two runs. There will probably be some swap
> used after a while but it should stabilize and not try to claim more.
> If you run your program several times and swap continues to grow, then
> you have a problem. There is a way to poke the proc file system to
> tell the kernel max buffer and cache usage which could minimize swap
> usage a little more, but I don't recall how to do this off the top of
> my head. The tradeoff there is you'll still have around the same
> amount of disk I/O if you are writing a lot to disk and using swap is
> probably faster than writing dirty pages to disk. I would say from
> these results you probably don't have a memory leak, but you should
> run your program a few more times to watch the behavior of your swap
> usage.
>
> BAPper
>
I am a little confused by what you have said above
The first number (under the total column) would appear to me
to be constant and be the total memory on the machine.
The second number (under the used column) I though was the
memory currently in use.
The third number (under the free column) I thought was the
memory currently availble.
I guess I don't uderstand what swap means in this context. I
thought if swap "used" becomes non-zero that I am reading and
writting to disk to make up for the memory I don't have which would be
death to my throughput, not to mention my floating point.
I tried you suggestion about multiple jobs in succesion and I
get from free after the first job ends
total used free shared buffers
cached
Mem: 1035416 609352 426064 15128 254800
300840
-/+ buffers/cache: 53712 981704
Swap: 2094560 0 2094560
While the second job runs I get
total used free shared buffers
cached
Mem: 1035416 811648 223768 18584 254800
301768
-/+ buffers/cache: 255080 780336
Swap: 2094560 0 2094560
After the second job ends I get
total used free shared buffers
cached
Mem: 1035416 609568 425848 15128 254920
300840
-/+ buffers/cache: 53808 981608
Swap: 2094560 0 2094560
While the third job runs I get
total used free shared buffers
cached
Mem: 1035416 841784 193632 18872 254920
302016
-/+ buffers/cache: 284848 750568
Swap: 2094560 0 2094560
After the third job ends I get
total used free shared buffers
cached
Mem: 1035416 609520 425896 15128 254920
300840
-/+ buffers/cache: 53760 981656
Swap: 2094560 0 2094560
I guess what I don't uderstand is why the free does not every
go back up to near the total number when the job completes its
execution.
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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 21:14 ` Jeffery A. White
@ 2000-02-16 21:19 ` David Singleton
2000-02-16 21:31 ` Phillip Ezolt
1 sibling, 0 replies; 25+ messages in thread
From: David Singleton @ 2000-02-16 21:19 UTC (permalink / raw)
To: axp-list
> I guess what I don't uderstand is why the free does not every
> go back up to near the total number when the job completes its
> execution.
It does!!
> get from free after the first job ends
> -/+ buffers/cache: 53712 981704
> While the second job runs I get
> -/+ buffers/cache: 255080 780336
> After the second job ends I get
> -/+ buffers/cache: 53808 981608
> While the third job runs I get
> -/+ buffers/cache: 284848 750568
> After the third job ends I get
> -/+ buffers/cache: 53760 981656
------
David.Singleton@anu.edu.au ANU Supercomputer Facility
Phone: +61 2 6249 4389 Australian National University
Fax: +61 2 6279 8199 Canberra, ACT, 0200, Australia
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
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
1 sibling, 1 reply; 25+ messages in thread
From: Phillip Ezolt @ 2000-02-16 21:31 UTC (permalink / raw)
To: axp-list
Jeff,
Linux looks things a little differently than MSDOS/Windows does.
In an ideal Linux system, you want to have NO free memory. Linux uses
all extra memory as a disk cache. When user programs request memory,
it will give up some of some the disk cache so that they can use it.
Your application probably does about 500MB of disk I/O. Linux keeps this
in its buffers. (You have 250MB in buffers, & 300MB in the page cache)
No free memory is a GOOD thing. Linux will give up buffers when
programs need it. When they don't Linux will use the memory to make
the system faster.
--Phil
Compaq: High Performance Server Division/Benchmark Performance Engineering
---------------- Alpha, The Fastest Processor on Earth --------------------
Phillip.Ezolt@compaq.com |C|O|M|P|A|Q| ezolt@perf.zko.dec.com
------------------- See the results at www.spec.org -----------------------
On Wed, 16 Feb 2000, Jeffery A. White wrote:
> Brian Pomerantz wrote:
> >
> > On Wed, Feb 16, 2000 at 03:13:12PM -0500, Jeffery A. White wrote:
> > >
> > > 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
> > >
> >
> > If you look at the second line from free on both runs, the first
> > number is the amount of memory actually being used by kernel/programs
> > (minus buffer and cache) and the second number is the amount of
> > "free" memory that can be reclaimed if need be. If you run your
> > program a few more times and look at this second line, it should be
> > about the same on the last two runs. There will probably be some swap
> > used after a while but it should stabilize and not try to claim more.
> > If you run your program several times and swap continues to grow, then
> > you have a problem. There is a way to poke the proc file system to
> > tell the kernel max buffer and cache usage which could minimize swap
> > usage a little more, but I don't recall how to do this off the top of
> > my head. The tradeoff there is you'll still have around the same
> > amount of disk I/O if you are writing a lot to disk and using swap is
> > probably faster than writing dirty pages to disk. I would say from
> > these results you probably don't have a memory leak, but you should
> > run your program a few more times to watch the behavior of your swap
> > usage.
> >
> > BAPper
> >
>
> I am a little confused by what you have said above
> The first number (under the total column) would appear to me
> to be constant and be the total memory on the machine.
> The second number (under the used column) I though was the
> memory currently in use.
> The third number (under the free column) I thought was the
> memory currently availble.
>
> I guess I don't uderstand what swap means in this context. I
> thought if swap "used" becomes non-zero that I am reading and
> writting to disk to make up for the memory I don't have which would be
> death to my throughput, not to mention my floating point.
>
> I tried you suggestion about multiple jobs in succesion and I
> get from free after the first job ends
>
> total used free shared buffers
> cached
> Mem: 1035416 609352 426064 15128 254800
> 300840
> -/+ buffers/cache: 53712 981704
> Swap: 2094560 0 2094560
>
> While the second job runs I get
>
> total used free shared buffers
> cached
> Mem: 1035416 811648 223768 18584 254800
> 301768
> -/+ buffers/cache: 255080 780336
> Swap: 2094560 0 2094560
>
> After the second job ends I get
>
> total used free shared buffers
> cached
> Mem: 1035416 609568 425848 15128 254920
> 300840
> -/+ buffers/cache: 53808 981608
> Swap: 2094560 0 2094560
>
> While the third job runs I get
>
> total used free shared buffers
> cached
> Mem: 1035416 841784 193632 18872 254920
> 302016
> -/+ buffers/cache: 284848 750568
> Swap: 2094560 0 2094560
>
>
> After the third job ends I get
> total used free shared buffers
> cached
> Mem: 1035416 609520 425896 15128 254920
> 300840
> -/+ buffers/cache: 53760 981656
> Swap: 2094560 0 2094560
>
> I guess what I don't uderstand is why the free does not every
> go back up to near the total number when the job completes its
> execution.
>
> 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/
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 21:31 ` Phillip Ezolt
@ 2000-02-16 21:38 ` Jeffery A. White
2000-02-16 21:43 ` Phillip Ezolt
0 siblings, 1 reply; 25+ messages in thread
From: Jeffery A. White @ 2000-02-16 21:38 UTC (permalink / raw)
To: axp-list
[-- Attachment #1: Type: text/plain, Size: 5925 bytes --]
Phillip Ezolt wrote:
>
> Jeff,
> Linux looks things a little differently than MSDOS/Windows does.
>
> In an ideal Linux system, you want to have NO free memory. Linux uses
> all extra memory as a disk cache. When user programs request memory,
> it will give up some of some the disk cache so that they can use it.
>
> Your application probably does about 500MB of disk I/O. Linux keeps this
> in its buffers. (You have 250MB in buffers, & 300MB in the page cache)
>
> No free memory is a GOOD thing. Linux will give up buffers when
> programs need it. When they don't Linux will use the memory to make
> the system faster.
>
> --Phil
>
> Compaq: High Performance Server Division/Benchmark Performance Engineering
> ---------------- Alpha, The Fastest Processor on Earth --------------------
> Phillip.Ezolt@compaq.com |C|O|M|P|A|Q| ezolt@perf.zko.dec.com
> ------------------- See the results at www.spec.org -----------------------
>
> On Wed, 16 Feb 2000, Jeffery A. White wrote:
>
> > Brian Pomerantz wrote:
> > >
> > > On Wed, Feb 16, 2000 at 03:13:12PM -0500, Jeffery A. White wrote:
> > > >
> > > > 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
> > > >
> > >
> > > If you look at the second line from free on both runs, the first
> > > number is the amount of memory actually being used by kernel/programs
> > > (minus buffer and cache) and the second number is the amount of
> > > "free" memory that can be reclaimed if need be. If you run your
> > > program a few more times and look at this second line, it should be
> > > about the same on the last two runs. There will probably be some swap
> > > used after a while but it should stabilize and not try to claim more.
> > > If you run your program several times and swap continues to grow, then
> > > you have a problem. There is a way to poke the proc file system to
> > > tell the kernel max buffer and cache usage which could minimize swap
> > > usage a little more, but I don't recall how to do this off the top of
> > > my head. The tradeoff there is you'll still have around the same
> > > amount of disk I/O if you are writing a lot to disk and using swap is
> > > probably faster than writing dirty pages to disk. I would say from
> > > these results you probably don't have a memory leak, but you should
> > > run your program a few more times to watch the behavior of your swap
> > > usage.
> > >
> > > BAPper
> > >
> >
> > I am a little confused by what you have said above
> > The first number (under the total column) would appear to me
> > to be constant and be the total memory on the machine.
> > The second number (under the used column) I though was the
> > memory currently in use.
> > The third number (under the free column) I thought was the
> > memory currently availble.
> >
> > I guess I don't uderstand what swap means in this context. I
> > thought if swap "used" becomes non-zero that I am reading and
> > writting to disk to make up for the memory I don't have which would be
> > death to my throughput, not to mention my floating point.
> >
> > I tried you suggestion about multiple jobs in succesion and I
> > get from free after the first job ends
> >
> > total used free shared buffers
> > cached
> > Mem: 1035416 609352 426064 15128 254800
> > 300840
> > -/+ buffers/cache: 53712 981704
> > Swap: 2094560 0 2094560
> >
> > While the second job runs I get
> >
> > total used free shared buffers
> > cached
> > Mem: 1035416 811648 223768 18584 254800
> > 301768
> > -/+ buffers/cache: 255080 780336
> > Swap: 2094560 0 2094560
> >
> > After the second job ends I get
> >
> > total used free shared buffers
> > cached
> > Mem: 1035416 609568 425848 15128 254920
> > 300840
> > -/+ buffers/cache: 53808 981608
> > Swap: 2094560 0 2094560
> >
> > While the third job runs I get
> >
> > total used free shared buffers
> > cached
> > Mem: 1035416 841784 193632 18872 254920
> > 302016
> > -/+ buffers/cache: 284848 750568
> > Swap: 2094560 0 2094560
> >
> >
> > After the third job ends I get
> > total used free shared buffers
> > cached
> > Mem: 1035416 609520 425896 15128 254920
> > 300840
> > -/+ buffers/cache: 53760 981656
> > Swap: 2094560 0 2094560
> >
> > I guess what I don't uderstand is why the free does not every
> > go back up to near the total number when the job completes its
> > execution.
> >
> > 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/
>
> --
> 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
Phil,
Sorry I guess I spent too many years on Crays and am a bit
late to these types of machines and am a bit paranoid about
memory useage. Thanks for clearing this up!
--
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
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 21:38 ` Jeffery A. White
@ 2000-02-16 21:43 ` Phillip Ezolt
2000-02-17 2:53 ` Greg Lindahl
0 siblings, 1 reply; 25+ messages in thread
From: Phillip Ezolt @ 2000-02-16 21:43 UTC (permalink / raw)
To: axp-list
> Phil,
>
> Sorry I guess I spent too many years on Crays and am a bit
> late to these types of machines and am a bit paranoid about
> memory useage. Thanks for clearing this up!
Glad to help.
BTW, I didn't mean to insult you, by calling a Cray user a
MSDOS/Windows user. ;-)
--Phil
Compaq: High Performance Server Division/Benchmark Performance Engineering
---------------- Alpha, The Fastest Processor on Earth --------------------
Phillip.Ezolt@compaq.com |C|O|M|P|A|Q| ezolt@perf.zko.dec.com
------------------- See the results at www.spec.org -----------------------
On Wed, 16 Feb 2000, Jeffery A. White wrote:
> Phillip Ezolt wrote:
> >
> > Jeff,
> > Linux looks things a little differently than MSDOS/Windows does.
> >
> > In an ideal Linux system, you want to have NO free memory. Linux uses
> > all extra memory as a disk cache. When user programs request memory,
> > it will give up some of some the disk cache so that they can use it.
> >
> > Your application probably does about 500MB of disk I/O. Linux keeps this
> > in its buffers. (You have 250MB in buffers, & 300MB in the page cache)
> >
> > No free memory is a GOOD thing. Linux will give up buffers when
> > programs need it. When they don't Linux will use the memory to make
> > the system faster.
> >
> > --Phil
> >
> > Compaq: High Performance Server Division/Benchmark Performance Engineering
> > ---------------- Alpha, The Fastest Processor on Earth --------------------
> > Phillip.Ezolt@compaq.com |C|O|M|P|A|Q| ezolt@perf.zko.dec.com
> > ------------------- See the results at www.spec.org -----------------------
> >
> > On Wed, 16 Feb 2000, Jeffery A. White wrote:
> >
> > > Brian Pomerantz wrote:
> > > >
> > > > On Wed, Feb 16, 2000 at 03:13:12PM -0500, Jeffery A. White wrote:
> > > > >
> > > > > 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
> > > > >
> > > >
> > > > If you look at the second line from free on both runs, the first
> > > > number is the amount of memory actually being used by kernel/programs
> > > > (minus buffer and cache) and the second number is the amount of
> > > > "free" memory that can be reclaimed if need be. If you run your
> > > > program a few more times and look at this second line, it should be
> > > > about the same on the last two runs. There will probably be some swap
> > > > used after a while but it should stabilize and not try to claim more.
> > > > If you run your program several times and swap continues to grow, then
> > > > you have a problem. There is a way to poke the proc file system to
> > > > tell the kernel max buffer and cache usage which could minimize swap
> > > > usage a little more, but I don't recall how to do this off the top of
> > > > my head. The tradeoff there is you'll still have around the same
> > > > amount of disk I/O if you are writing a lot to disk and using swap is
> > > > probably faster than writing dirty pages to disk. I would say from
> > > > these results you probably don't have a memory leak, but you should
> > > > run your program a few more times to watch the behavior of your swap
> > > > usage.
> > > >
> > > > BAPper
> > > >
> > >
> > > I am a little confused by what you have said above
> > > The first number (under the total column) would appear to me
> > > to be constant and be the total memory on the machine.
> > > The second number (under the used column) I though was the
> > > memory currently in use.
> > > The third number (under the free column) I thought was the
> > > memory currently availble.
> > >
> > > I guess I don't uderstand what swap means in this context. I
> > > thought if swap "used" becomes non-zero that I am reading and
> > > writting to disk to make up for the memory I don't have which would be
> > > death to my throughput, not to mention my floating point.
> > >
> > > I tried you suggestion about multiple jobs in succesion and I
> > > get from free after the first job ends
> > >
> > > total used free shared buffers
> > > cached
> > > Mem: 1035416 609352 426064 15128 254800
> > > 300840
> > > -/+ buffers/cache: 53712 981704
> > > Swap: 2094560 0 2094560
> > >
> > > While the second job runs I get
> > >
> > > total used free shared buffers
> > > cached
> > > Mem: 1035416 811648 223768 18584 254800
> > > 301768
> > > -/+ buffers/cache: 255080 780336
> > > Swap: 2094560 0 2094560
> > >
> > > After the second job ends I get
> > >
> > > total used free shared buffers
> > > cached
> > > Mem: 1035416 609568 425848 15128 254920
> > > 300840
> > > -/+ buffers/cache: 53808 981608
> > > Swap: 2094560 0 2094560
> > >
> > > While the third job runs I get
> > >
> > > total used free shared buffers
> > > cached
> > > Mem: 1035416 841784 193632 18872 254920
> > > 302016
> > > -/+ buffers/cache: 284848 750568
> > > Swap: 2094560 0 2094560
> > >
> > >
> > > After the third job ends I get
> > > total used free shared buffers
> > > cached
> > > Mem: 1035416 609520 425896 15128 254920
> > > 300840
> > > -/+ buffers/cache: 53760 981656
> > > Swap: 2094560 0 2094560
> > >
> > > I guess what I don't uderstand is why the free does not every
> > > go back up to near the total number when the job completes its
> > > execution.
> > >
> > > 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/
> >
> > --
> > 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
>
> Phil,
>
> Sorry I guess I spent too many years on Crays and am a bit
> late to these types of machines and am a bit paranoid about
> memory useage. Thanks for clearing this up!
>
> --
> 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/
^ permalink raw reply [flat|nested] 25+ messages in thread
* RE: Memory leaks
2000-02-16 21:43 ` Phillip Ezolt
@ 2000-02-17 2:53 ` Greg Lindahl
0 siblings, 0 replies; 25+ messages in thread
From: Greg Lindahl @ 2000-02-17 2:53 UTC (permalink / raw)
To: axp-list
> BTW, I didn't mean to insult you, by calling a Cray user a
> MSDOS/Windows user. ;-)
Heh. That's funny.
In classic Cray terms, the disk cache mostly lived on SSD, which isn't
really visible to users.
-- g
^ permalink raw reply [flat|nested] 25+ messages in thread
* Re: Memory leaks
2000-02-16 18:11 ` Michal Jaegermann
@ 2000-02-17 8:37 ` Sean Hunter
0 siblings, 0 replies; 25+ messages in thread
From: Sean Hunter @ 2000-02-17 8:37 UTC (permalink / raw)
To: axp-list
On Wed, Feb 16, 2000 at 11:11:28AM -0700, Michal Jaegermann wrote:
> Jeffery A. White wrote:
> >
> > I am using the linux DEC fortran compiler for the alpha.
> > I have also tried the tru64 DEC fortran compiler with the
> > -nonshared option envoked so that the executable can be run
> > on the linux box. It has the same problem as the linux
> > compiled code run on the linux box.
>
> How did you decide that you really have memory leaks. The first
> line of output from 'free'? Maybe you are just seeing a memory
> used in buffers? Are you sure that this is not something covered
> by a section 6.4 in /usr/doc/FAQ/?
>
> I am not saying that your trouble is real; only that this is not
> clear from what you posted so far.
This is a very good point. Watching "procinfo -d" while the processes
are running should give you a good idea of how the kernel is handling
the memory, buffers swap etc.
Sean
^ permalink raw reply [flat|nested] 25+ messages in thread
end of thread, other threads:[~2000-02-17 8:38 UTC | newest]
Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox