lkml.org 
[lkml]   [1996]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Buffer cache hints


On Fri, 6 Sep 1996, Richard Gooch wrote:

> Hi, all. I have a process which reads a large file (nearly half the
> size of RAM) and swap-copies it into a malloced array of the same
> size. This results in a lot of disc head movement as pages are read

Why not use mmap()? (if the data is in the same form as you want it in
memory)


Yoni.

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.050 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site