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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Monday, July 4, 2011 - 11:58 am

>> > I never much liked the VIO layer. It was only ever added because

There is one remaining issue that I have discovered while writing
jack-file, and which can only be addressed via a VIO layer of some
sort. While reading a FLAC file, the sndfile request size stream looks
like

8188, 8188, 8188, 8192 etc (bytes)

This is with the user continuously requesting 16384 frames. You will
notice that these are uneven block sizes. If I understand correctly
e.g. the stat(2) page, these are inefficient syscalls:

"The st_blksize field [of a struct stat] gives the "preferred"
blocksize for efficient file system I/O. (Writing to a file in smaller
chunks may cause an inefficient read-modify-rewrite.)"

Without a VIO layer (or a libsndfile user-space cache), this is not
solvable by the user at higher abstraction layers.

-- 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)