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.

  1. i take mean "cpu cache", not memory cache

  2. the link above good: suggestion "write lot of data via cpu" not windows specific

  3. here's variation on same theme:

  4. here's article linux , cpu cache:

note:

at (very, low) level, "linux" != "unix"


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -