Re: [LAD] [LAU] cancelling I/O with libsndfile

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Fons Adriaensen <fons@...>
Cc: <linux-audio-dev@...>
Date: Tuesday, June 14, 2011 - 11:42 am

Hi Fons,

> It's probably a Good Thing (TM) that libsndfile doesn't do its

I agree, I prefer the flexibility of implementing my own user-space
cache in an app-dependent way, too.

> exactly this is organised will be application dependent. Having

For sure, two user-space caches add a useless extra layer of copying.

> One way to organise the buffer is to divide it in fragments

Yes, that's exactly how my implementation works. My ringbuffer is
divided in fragments.

> quantised to the same value. The syscall overhead becomes

Yes, that's why I argued for long requests over short ones.

> the actual read() call). The one you can't cancel is no big

And this is why I gave the NFS example earlier in the discussion...

What if it the data comes from the network, e.g. a streaming server
that has just 110% the bandwidth of the actual real-time playback? As
I said, in this case you almost double the latency if you can't cancel
the request.

It might be an interesting idea to do new requests in parallel with
cancelled ones, but this requires another layer of ringbuffer / memory
management.

-- Dan
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 14, 12:15 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 7:09 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 14, 7:30 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 7:49 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 14, 8:44 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 10:01 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Fons Adriaensen, (Tue Jun 14, 11:21 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 11:42 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Fons Adriaensen, (Tue Jun 14, 12:12 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 12:55 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 14, 10:54 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Mon Jun 20, 9:51 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Mon Jun 20, 10:52 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 21, 6:24 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 21, 6:37 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 21, 6:57 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 21, 7:12 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 21, 7:50 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jun 21, 7:58 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Mon Jul 4, 11:58 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Mon Jul 4, 11:30 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jul 5, 5:15 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jul 5, 5:30 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jul 5, 9:42 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jul 5, 10:25 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jul 5, 11:17 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Erik de Castro Lopo, (Tue Jul 5, 11:29 am)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Thu Jul 7, 1:38 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Paul Davis, (Thu Jul 7, 2:00 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Thu Jul 7, 2:29 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Paul Davis, (Thu Jul 7, 2:39 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Thu Jul 7, 3:39 pm)
Re: [LAD] [LAU] cancelling I/O with libsndfile, Dan Muresan, (Tue Jun 14, 12:03 pm)