Re: designing fast, streaming disk i/o with mmap: help wanted

From: Giuliano Pochini (pochini@denise.shiny.it)
Date: Sun Apr 02 2000 - 19:11:55 EST


> However, there is still a problem to solve. The audio thread (the one
> thats copying data from the soundcard hardware) is absolutely *not*
> allowed to block for anything except the soundcard. That includes page
> faults. As a result, it must be guaranteed that the region it maps are
> in physical memory before it tries to read/write from them. This is
> where the butler thread comes in. Its primary job is to keep touching
> pages some distance ahead of the current playback and record positions
> to try to ensure that the pages are faulted in before the audio thread
> tries to use them.

Did you try to mlock() the buffer ?

Bye.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:08 EST