lkml.org 
[lkml]   [2000]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: advice requested re: huge files and/or disk seeking

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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:4.321 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site