Sarge: plenty of free RAM, but uses swap

From: Hannes Mayer (debiandude_at_gmail.com)
Date: 01/30/05

  • Next message: p_s: "Re: sata drives"
    Date: Sun, 30 Jan 2005 14:32:59 +0100
    To: debian-user@lists.debian.org
    
    

    Hi all!

    I just noticed that sarge is using swap, but there is still plenty of
    memory free:
    # free
                 total used free shared buffers cached
    Mem: 1036532 441552 594980 0 23732 265492
    -/+ buffers/cache: 152328 884204
    Swap: 351752 0 351752

    # uname -a
    Linux debian 2.6.8-1-686 #1 Thu Nov 25 04:34:30 UTC 2004 i686 GNU/Linux

    My previous distro (Fedora2) didn't use swap at all. It just occupied
    almost all RAM, of course with lots of "cached" showing up at # free.
    How can one force it to use RAM first and then swap ?
    (I've google, but didn't find a solution)

    Thanks & best regards,
    Hannes.

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: p_s: "Re: sata drives"

    Relevant Pages

    • Re: Why is /var/tmp not mounted on swap?
      ... /tmp is NOT mounted on swap - it's tmpfs, ... That's only true if you think of 'swap' as being the stuff on disk. ... Most utilities (and tmpfs) consider 'swap' the unified view of all pages ... allocate pages in RAM first, then on disk, but I would not refer to ...
      (comp.unix.solaris)
    • Re: Physical Memory is beeing filled (RH7.1)
      ... >> sudden swap usage spikes basically bring the server to a halt. ... the bdflush parameters deal with when the kernel flushes ... -/+ buffers/cache: 52404 462288 ... -created tarfile from "ep-homedir" ...
      (RedHat)
    • Re: how much swap for 10g on a 4Gb RAM system?
      ... # uname -r ... You can use dd to create a "swap file" on any volume you want & ... the reason I ask is that for my small loads I ... If this were a commercial box with real commercial pressures ...
      (comp.databases.oracle.server)
    • Re: Memory Leak? (repost)
      ... For users of Fedora Core releases ... Buffers/cache are used to optimize the system and ... linux will use ALL available memory before it uses swap. ...
      (Fedora)
    • Re: Memory Leak
      ... > No processes seem to be increasing memory at the same time. ... -/+ buffers/cache: 640556 395232 ... Swap: 1052216 8120 1044096 ... testing emails. ...
      (Fedora)