Author Topic: Compcache Setup  (Read 843 times)

akirafactor

  • Guest
Compcache Setup
« on: November 07, 2010, 04:27:18 PM »
Install compcache

Edit into rc.local:

modprobe ramzswap num_devices=1
rzscontrol /dev/ramzswap0 --init
swapon -p 0 /dev/ramzswap0

To grub also add a vmalloc= setting to match the ramzswap size.

vmalloc=256M

Also set:

vm.swappiness=25
vm.vfs_cache_pressure=50

reboot

This is the compcache vs disk swap test: http://code.google.com/p/compcache/wiki/Performance/SwapDiskVsRamz

P.S. If you have more than a gig of ram you probably want to set a manual compcache size of say 256M and vmalloc=256M setting to match since default is 25% of installed memory which is excessive at large amounts.

P.S. The more memory limited or low-end your machine is, the bigger effect compcache will have. Even on 4 core, 4GHz, 4G ram machines I run this though. Why torture yourself with swapping?

Swapping is so 1200's man, come on and enter the 14th century already! :D
« Last Edit: December 24, 2010, 03:54:54 PM by akirafactor »

Online gseaman

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3885
Re: Compcache Setup
« Reply #1 on: November 07, 2010, 06:45:05 PM »
Thanks for the information. I have played around with ramzswap since Melodie started using it in the openbox mini RC's. I set it up in kde on my laptop with 1gb ram. It seemed to work great, until an upgrade or switching desktops made my cofiguration go away. It is very hard to find up to date information on this feature, so I am glad to see someone testing it. What is the advantage to using the compcache package instead of the built in modules in the 2.6.33+ kernels. I've been testing self-built 2.6.35 and 2.6.36 kernels. Is the compcache program needed for these as well?

Galen