If a Ubuntu is installe from a CD or DVD chances are that along with the swap disk which physically exists on the hard drive Ubuntu also uses a RAM SWAP. This is a most annoying behavior because it leads to serious slowdowns and locks ups of the system.
If you are one of those poor souls whose Firefox freezes up regularly after prolonged use even when not too many tabs are open then you are a victim of the Compcache. Even though it is boon for Live CDs it becomes the unwanted child in an installed Linux distribution.
What do Compcache do ?
I quote the webpage dedicated to Compcache (https://wiki.ubuntu.com/Compcache)
"Compcache provides a possibility of using parts of the memory as virtual compressed swapdevice."
So Compcache creates a virtual drive in memory called the ramzswapfound at /dev/ramzswap0 and makes programs trick into storing their swap data there.
This is not at all needed if a dedicated swap partition exists in a system. It interferes with the swapping mechanism of the kernel and causes slowdowns.
To see if Compcache is doing its stuff type the fgollowing command. It shows what swap devices are on.
$ swapon -s
If there is an output like
Filename Type Size Used Priority
/dev/sda9 partition 2104472 358796 -1
/dev/ramzswap0 partition 1299996 186680 100
then the RAM SWAP in ON.
To disable RAM SWAP temporarily do the following --
$ swapoff /dev/ramzswap0
Now see the improvement in the performance of the PC.
To turn off Compcache permanently
$ cd usr/share/initramfs-tools/conf.d/
$ sudo mv compcache old-compcache
To make Ok Google detection work on Galaxy S7 (Galaxy series phones) we need to perform a couple of steps. 1. As long as Samsung S vo...
People claim that the fastest way to send multiple email drafts is to use Gmail IMAP with email client like Outlook or Evolution or Thunderb...
___________________________________________________________________ SWEET HEART FROM AAR JAANI NAA(T-SERIES) -- SWEETHEART -- ...
Audio tracks can be mixed easily in full fledged video editors like kdenlive or Adobe Premiere but for mixing or joining audio they would n...