Messages in this thread |  | | From | "Ulrich Windl" <> | Date | Fri, 3 May 1996 10:34:27 +0200 | Subject | fcntl() 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
|  |