> 
> This is a multi-part message in MIME format...
> 
> ------------=_1017501743-19779-347
> Content-Type: text/plain;
>   charset="iso-8859-1"
> Content-Transfer-Encoding: 8bit
> 
> I have installed openoffice.org in mdk 8.1. Before starting it the free was 
> as follows.
> [root@localhost lvgandhi]# free
>              total       used       free     shared    buffers     cached
> Mem:        254528     148648     105880        128       4372      71012
> -/+ buffers/cache:      73264     181264
> Swap:       136544          0     136544

High 'frees' like that are usually the result of a large application 
closing - eventually that free space si returned to cache or disk buffers,
or given back to applications, depending on your usage.

> After opening opening openoffice and a word doc in it I got as follows
> [root@localhost lvgandhi]# free
>              total       used       free     shared    buffers     cached
> Mem:        254528     248528       6000       9716       4960     131236
> -/+ buffers/cache:     112332     142196
> Swap:       136544       2948     133596

Well, that's normal - open office is a rather big application, so it'll grab
what is available. 

> Mem:        254528     248368       6160       9716       4960     131236
> -/+ buffers/cache:     112172     142356
> Swap:       136544       2948     133596
> 
> As one can see memory is not freed after closing it. Does it mean there is 
> memory leak or any other problem. Anybody can explain this phenomenon?

I'd say that's perfectly normal behavior. That's what the page cache is 
for (last # on the right): it caches frequently used memory pages in 
case they may be used again. If for instance you rerun openoffice, that
should translate to quicker load time the next time you start it. 
Otherwise, that memory is reused for other things, depending on your
usage. For instance, if you have an app that makes frequent disk
seeks, the system will begin to increase the memory for disk buffers.





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to