tweaking RAM for squid3 server with adzap



I'm running squid3 with adzap on this LUBUNTU machine with 7G ram.

Cpu(s): 0.2%us, 0.2%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 7105252k total, 5977928k used, 1127324k free, 341816k buffers
Swap: 3905532k total, 444k used, 3905088k free, 4785140k cached

[email protected]:~# free -m
total used free shared buffers cached
Mem: 6938 5837 1100 0 333 4673
-/+ buffers/cache: 830 6107
Swap: 3813 0 3813

cache_mem 2000 MB
cache_replacement_policy heap LFUDA
cache_dir aufs /ram 4096 16 256

I've create this RAMFS in order to have the cache_dir only in RAM.

tmpfs 4.7G 3.0G 1.8G 63% /ram

[email protected]:~# cd /ram
[email protected]:/ram# ls
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F squid3 swap.state swap.state.last-clean

Everything works fine.I'm just trying to improve to the maximum of speed.
I'd like to know how should I tweak
vfs_cache_pressure ?
the dirty stuff ?
the swappiness ?
or other parameters ?

My goal is to have it work only in RAM,no disk usage.

Would greatly appreciate any suggestions.


Members online