[squid-users] Memory usage question

Alex Samad alex at samad.com.au
Fri Jun 19 10:19:07 UTC 2015


Hi

I recently push my squid VM memory up to 65G
i pushed up squid usage (i thought) to 40G

squid.conf
cache_mem 40960 MB

cache.log
2015/06/18 22:12:33| Max Mem  size: 41943040 KB
2015/06/18 22:12:33| Max Swap size: 177527808 KB



but it doesn't seem like its using it

 free -g
             total       used       free     shared    buffers     cached
Mem:            62          5         57          0          0          1
-/+ buffers/cache:          2         59
Swap:            1          0          1

again from squid.conf
cache_dir aufs /var/spool/squid 29999 16 256
cache_dir aufs /var/spool/squid2 58368 32 256
cache_dir aufs /var/spool/squid3 85000 32 256

Is this just a case that I don't have enough disk to backend the memory usage ?


this is on centos 6.6
still using the redhat build squid !
rpm -q squid
squid-3.1.10-29.el6.x86_64


 ps -u squid -o pid,rss,vsz,cmd | grep squid.con
  PID   RSS    VSZ CMD
 21605 839260 916880 (squid) -f /etc/squid/squid.conf


I have slowly added disk space here and I am actually planning on just
inserting 1T lun (this is VMware) and migrating it all over to there.


What am I missing, also on the cache_dir statement is there any way of
specifying 1G as 1G not 1024000. ie can i specify the units ?

Thanks


More information about the squid-users mailing list