How to flush the CPU cache in Linux from a C program? -
i writing c program in need flush memory. know if there unix system command flush cpu cache.
this requirement project involves calculating time taken logic.
i have read cacheflush(char *s, int a, int b) function not sure whether suitable , pass in parameters.
i take mean "cpu cache", not memory cache
the link above good: suggestion "write lot of data via cpu" not windows specific
here's variation on same theme:
here's article linux , cpu cache:
note:
at (very, low) level, "linux" != "unix"
Comments
Post a Comment