lkml.org 
[lkml]   [1996]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectfcntl() or ioctl() for fs readahead?
Sorry for my lazyness, but does the current kernel have a call to 
advise the kernel about usage intents for a file?

If you do a random seek benchmark, readahead might (depending on the
buffer size and the file's size) make performance worse, but for
sequential access, it would give good performance.

Forgive me not having looked into the sources, but my estimates are
that with more than 50% probability these functions are not there,
but seem to be useful for performance applications like benchmarks or
databases.

That just produced an other idea: What about a WRITE_ONLY hint that
frees the associated buffers immediately after the data is written to
disk (thinking of syslog and other logs, but especially for database
redo logs).

Awaiting comments...

Ulrich


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