Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Lund, Sweden

    Why is the swap used even when there is free memory?

    On my Debian Linux system (Linux 2.6.32) it looks like the swap is being used even though the system has plenty of free memory.

    The output from the 'free' command right now is:

                 total       used       free     shared    buffers     cached
    Mem:       2018208    1004984    1013224          0      21856   416768
    -/+ buffers/cache:     566360    1451848
    Swap:      4220920      71320    4149600
    One thing though, I recently killed Firefox and restarted it, I wonder if that might account for the large amount of free memory at this point in time?

  2. #2
    Join Date
    May 2004
    arch linux

    Yes, killing Firefox could definitely play a part in it. You can check the last paragraph in the following article for a brief explanation:

    Linux System Administrator's Guide - Using a swap space

    If needed, more detailed information can be found with a bit of online searching.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts