Subject: [Fwd: [linux-audio-dev] info point on linux hdr]
From: Andrew Clausen (clausen_AT_gnu.org)
Date: Fri Apr 14 2000 - 11:15:09 EEST
Hi all,
Any comments?
attached mail follows:
i mentioned in some remarks to benno how important i thought it was to
preallocate the files used for hard disk recording under linux.
i was doing more work on ardour yesterday, and had the occasion to
create some new "tapes", of lengths from 2 to 40 minutes.
the simple act of creating 24 5 minute WAV files on ext2, files in
which every block has been allocated, takes at least 1 minute, perhaps
as much as 2. i create the files by first opening them, then writing a
zero byte every blocksize bytes (blocksize comes from stat(2)), except
for the WAV header at the beginning.
i hadn't done this in a while, but it reminded me of the
near-impossibility of expecting the FS code to allocate this much disk
space in real time under ext2. If someone knows of a faster way to
allocate the disk space, please let me know. Its not that I have a
problem right now, just wanted to point out this behaviour.
--p
This archive was generated by hypermail 2b28 : Sat Apr 15 2000 - 01:36:40 EEST