Messages in this thread | | | From | Bernd Eckenfels <> | Subject | Re: why swap at all? | Date | Thu, 27 May 2004 09:04:33 +0200 |
| |
In article <200405270014.10096.tcfelker@mtco.com> you wrote: > O_STREAMING and a flag to not cache a file when it closes are a good start.
Win32 API has a FILE_ATTRIBTE_TEMPORARY to mark files which should be prefered be served from buffercache, FIL_FLAG_NO_BUFFERING allows raw access (required block boundary reads). FILE_FLAG_RANDOM_ACCESS is used to hint the cache (dont know what it does, maybe reduce prefetching?) as well als FILE_FLAG_SEQUENTIAL_SCAN as a hint for the other case where you read the stream. There is also a writethrough flag, which does not affect caching. So basically I think the hints Win32 API offers are not the perfect set of flags one can think about. Unless SEQUENTIAL_ACCESS implies also "forget blocks vefore current read position".
Greetings Bernd -- eckes privat - http://www.eckes.org/ Project Freefire - http://www.freefire.org/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |