lkml.org 
[lkml]   [1998]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: mmap() is slower than read() on SCSI/IDE on 2.0 and 2.1
Date
From
>read() does more prefetching than mmap() faults do, at least this was
>the story last time I was playing around in this area...
>
>Later,
>David S. Miller
>davem@dm.cobaltmicro.com
>

How about cluing in the VM to prefetch with madvise() ? How would this
effect performance?

As side questions:
- why would read() do more prefetching than mmap()?
- If read() caused prefetching of blocks, the when a page faulted in
from an mmap() mapping, why wouldn't this cause prefetching?
- When a binary executable image is mmap()ed to be run, wouldn't you want
to prefetch blocks of code and data -- what would be the difference
between this and the user mmap()ing in a file?

Just getting new to Linux kernel sources (coming from spare time FreeBSD
hacking) and would appreciate any useful source people can point me to.

Thanks,
-jay

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