lkml.org 
[lkml]   [1999]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: Speeding up swap
Date

> Bad idea IMHO. If you are writing a file, it might happen that
> you have to
> seek back to the start of the file and fill some headers when you
> are done.
> For example when recording movies.

Then one the file twice. With one fd, you can do your buffered, random
accesses. With the other fd, you can do your non-buffered, sequential
accesses.

Also, I think you should still be allowed to seek forwards. You may have,
for example, a file with large records whose headers tell you their length
and whether or not you need to read them.

DS


-
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:54    [W:0.142 / U:0.152 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site