[PATCH] Time and seek optimizations
authorJens Axboe <jens.axboe@oracle.com>
Fri, 24 Nov 2006 09:42:00 +0000 (10:42 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 24 Nov 2006 09:42:00 +0000 (10:42 +0100)
commit02bcaa8c31feb93c61b701d143a7eea3efd2124d
tree3e04b32b6c6b24cd397f0f04d828c49dfb6b5cac
parentc11883f748f8f192fc6b4b0ec25add8781a8f4a8
[PATCH] Time and seek optimizations

We did too many gettimeofday() calls, this patch cuts the number by
40%. Use clock_gettime() MONOTONIC instead, it is faster on my system
at least.

This patch also optimizes calling lseek() only when necessary for the
sync io engine.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
13 files changed:
Makefile
Makefile.FreeBSD
Makefile.solaris
engines/fio-engine-sync.c
eta.c
filesetup.c
fio.c
fio.h
gettime.c [new file with mode: 0644]
io_u.c
ioengines.c
stat.c
time.c