Re: why swap at all?

From: Robin Rosenberg (robin.rosenberg.lists_at_dewire.com)
Date: 06/01/04

  • Next message: Markus Lidel: "Problem with ioremap which returns NULL in 2.6 kernel"
    To: Lenar Lõhmus <lenar@vision.ee>
    Date:	Tue, 1 Jun 2004 14:27:33 +0200
    
    

    On Tuesday 01 June 2004 13.57, Lenar Lõhmus wrote:
    > jlnance@unity.ncsu.edu wrote:
    > >I'm not sure. Copying a file is a pretty good indication that you
    > >are about to do something with either the new or the old file.
    >
    > Like taking the new file with me on USB dongle and deleting old one?
    > Caching the file really doesn't help in this case.

    No, and most file copies are not to be used in the "near" future. I.e. on
    my machine. Caching on the second read (close in time) is ok, or if there
    are unused ram, but paging out things in use is bad. It's much more likely
    that the page allocated to a program will be used than a newly read or written
    file.

    Ofcourse your milega may vary. I'm thinking of my desktop now.

    -- robin
    -
    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: Markus Lidel: "Problem with ioremap which returns NULL in 2.6 kernel"

    Relevant Pages

    • Re: nasm over gas?
      ... While it may not benefit from caching, cache misses still hurt it. ... Why has Alan measured faster kernels with -Os than with -O2? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: another nfs puzzle
      ... The use of O_DIRECT implies no caching and mmap implies the use of caching. ... the ranges of the i/o operations done, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: file as a directory
      ... > manage and seems impossible to do as efficiently (with built-in caching, ... > should any meta-files created by kernel plugins. ... Why do we need hardlinks? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Kernel oops while shutting down (2.6.8rc1)
      ... >> One of those driver modules probably has a function in the cleanup ... >> down and taking copying the output would help speed up the search. ... QinetiQ Trusted Information Management ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Errors with USB Disk
      ... patches submitted by Oliver and Alan S. We're copying about 15GiB of data ... between an IDE and USB drive, and see the hang occur somewhere in the first ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)