Re: fcntl(2) and other file systems like XFS

From: Stephen C. Tweedie (sct@redhat.com)
Date: Wed Mar 22 2000 - 11:56:10 EST


Hi,

On Tue, Mar 21, 2000 at 11:47:28PM +0100, Jamie Lokier wrote:
>
> For video players, I think you can go a long way with mmap() and
> madvise(). (But I haven't tried it).

Yes. Raw IO has one big advantage, though: it doesn't require any
modification of page tables or vmas, and so it is a lot more efficient
(especially for threaded SMP applications, where mmap and madvise
result in a lot of inter-CPU interrupt traffic for tlb invalidations).

--Stephen

-
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/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:36 EST