Tag Info

New answers tagged

0

Please read this article http://www.linuxatemyram.com/ If you understand the risk then you can do free && sync && echo 3 > /proc/sys/vm/drop_caches && free


1

To my best understanding, dm-cache does what you are asking for. I could not find a definite source for this, but here the author explains that he should have called it dm-hotspot, because it tries to find "hot spots", i.e. areas of high activity and only caches those. In the output of dmsetup status you will find two variables, namely ...


0

fsync already does this for the file in question (write thru to disk), but it does not guarantee this for the directory. This requires an extra fsync-call.


1

Read data is (directly) read from the cache only if it is already there. That implies that cached data was previously accessed by a process and kept in cache. There is no system call or any method for a process to know if some piece of data to be read is already in cache or not. On the other hand, a process can select if it wants written data to be ...


3

lscpu, in util-linux, describes the cache layout without requiring root: [...] L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 8192K The files in /sys/devices/system/cpu/cpu*/cache/ should contain all the information you're looking for, including associativity, and are readable without being root, ...



Top 50 recent answers are included