On Thu, Jul 9, 2009 at 9:49 PM, Malcolm Greene<[email protected]> wrote: > This is a Windows 2008 and Linux Ubuntu 8.10 related question. > The machine in question is an 8 core 64-bit server with 48gb RAM. > I have a large file (~16gb) that I would like to load into cache > so that scripts that I have running on multiple cores can all > efficiently read from this file without drive contention. The > file is a fixed record width ASCII text file and each script is > reading from a specific physical section of this file. > How can I efficiently pre-load a large file into cache or is my > best bet to use the modern day equivalent of a RAM disk? > Any suggestions?
Linux (and probably most Unixes) have the mmap() system call that maps a file into memory space. I'm not sure if there is a Windows equivalent. -- Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

