|
Re: Why we need delayed allocation!: msg#00048file-systems.ext2.devel
1) Avoid it. Which, as you point out, is important for extends Agreed. FFS, for instance, always keeps 64K "clusters" of blocks contiguous on disk, even if it means reallocating the entire cluster on a write. Howevewr, beyond the obvious drawbacks for synchronous writes and large writes, this reallocation, while keeping a single file contiguous, may eliminate the spacial locality of related files (e.g. a group of configuration files, etc.). 2) Deal with it smart(ly). I worked on a project called Virtual Contiguity, that allowed for small blocks (1K or 4K) to be allocated non-contiguously in a larger, logical region on disk (256K). We allocated blocks as close as possible to the original allocation, but did not enforce any policy on strict contiguity. Reads were then performed on these 256K regions (emulating the benefits of a large block) and the small blocks were filtered out of the track cache for good memory performance (4k blocks means 4k pages.) Deallocating blocks leaves room for files to grow "in-place" or related files to be placed locally. -Zachary On Dec 26, 2003, at 2:08 PM, Arjan van de Ven wrote: On Fri, 2003-12-26 at 20:17, Theodore Ts'o wrote:=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Zachary Peterson zachary@xxxxxxx http://znjp.com ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Why we need delayed allocation!: 00048, Alex Tomas |
|---|---|
| Next by Date: | Re: Why we need delayed allocation!: 00048, Arjan van de Ven |
| Previous by Thread: | Re: Why we need delayed allocation!i: 00048, Arjan van de Ven |
| Next by Thread: | RE:Stilnox.x Ambien.nn Valium.m Xanax.x bxydybg cdo: 00048, Daren Santos |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |