[lkml]   [2001]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: DVD blockdevice buffers
    In article <>, Jens Axboe  <> wrote:
    >> As a result the system performance goes down. I'm still able to use
    >> my applications, but es every single piece of unused memory is swapped
    >> out, and swapping in costs a certain amount of time.
    >That's why streaming media applications like a dvd player should use raw
    >I/O -- to bypass system cache. See /dev/raw*

    I disagree..

    The fact is that the block device fs infrastructure is just sadly
    broken. By using the buffer cache, it makes memory management very hard,
    and just upgrading to the page cache would (a) speed stuff up and (b)
    make it much easier for the kernel to do the right thing wrt the MM use.

    Right now we don't try to aggressively drop streaming pages, but it's
    possible. Using raw devices is a silly work-around that should not be
    needed, and this load shows a real problem in current Linux (one soon to
    be fixed, I think - Andrea already has some experimental patches for the
    page-cache thing).

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 12:53    [W:0.021 / U:1.916 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site