[Gdal-dev] gdal memory load
Marco Vieira
marco_vieira at uk2.net
Mon Sep 12 19:51:03 EDT 2005
Hi list.
I perceived that mapserver was not freeing memory after requests then i
tested the memory load in some situations and noticed that this only
happen in with raster databases (with gdal procedures). I tried than the
same with gdalwarp command and got the same.
My test:
gdalwarp -s_srs +proj=tmerc +ellps=intl +k_0=0.9996 +x_0=500000
+y_0=10000000 +lat_0=0 +lon_0=-45 -t_srs +proj=latlong +ellps=WGS84
foo.tif foobar.tif
(foo.tif has 597M)
free command before gdalwarp:
total used free shared buffers cached
Mem: 906736 194520 712216 0 10520 98032
-/+ buffers/cache: 85968 820768
Swap: 2249060 0 2249060
----------
free during gdalwarp:
total used free shared buffers cached
Mem: 906736 902752 3984 0 1364 746280
-/+ buffers/cache: 155108 751628
Swap: 2249060 716 2248344
----------
free after gdalwarp:
total used free shared buffers cached
Mem: 906736 845860 60876 0 1052 751748
-/+ buffers/cache: 93060 813676
Swap: 2249060 716 2248344
How can I flush memory cached by gdal lib (specially after mapserver
requests)?
my system:
gdal 1.3.0
geos 1.1.4
mapserv 4.6.1
Linux 2.6.8-2-386 (debian)
gcc 4.0.1
Thanks.
Marco Vieira.
Fone: + 55 21 9499-6800
marco_vieira at uk2.net
More information about the Gdal-dev
mailing list