Re: Fwd: Re: System Command Not Executing

From: Michael Notaro <mnotaro_at_nyahnyahspammersnyahnyah>
Date: Tue Sep 04 2012 - 11:09:20 MDT

I was told that the system has 8GB of RAM installed on each node.

compute-0-0 >free -m
 total used free shared buffers cached
Mem: 7990 879 7111 0 71 373
-/+ buffers/cache: 434 7556
Swap: 996 41 954

If the script has enough memory to create the arrays, then it doesn't
make sense to skip over the system commands.

Thanks, Michael

On 09/04/12, Gerry Creager wrote:
> Michael, to see how much memory, do &#39;free -m&#39; and send the results (or interpret memory in MB).
>
> gerry
>
> On Tue, Sep 4, 2012 at 9:36 AM, Michael Notaro <mnotaro@wisc.edu <mnotaro@wisc.edu')" target="1">mnotaro@wisc.edu> wrote:
>
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> >
> >
> >
> > ---------- Forwarded message ----------
> > From: Michael Notaro <http://www.ncl.ucar.edu/(javascript:main.compose('new', 't=mnotaro_at_wisc.edu>>
> > To: Mary Haley <haley@ucar.edu <haley@ucar.edu>>
> > Cc: kdbraun@wisc.edu <kdbraun@wisc.edu>
> > Date: Tue, 04 Sep 2012 09:06:23 -0500
> > Subject: Re: [ncl-talk] System Command Not Executing
> > Mary,
> >
> > Yes, that script works fine. Also, the one below in which I comment
> > out some of the array lines. It is only when I use a lot of memory
> > that the system lines are ignored.
> >
> > Sahale is linux.
> >
> > Kevin, how much memory does it have?
> >
> > Thanks,
> > Michael
> >
> >
> >
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
> > begin
> >
> > nyr=20
> >
> > maxt=new((/365*nyr+5,302,121/),short)
> > mint=new((/365*nyr+5,302,121/),short)
> > pcp=new((/365*nyr+5,302,121/),short)
> >
> > system("date")
> >
> > snowd=new((/365*nyr+5,302,121/),float) ; cm
> > ;swe=new((/365*nyr+5,302,121/),float) ; mm
> > ;cover=new((/365*nyr+5,302,121/),float) ; fraction
> > ;snowfall=new((/365*nyr+5,302,121/),float) ; mm
> >
> > system("date")
> >
> > end
> >
> >
> >
> >
> > On 09/04/12, Mary Haley wrote:
> > > Hi Michael,
> > >
> > > Out of curiosity, do the date commands show up if you free some of the arrays?
> > >
> > > That is, if you add a delete command:
> > >
> > > maxt=new((/365*nyr+5,302,121/),float)
> > > mint=new((/365*nyr+5,302,121/),float)
> > > pcp=new((/365*nyr+5,302,121/),float)
> > >
> > > system("date")
> > >
> > > delete(maxt) ; or, if you have V6.0.0, delete([/maxt,mint,pcp/])
> > > delete(mint)
> > > delete(pcp)
> > >
> > > snowd=new((/365*nyr+5,302,121/),float)
> > > swe=new((/365*nyr+5,302,121/),float)
> > >
> > > system("date")
> > >
> > >
> > > ---
> > >
> > > What kind of system is this on and how much memory do you have?
> > >
> > > --Mary
> > >
> > > On Sep 3, 2012, at 10:56 PM, Michael Notaro wrote:
> > >
> > > > Thanks. Likely the results depend on the memory of the computer you are using.
> > > > On mine, it doesn&#39;t work.
> > > >
> > > > My script is able to create these large arrays just fine but never executes the system
> > > > commands.
> > > >
> > > >
> > > >
> > > >
> > > > On 09/03/12, donna Cote <d-cote@tamu.edu <d-cote@tamu.edu>> wrote:
> > > >> Michael, I do not see the same results you seems to be getting. Hope you
> > > >>
> > > >> [dcote ~]$ ncl michael-test.ncl
> > > >> Copyright (C) 1995-2011 - All Rights Reserved
> > > >> University Corporation for Atmospheric Research
> > > >> NCAR Command Language Version 6.0.0
> > > >> The use of this software is governed by a License Agreement.
> > > >> See <a href=) for more details.
> > > >> Mon Sep 3 21:03:46 CDT 2012
> > > >> Mon Sep 3 21:04:50 CDT 2012
> > > >> [dcote ~]$
> > > >>
> > > >> This is what I see after adding these two lines:
> > > >> print("showing system date before creating snowd and swe arrays")
> > > >> and
> > > >> print("showing system date after creating snowd and swe arrays")
> > > >>
> > > >> [dcote ~]$ ncl michael-test.ncl
> > > >> Copyright (C) 1995-2011 - All Rights Reserved
> > > >> University Corporation for Atmospheric Research
> > > >> NCAR Command Language Version 6.0.0
> > > >> The use of this software is governed by a License Agreement.
> > > >> See http://www.ncl.ucar.edu/ for more details.
> > > >> (0) showing system date before creating snowd and swe arrays
> > > >> Mon Sep 3 21:08:30 CDT 2012
> > > >> (0) showing system date after creating snowd and swe arrays
> > > >> Mon Sep 3 21:08:43 CDT 2012
> > > >> [dcote ~]$
> > > >>
> > > >> On 9/3/12 4:20 PM, ncl-talk-request@ucar.edu <ncl-talk-request@ucar.edu> wrote:
> > > >> > Date: Mon, 03 Sep 2012 14:27:47 -0500
> > > >> > From: Michael Notaro<mnotaro@wisc.edu <mnotaro@wisc.edu>>
> > > >> > Subject: System Command Not Executing
> > > >> > To:"ncl-talk@ucar.edu <ncl-talk@ucar.edu> USERS" <ncl-talk@ucar.edu <ncl-talk@ucar.edu>>
> > > >> > Message-ID:<3795B7DD-89F8-49D1-A935-595C5FABDFA6@wisc.edu <3795B7DD-89F8-49D1-A935-595C5FABDFA6@wisc.edu>>
> > > >> > Content-Type: text/plain; CHARSET=US-ASCII
> > > >> >
> > > >> > When I run the script below, the system command, "date",
> > > >> > is only executed the first time and not the 2nd time.
> > > >> >
> > > >> > It seems when I create large arrays, NCL skips over any
> > > >> > system commands. Any suggestions how to resolve this issue?
> > > >> >
> > > >> > Michael
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> >
> > > >> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> > > >> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> > > >> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> > > >> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
> > > >> > begin
> > > >> >
> > > >> > nyr=20
> > > >> >
> > > >> > maxt=new((/365*nyr+5,302,121/),float)
> > > >> > mint=new((/365*nyr+5,302,121/),float)
> > > >> > pcp=new((/365*nyr+5,302,121/),float)
> > > >> >
> > > >> > system("date")
> > > >> >
> > > >> > snowd=new((/365*nyr+5,302,121/),float)
> > > >> > swe=new((/365*nyr+5,302,121/),float)
> > > >> >
> > > >> > system("date")
> > > >> >
> > > >> > end
> > > >> >
> > > >> _______________________________________________
> > > >> ncl-talk mailing list
> > > >> List instructions, subscriber options, unsubscribe:
> > > >> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> > > > _______________________________________________
> > > > ncl-talk mailing list
> > > > List instructions, subscriber options, unsubscribe:
> > > > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> >
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Sep 4 11:09:36 2012

This archive was generated by hypermail 2.1.8 : Mon Jan 14 2013 - 14:31:38 MST