Re: How to disable "Disk cache" on RAM

From: Paul Johnson (baloo_at_ursine.ca)
Date: 05/21/05

  • Next message: Paul Johnson: "Re: Can't Defrag Ext3 File System"
    To: debian-user@lists.debian.org
    Date: Fri, 20 May 2005 18:26:04 -0700
    
    
    

    On Friday May 20 2005 11:24 am, Mohammad Halawah wrote:

    > So I am searching for a way to disable this feature "disk cache" on
    > my 512MB RAM which I assume will fasten the hibernation process.

    Probably not significantly, but it *will* cause a serious performance
    hit. I strongly recommend just letting the kernel do it's job, it's
    not like Windows where the OS handles memory incompetently.

    > Another reason for disabling the "disk cache", is to stop swaping
    > on the HDD for the data saved in the "disk cache" part.

    There are two ways to stop swapping:

    1) swapoff -a Though you'll start getting out of memory errors and
    things will randomly die under heavy load.

    2) Add more ram. This is the right way to fix this. The only time
    you will ever use swap space is if you're out of RAM and the system
    needs more RAM to stay running usably. If you're going more than a
    few megabytes into swap with a normal load, you're either running
    more than you should be,

    -- 
    Paul Johnson
    Email and Instant Messenger (Jabber): baloo@ursine.ca
    http://ursine.ca/~baloo/
    
    

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


  • Next message: Paul Johnson: "Re: Can't Defrag Ext3 File System"