Re: advice requested re: huge files and/or disk seeking

From: Jeremy Fitzhardinge (jeremy@goop.org)
Date: Fri Feb 04 2000 - 19:25:37 EST


On 05-Feb-00 Steve Doyle wrote:
> Daniel Phillips wrote:
>> It sounds to me like any existing file system is just going to get in
>> your way. What you need is a simple filesystem that just has one file,
>> and it takes up the whole partition, can't be truncated or extended,
>> no index, no inodes, no directories, no permissions, nothing. Just
>> straight I/O to the disk. If this partition exists on a dedicated disk
>> you'll be completely in control of all seeking. You can keep any
>> indices you need in a file on another partition.

A big pre-allocated file on a mostly empty ext2 filesystem will give much
the same effect too (ignoring the max filesize problem on pre-2.3 systems).

> Why not just open the appropriate special device file and use the parition
> directly? Or will block devices not operate this way? (I'm assuming that
> since commands like 'cat' will work on one, any other file operation will
> work on one as well...) Using the special file wouldn't even require a
> kernel module.

Devices can't be mmaped which may be a problem.

        J

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Feb 07 2000 - 21:00:12 EST