I'm using linux on my laptop having 1Gb memory. Each time i start "suspend to disk" the kernel stores the actual memory contents to swap partition. I discovered today that the caches in memory are also written to the swap!
Currently, the memory usage is:
Code:
# free -m
total used free shared buffers cached
Mem: 1010 488 522 0 17 348
-/+ buffers/cache: 123 887
Swap: 1535 0 1535
The caches use 348 Mb of memory. Each time i suspend my laptop this content is written to disk and then read from disk into memory when i switch my laptop on (?). It takes very much time and i don't need it, definitely!
Is there a way to clean the caches before starting suspend?