看板 FB_hackers 關於我們 聯絡資訊
Julian Elischer wrote: > Ivan Voras wrote: >> Ed Schouten wrote: >>> * carlos neira <cneirabustos@gmail.com> wrote: >>>> is there an equivalent of readahead syscall in linux , for freebsd ?. >>>> i was looking at http://preload.sourceforge.net/ , and it needs >>>> this . >>> Maybe a mmap(), followed by a madvise()? >> >> Or an open() followed by a read() loop? :) If the goal is to preload the >> files, this one is certainly going to do it :) >> >> > > the aim is to load it into system memory but not copy anything into > user memory. sendfile(2) to /dev/null, perhaps. _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"