lkml.org 
[lkml]   [2004]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: why swap at all?
    Quote from Nick Piggin <nickpiggin@yahoo.com.au>:
    > John Bradford wrote:
    > > Quote from Nick Piggin <nickpiggin@yahoo.com.au>:
    > >
    > >>Even for systems that don't *need* the extra memory space, swap can
    > >>actually provide performance improvements by allowing unused memory
    > >>to be replaced with often-used memory.
    > >
    > >
    > > That's true, but it's not a magical property of swap space - extra physical
    > > RAM would do more or less the same thing.
    > >
    >
    > Well it is a magical property of swap space, because extra RAM
    > doesn't allow you to replace unused memory with often used memory.

    Strictly speaking no, but instead of replacing unused memory with often used
    memory, the often used memory has it's own silicon, so the unused memory can
    stay paged in as well.

    Or to put it another way, however much swap a machine has, installing that
    much extra physical RAM, and removing the swap space will almost never cause
    a loss in performance. There are some theoretical cases where it would,
    such as where adding extra physical RAM requires the use of different memory
    addressing schemes, and some data which would have, by chance, resided in
    more quickly accessible RAM before the upgrade no longer does, but those
    scenarios are not really anything to do with the original discussion.

    John.
    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 14:03    [W:4.118 / U:0.248 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site