projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add strong madvise() hint for cache pruning
[fio.git]
/
os
/
os-linux.h
diff --git
a/os/os-linux.h
b/os/os-linux.h
index dd9c5aaf493ce6ff403e5b1ec92c5390d7b82bb1..e4c4c3fd2f094eceaad485f1d53b2d35def66367 100644
(file)
--- a/
os/os-linux.h
+++ b/
os/os-linux.h
@@
-250,6
+250,10
@@
static inline int fio_lookup_raw(dev_t dev, int *majdev, int *mindev)
#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"