Re: statfs() / statvfs() syscall ballsup...

From: Linus Torvalds (torvalds_at_osdl.org)
Date: 10/12/03

  • Next message: Tony Lindgren: "[PATCH] Make pmdisk suspend more reliable"
    Date:	Sun, 12 Oct 2003 09:13:50 -0700 (PDT)
    To: Greg Stark <gsstark@mit.edu>
    
    

    On 12 Oct 2003, Greg Stark wrote:
    >
    > There are other reasons databases want to control their own cache. The
    > application knows more about the usage and the future usage of the data than
    > the kernel does.

    But this again is not an argument for not using the page cache - it's only
    an argument for _telling_ the kernel about its use.

    > However on busy servers whenever it's run it causes lots of pain because the
    > kernel flushes all the cached data in favour of the data this job touches.

    Yes. But this is actually pretty easy to avoid in-kernel, since all of the
    LRU logic is pretty localized.

    It could be done on a per-process thing ("this process should not pollute
    the active list") or on a per-fd thing ("accesses through this particular
    open are not to pollute the active list").

    > And
    > worse, there's no way to indicate that the i/o it's doing is lower priority,
    > so i/o bound servers get hit dramatically.

    IO priorities are pretty much worthless. It doesn't _matter_ if other
    processes get preferred treatment - what is costly is the latency cost of
    seeking. What you want is not priorities, but batching.

                            Linus

    -
    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: Tony Lindgren: "[PATCH] Make pmdisk suspend more reliable"

    Relevant Pages

    • Re: Cached memory never gets released
      ... Stock linux 2.4.26 kernel. ... Due to flash bug 3M of memory gets lost due to font memory getting lost ... The output of "free" cache number steadily grows. ... longer to exhaust all of system memory with the cache. ...
      (Linux-Kernel)
    • Re: silent semantic changes with reiser4
      ... |>fixed ammount of space for disk cache is bad, ... kernel interface that then turns around and calls a userland daemon? ... one cache manager, the way there is exactly one VM manager for Linux. ...
      (Linux-Kernel)
    • Re: IIS 6.0 Not Caching Images
      ... There is a known bug where if a 204/304 is fulfilled from the kernel ... regardless if it is fulfilled from the kernel response cache or not. ... request is cached in kernel mode (in addition to using WFetch to make the ... server or not -- you need perfmon to determine. ...
      (microsoft.public.inetserver.iis)
    • RE: IDS 10.0 performance on RedHat
      ... array cache in case of a power failure. ... at least for Informix. ... Starting with kernel 2.6, two new ... files and block devices, ...
      (comp.databases.informix)
    • Re: 2D convolution performance expectation
      ... this is 43277 multiples and adds ... On a modern Pentium 4 with 4 MB LII cache this can all take place in the cache for a grayscale image which can take 2 cycles for each multiply and 1 cycle for each add and I think it is 10 cycles for a divide ... L1 cache is the RAM that is directly tied to the Processor ... Another way to speed things up is to realize that certain size kernel can be relized by applying a smaller kernel multiple times fro instance a 9x9 kernel can be achieved by using a 3x3 kernel twice ...
      (comp.graphics.algorithms)

    Loading