why swap at all?

From: Anthony DiSante (orders_at_nodivisions.com)
Date: 05/26/04

  • Next message: Benjamin Herrenschmidt: "Re: [PATCH] (signoff) ppc64: Fix possible race with set_pte on a present PTE"
    Date:	Wed, 26 May 2004 02:38:23 -0400
    To: linux-kernel@vger.kernel.org
    
    

    As a general question about ram/swap and relating to some of the issues in
    this thread:

            ~500 megs cached yet 2.6.5 goes into swap hell

    Consider this: I have a desktop system with 256MB ram, so I make a 256MB
    swap partition. So I have 512MB "memory" and if some process wants more,
    too bad, there is no more.

    Now I buy another 256MB of ram, so I have 512MB of real memory. Why not
    just disable my swap completely now? I won't have increased my memory's
    size at all, but won't I have increased its performance lots?

    Or, to make it more appealing, say I initially had 512MB ram and now I have
    1GB. Wouldn't I much rather not use swap at all anymore, in this case, on
    my desktop?

    -Anthony
    http://nodivisions.com/
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Benjamin Herrenschmidt: "Re: [PATCH] (signoff) ppc64: Fix possible race with set_pte on a present PTE"

    Relevant Pages

    • Re: HIGHMEM4G config for 1GB RAM on desktop?
      ... > On my own desktop system with 1GB RAM, any highmem slowdown seems to be ... > outweighed by the fact that more disk data stays cached in RAM (so I hit ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: why swap at all?
      ... > Well it is a magical property of swap space, because extra RAM ... bad a concept in Text Editors as it is in women. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: swap and 2.4.20
      ... My 'standard' desktop machines run swapless with 512 MB RAM. ... Over-allocating swap space can degrade ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Slab allocator . . . cache? WTF is it?
      ... I'm wondering, what IS cache? ... and sometimes when there's no swap partition enabled. ... me to run into swap when I have ample ram available, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: why swap at all?
      ... > Or, to make it more appealing, say I initially had 512MB ram and now I ... Wouldn't I much rather not use swap at all anymore, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)