tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* run time memory allocation in FORTRAN
@ 1998-02-03 15:01 lombardi emanuele
  0 siblings, 0 replies; only message in thread
From: lombardi emanuele @ 1998-02-03 15:01 UTC (permalink / raw)
  To: tru64-unix-managers

Hi managers!

I'm trying the way to have run-time allocation (and de-allocation) of memory
in FORTRAN 
(AS 4100 Dunix 4.0b 512Mb 3CPU) 

I'm using the fortran malloc, falloc and free routines.

My main program does the following 
loop:
	ask me for the number of byte I want to to alloc,
	then actually alloc (by malloc or falloc),
	then writes data to the obtained memory
	then frees the memory itself.
end loop

While running the above fortran program, I watched at the memory usage
in my machine using ps and pvis.

The memory parameters I traced are:
virtual process size VSZ and resident process size RSS.

It seems to me that the execution of the malloc increments the values of the sole VSZ
while RSS grows up when the memory locations (provided by malloc) are actually written.

The amazing (to me) thing is that none of the VSZ and RSS go back to lover values 
when the memory is freed (by free routine). The above values grow when a
bigger region of memory is requested, but remain stable when is
requested a smaller region.

Can you help me in beeing sure that I actually free the no-more-usefull
memory ?

Thanks from Italy,
Emanuele

-- 
 Emanuele Lombardi
 mail:  AMB-GEM-CLIM ENEA Casaccia
        I-00060 S.M. di Galeria (RM) 
        ITALY
 mailto:lele@mantegna.casaccia.enea.it
 tel	+39 6 30483366
 fax	+39 6 30483591

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

only message in thread, other threads:[~1998-02-03 15:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-03 15:01 run time memory allocation in FORTRAN lombardi emanuele

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