Re: Linux 2.6.29
From: Jeff Garzik
Date: Thu Apr 02 2009 - 17:56:37 EST
David Rees wrote:
Either way - forcing the data to be synced to disk a couple times
every second is a hack and causes fragmentation in filesystems without
delayed allocation. Fragmentation really goes up if you are recording
multiple shows at once.
Check out posix_fallocate(3). Not appropriate for every situation,
might eat additional disk bandwidth...
But if you are looking to combat fragmentation, pre-allocation (manual
or kernel-assisted) is a relevant technique. Plus, overwriting existing
data blocks is a LOT cheaper than appending to a file. fsync's more
quickly to disk, too.
Jeff
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/