Messages in this thread | | | Subject | Re: mmap vs. O_DIRECT | From | Alan Cox <> | Date | Wed, 10 Nov 2004 22:19:58 +0000 |
| |
On Mer, 2004-11-10 at 00:05, Bill Davidsen wrote: > I have an application which does a lot of mmap to process its data. The > huge waitio time makes me think that mmap isn't doing direct i/o even > when things are alligned.
Make sure you are using MAP_SHARED in such cases so that the object you have is the page cache object, also remember to use madvise
- 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/
| |