Re: Question about memory mapping mechanism

2007-05-29 Thread Hugh Dickins
On Mon, 21 May 2007, Martin Drab wrote: > On Tue, 13 Mar 2007, Hugh Dickins wrote: > > On Fri, 9 Mar 2007, Martin Drab wrote: > > > > Hi Martin, sorry for joining so late. > > Hi, Hugh, this time I'm sorry for responding sooo late. Ditto. And preface: I'm a lousy person to be advising on driver

Re: Question about memory mapping mechanism

2007-05-21 Thread Martin Drab
On Tue, 13 Mar 2007, Hugh Dickins wrote: > On Fri, 9 Mar 2007, Martin Drab wrote: > > On Fri, 9 Mar 2007, Martin Drab wrote: > > > On Thu, 8 Mar 2007, Martin Drab wrote: > > > > On Thu, 8 Mar 2007, Carsten Otte wrote: > > > > > On 3/8/07, Martin Drab <[EMAIL PROTECTED]> wrote: > > > > > > > > > >

Re: Question about memory mapping mechanism

2007-03-13 Thread Hugh Dickins
On Fri, 9 Mar 2007, Martin Drab wrote: > On Fri, 9 Mar 2007, Martin Drab wrote: > > On Thu, 8 Mar 2007, Martin Drab wrote: > > > On Thu, 8 Mar 2007, Carsten Otte wrote: > > > > On 3/8/07, Martin Drab <[EMAIL PROTECTED]> wrote: > > > > > > > > > > The thing is that I'd like to prevent kernel to swa

Re: Question about memory mapping mechanism

2007-03-08 Thread Martin Drab
On Fri, 9 Mar 2007, Martin Drab wrote: > On Thu, 8 Mar 2007, Martin Drab wrote: > > > On Thu, 8 Mar 2007, Carsten Otte wrote: > > > > > On 3/8/07, Martin Drab <[EMAIL PROTECTED]> wrote: > > > > > > > > The thing is that I'd like to prevent kernel to swap these pages out, > > > > because then I

Re: Question about memory mapping mechanism

2007-03-08 Thread Martin Drab
On Thu, 8 Mar 2007, Robert Hancock wrote: > Martin Drab wrote: > > Hi, > > > > I'm writing a driver for a sampling device that is constantly delivering a > > relatively high amount of data (about 16 MB/s) and I need to deliver the > > data to the user-space ASAP. To prevent data loss I create a q

Re: Question about memory mapping mechanism

2007-03-08 Thread Martin Drab
On Thu, 8 Mar 2007, Jeremy Fitzhardinge wrote: > Martin Drab wrote: > > Hi, > > > > I'm writing a driver for a sampling device that is constantly delivering a > > relatively high amount of data (about 16 MB/s) and I need to deliver the > > data to the user-space ASAP. To prevent data loss I crea

Re: Question about memory mapping mechanism

2007-03-08 Thread Robert Hancock
Martin Drab wrote: Hi, I'm writing a driver for a sampling device that is constantly delivering a relatively high amount of data (about 16 MB/s) and I need to deliver the data to the user-space ASAP. To prevent data loss I create a queue of buffers (consisting of few pages each) which are mor

Re: Question about memory mapping mechanism

2007-03-08 Thread Jeremy Fitzhardinge
Martin Drab wrote: > Hi, > > I'm writing a driver for a sampling device that is constantly delivering a > relatively high amount of data (about 16 MB/s) and I need to deliver the > data to the user-space ASAP. To prevent data loss I create a queue of > buffers (consisting of few pages each) whic

Re: Question about memory mapping mechanism

2007-03-08 Thread Martin Drab
On Thu, 8 Mar 2007, Martin Drab wrote: > On Thu, 8 Mar 2007, Carsten Otte wrote: > > > On 3/8/07, Martin Drab <[EMAIL PROTECTED]> wrote: > > > > > > The thing is that I'd like to prevent kernel to swap these pages out, > > > because then I may loose some data when they are not available in time

Re: Question about memory mapping mechanism

2007-03-08 Thread Martin Drab
On Thu, 8 Mar 2007, Martin Drab wrote: > Hi, > > I'm writing a driver for a sampling device that is constantly delivering a > relatively high amount of data (about 16 MB/s) and I need to deliver the > data to the user-space ASAP. To prevent data loss I create a queue of > buffers (consisting o

Re: Question about memory mapping mechanism

2007-03-08 Thread Martin Drab
On Thu, 8 Mar 2007, Carsten Otte wrote: > On 3/8/07, Martin Drab <[EMAIL PROTECTED]> wrote: > > > > The thing is that I'd like to prevent kernel to swap these pages out, > > because then I may loose some data when they are not available in time > > for the next round. > > One think you could do

Re: Question about memory mapping mechanism

2007-03-08 Thread Carsten Otte
On 3/8/07, Martin Drab <[EMAIL PROTECTED]> wrote: The thing is that I'd like to prevent kernel to swap these pages out, because then I may loose some data when they are not available in time for the next round. One think you could do is grab a reference to the pages upfront. When you stop pushi