<div dir="ltr"><div>Dear All,</div><div>I got 2 query which are as follows</div><div><br></div><div><b>1. How to disable logging of few ACLs ? for example I have below ACL which I trust and I do not enable caching </b><br></div><div><br></div><div>[root@proxy squid]# cat no_cache_domain.txt <br>.<a href="http://ubuntu.com">ubuntu.com</a><br>.<a href="http://googlevideo.com">googlevideo.com</a><br>.<a href="http://googleapis.com">googleapis.com</a><br>.<a href="http://googleusercontent.com">googleusercontent.com</a><br>.<a href="http://windows.com">windows.com</a><br>.<a href="http://windowsupdate.com">windowsupdate.com</a><br>.<a href="http://kaspersky.com">kaspersky.com</a><br>.<a href="http://copernicus.eu">copernicus.eu</a><br>.<a href="http://praction.in">praction.in</a><br>.<a href="http://webwerks.in">webwerks.in</a><br></div><div><br></div><div># and in squid.conf<br></div><div>acl no-cache-domains dstdomain "/etc/squid/no_cache_domain.txt"<br>cache deny no-cache-domains</div><div><br></div><div><b>2. Kernel Out of Memory ( I currently have logrotate on weekly basis ), how this issue can be fixed it runs nearly 12 hours without any error</b><br></div><div><br></div><div>Log error is as follows:</div><div><br></div><div>May 1 08:45:20 proxy kernel: Out of memory: Kill process 24384 (squid) score 961 or sacrifice child<br>May 1 08:45:20 proxy kernel: Killed process 24384, UID 0, (squid) total-vm:23620544kB, anon-rss:15381672kB, file-rss:292kB<br>May 1 08:45:22 proxy squid[24382]: Squid Parent: child process 24384 exited due to signal 9 with status 0<br></div><div><br></div><div>[root@proxy squid]# cat /proc/swaps <br>Filename Type Size Used Priority<br>/dev/sda3 partition 8191992 38984 -1</div><div><br></div><div>[root@proxy squid]# cat /etc/redhat-release<br>Red Hat Enterprise Linux Server release 6.3 (Santiago)</div><div><br></div><div>[root@proxy squid]# squid -v<br>Squid Cache: Version 3.1.10<br></div><div><br></div><div>[root@proxy squid]# ll -sh /var/log/squid/access.log<br>37G -rw-r----- 1 squid squid 37G May 1 10:47 /var/log/squid/access.log</div><div><br></div><div>[root@proxy squid]# ll -sh /var/log/squid/store.log<br>52G -rw-r----- 1 squid squid 52G May 1 10:47 /var/log/squid/store.log<br></div><div><br></div><div>[root@proxy squid]# du -sh /cache/<br>23G /cache/</div><div><br></div><div>[root@proxy squid]# grep '^cache_dir' /etc/squid/squid.conf<br>cache_dir ufs /cache 25000 16 256<br></div><div><br></div><div>[root@proxy squid]# vmstat -s<br> 16334568 total memory<br> 16165900 used memory<br> 916616 active memory<br> 14824916 inactive memory<br> 168668 free memory<br> 111912 buffer memory<br> 14773484 swap cache<br> 8191992 total swap<br> 38984 used swap<br> 8153008 free swap<br> 150918525 non-nice user cpu ticks<br> 1039325 nice user cpu ticks<br> 88617581 system cpu ticks<br> 3955184009 idle cpu ticks<br> 8975352 IO-wait cpu ticks<br> 6237581 IRQ cpu ticks<br> 35714514 softirq cpu ticks<br> 0 stolen cpu ticks<br> 3099830316 pages paged in<br> 546843845 pages paged out<br> 2155651 pages swapped in<br> 11728162 pages swapped out<br> 78924125 interrupts<br> 3426967839 CPU context switches<br> 1577614862 boot time<br> 547399 forks<br></div><div><br></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td style="line-height:0;vertical-align:bottom;padding-right:10px;padding-top:20px;padding-bottom:20px" width="107" valign="bottom" align="left"><br></td><td style="line-height:1.1;vertical-align:bottom;padding-top:20px;padding-bottom:20px" valign="bottom" align="left">
<br></td>
</tr>
</tbody>
</table>
</div></div></div></div>