[lkml]   [2001]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] allocation looping + kswapd CPU cycles
    On Tue, May 08 2001, Marcelo Tosatti wrote:
    > > The attached patch (against 2.4.5-pre1) fixes the looping symptom, by
    > > adding a counter and looping only twice for non-zero order allocations.
    > Looks good. (actually Rik had a patch similar to this which fixed a real
    > case with cdda2wav just like you described)

    Not cdda2wav, I pressume, but the optimization discussed here before that
    wasn't really doable because of the vm behaviour when doing

    try to alloc some amount of contiogous pages
    if (ok)

    lower number of pages wanted
    while true

    CDROMREADAUDIO stopped doing this and fell back to single cdda frame
    size allocations because of these failures, even though it meant a huge
    decrease in speed. cdda2wav will ask for iirc 16 frames at the time, the
    current driver will try and to 8 first and then fall back to slower
    extraction if allocations fail.

    Jens Axboe

    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:52    [W:0.028 / U:1.960 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site