lkml.org 
[lkml]   [2002]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: MMAP vs READ/WRITE
    Hello!

    On Wed, Mar 13, 2002 at 04:17:18PM +0300, Peter Zaitsev wrote:
    > So I would say mmap is not really optimized nowdays in Linux and so
    > read() may be wining in cases it should not. May be read-ahead is
    > used with read and is not used with mmap.

    how about reading manual page on madvise(2) and redoing your test?

    Also cache is best cleaned by unmounting filesystem in question
    and then mounting it back.

    Bye,
    Oleg
    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:24    [W:0.022 / U:30.744 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site