[linux-audio-dev] info point on linux hdr

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] info point on linux hdr
From: Paul Barton-Davis (pbd_AT_Op.Net)
Date: Fri Apr 14 2000 - 15:10:10 EEST


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


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Apr 14 2000 - 15:41:06 EEST