Archive for April, 2009

mtrr – a tool to get MTRR information

It is easy to get MTRR (Memory Type Range Register)1 information on Linux through procfs, aka the /proc pseudo file system. But there is no tool to get similar information on Windows (or at least I could not find any). So I have written a command line tool called mtrr to dump MTRR information.


Memory Barriers

Memory Barriers (aka membar or memory fence) are constructs  that control reordering of memory reads and writes. Memory barriers generally find use in synchronizing threads based on shared memory. There are mainly three kinds of barriers, Read Barrier, Write Barrier, Read/Write Barrier. Read Barrier prevents a read before the barrier to be reordered to read [...]