00001 #ifndef UTIL_PARALLEL_READ__ 00002 #define UTIL_PARALLEL_READ__ 00003 00004 /* Read pieces of a file in parallel. This has a very specific use case: 00005 * reading files from Lustre is CPU bound so multiple threads actually 00006 * increases throughput. Speed matters when an LM takes a terabyte. 00007 */ 00008 00009 #include <cstddef> 00010 #include <stdint.h> 00011 00012 namespace util { 00013 void ParallelRead(int fd, void *to, std::size_t amount, uint64_t offset); 00014 } // namespace util 00015 00016 #endif // UTIL_PARALLEL_READ__