Hi, On 05.10.2018 14:50, Alexey Budankov wrote:<SNIP> > > According to docs [1] ftruncate() does not advance file pos > which is essential here. >
Ideally, the both lseek() syscalls in every loop iteration can be replaced by the only two syscalls just before and after the loop and advancing *in-flight* off file pos value at perf_mmap__aio_push() after every successful record__aio_pushfn(). Thanks, Alexey