[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why linux memory management isn't clever, always hold large memroy?



On Sun, 8 Oct 2006 11:51:46 +0800
bowen <linuzboy@gmail.com> wrote:

> a little memory). After a long time, the mysql load process complete
> and I restart the mysqld daemon, but the memory does still hold large
> memory.

How much does mysqld take up now? From what you've said here it would
seem that linus is duing the right thing. It's caching a great deal of
RAM in the hopes that it would be reused again. If not, then the memory
should be reallocated to something else (disk buffers, which are very
low at the moment) so long as there is a demand for it. Otherwise, the
memory is just being wasted.

> Why linux does not release the memory again ? Is there any way that I
> can free the memory without reboot machine?

It'll reallocate itself as soon as you request the kernel do something
else with the memory, such as loading firefox or something.



-- 
------------------------------------------------------------------------
David E. Fox                              Thanks for letting me
dfox@tsoft.com                            change magnetic patterns
dfox@m206-157.dsl.tsoft.com               on your hard disk.
-----------------------------------------------------------------------



Reply to: