tweaking RAM for squid3 server with adzap
Zdravstvuite
U menia est etot squid3 server i adzap na LUBUNTU s 7G pamiat.
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
root@:~# free -m total used free shared buffers cached Mem: 6938 5837 1100 0 333 4673 -/+ buffers/cache: 830 6107 Swap: 3813 0 3813
squid3.conf cache_mem 2000 MB cache_replacement_policy heap LFUDA cache_dir aufs /ram 4096 16 256
Ia sozdal specialno RAMFS i tam postavil cache_dir shto bi rabotal tolko v RAM.
tmpfs 4.7G 3.0G 1.8G 63% /ram
root@:~# cd /ram root@:/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
Vse normalno rabotaet. Ia prosto xochu po-luchshe sdelat natstroiki. Kak mne nastroit sysctl /proc/sys/vm vfs_cache_pressure ? dirty ? swappiness ? i drugie parametri ?
Moia tsel shto bi vse rabotalo tolko v RAM,bez diska ili pochti bez diska.
Eshe neznaiu naschet ? cache_mem 2000 MB ? esli eto pravilno?
Voobshe budu ochen blagodaren esli mne pomojete s kakieto idei ili soveti ?