Speeding up file I/O: mmap() vs. read()
问题 I have a Linux application that reads 150-200 files (4-10GB) in parallel. Each file is read in turn in small, variably sized blocks, typically less than 2K each. I currently need to maintain over 200 MB/s read rate combined from the set of files. The disks handle this just fine. There is a projected requirement of over 1 GB/s (which is out of the disk's reach at the moment). We have implemented two different read systems both make heavy use of posix_advise : first is a mmap ed read in which