看板 FB_hackers 關於我們 聯絡資訊
--K4LMwn8CgX2KMboP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Julian Elischer <julian@elischer.org> wrote: > the aim is to load it into system memory but not copy anything into > user memory. madvise() should do the trick, then. The manpage is quite misleading: http://linux.die.net/man/2/readahead "readahead() populates the page cache with data from a file so that subsequent reads from that file will not block on disk I/O." This isn't guaranteed, of course. --=20 Ed Schouten <ed@fxq.nl> WWW: http://g-rave.nl/ --K4LMwn8CgX2KMboP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfNDQkACgkQ52SDGA2eCwWpCQCdH9h5jPocoRJ++R+Bodlm192o dzcAnR6vn7pGiDu8VQHwMgxxltTIaSRP =leRM -----END PGP SIGNATURE----- --K4LMwn8CgX2KMboP--