Some reading
c - When should I use mmap for file access? - Stack Overflow
linux performance tuning - Google Search
Some API calls that may be worth a read.
madvise(2): give advice about use...
Type: Posts; User: Salem
Some reading
c - When should I use mmap for file access? - Stack Overflow
linux performance tuning - Google Search
Some API calls that may be worth a read.
madvise(2): give advice about use...
>My test file is ~25 MB with about 17,000 chunks.
How long does it take to do this?
int nblocks = 0;
char buff[BUFSIZ];
FILE *fp = fopen("chunky_file","rb");
while ( fread( buff, BUFSIZ, 1,...
nmap might be an interesting programming trick to save a bit of buffering work inside the kernel and your code, but it doesn't get past the physical reality of having to read the hard disk.
Seek...