# Differences

This shows you the differences between two versions of the page.

radu.mantu [03. [30p] Kernel Samepage Merging]
Line 10: Line 10:

<code bash> <code bash>
-# on Ubuntu you can usually find it on your /boot partition+# on Ubuntu you can usually find it in your /boot partition
$grep CONFIG_KSM /​boot/​config-$(uname -r) $grep CONFIG_KSM /​boot/​config-$(uname -r)
CONFIG_KSM=y CONFIG_KSM=y
Line 48: Line 48:
Finally, look at the provided code, compile it, and launch the program. As an argument you will need to provide the number of pages that will be allocated and initialized with the same value. Note that not all pages will be de-duplicated instantly. So keep in mind your system'​s RAM limitations before deciding how much you can spare (1-2GB should be ok, right?) Finally, look at the provided code, compile it, and launch the program. As an argument you will need to provide the number of pages that will be allocated and initialized with the same value. Note that not all pages will be de-duplicated instantly. So keep in mind your system'​s RAM limitations before deciding how much you can spare (1-2GB should be ok, right?)

-The result should look something like this:+The result should look something like **Figure 1**: