Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used this command to shutdown MySQL, however it seems the amount of free memory on my box has not changed?

That seems to odd.

/usr/local/webserver/mysql/bin/mysqladmin -u ${mysql_username} -p${mysql_password} -S /data0/mysql/mysql.sock shutdown

Does anyone know why the free memory might not change very much after unloading MySQL?

share|improve this question
up vote 0 down vote accepted

Linux systems always try to use a much ram as available for various functions like caching of executables our even just page reads from disk. That's what you bought your fast RAM for after all.

You can find out more about your system by doing a

cat /proc/meminfo

More info in this helpful blog post If you find out a lot is used in cache then you don't have to worry about the system. Like Kormoc says the difference is no doubt the fact that certain pages on disk are still cached and will stay cached for a while until the system needs memory or some other settings deem it unnecessary to cache for read-access anymore.

share|improve this answer

Memory management is a complex beast. If you are on a linux or similar platform, you might be seeing differences because of the page cache. This is a good writeup of what the page cache is.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.