commit | a1c58075279454a91ec43366846b93e8dcf9753c | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue Aug 04 23:17:02 2009 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue Aug 04 23:17:02 2009 +0200 |
tree | b0377d096ad9ab0da2d252b04af44ad982794ee1 | |
parent | 56075b96f307f8276f9d032ac8404622b94a456c [diff] [blame] |
Add strong madvise() hint for cache pruning Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/os/os-linux.h b/os/os-linux.h index dd9c5aa..e4c4c3f 100644 --- a/os/os-linux.h +++ b/os/os-linux.h
@@ -250,6 +250,10 @@ #define FIO_O_NOATIME 0 #endif +#ifdef MADV_REMOVE +#define FIO_MADV_FREE MADV_REMOVE +#endif + #define CACHE_LINE_FILE \ "/sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size"