Re: [squid-users] stoping after rotate

2015-09-09 Thread Jorgeley Junior
ok, thank you all so much! 2015-09-09 10:40 GMT-03:00 Marcus Kool : > It seems that your system is finally getting healthy. > > The fact that the resident memory is 371 MB means that you have no disk > cache or Squid is hardly used, or both. > But look at that red 6.4GB virtual memory which indic

Re: [squid-users] stoping after rotate

2015-09-09 Thread Marcus Kool
It seems that your system is finally getting healthy. The fact that the resident memory is 371 MB means that you have no disk cache or Squid is hardly used, or both. But look at that red 6.4GB virtual memory which indicates that Squid can grow to 6.4 GB and even more when it is used. So next s

Re: [squid-users] stoping after rotate

2015-09-08 Thread Jorgeley Junior
ok, I'll do it 2015-09-08 21:30 GMT-03:00 Marcus Kool : > > > On 09/08/2015 09:23 PM, Jorgeley Junior wrote: > >> ok, read that already, i set cache_mem to 5GB, so is not ok? >> > > No. Squid will use more than 6 GB with cache_mem set to 5 GB. > I suggest that you use 2500 MB and after Squid runs

Re: [squid-users] stoping after rotate

2015-09-08 Thread Marcus Kool
On 09/08/2015 09:23 PM, Jorgeley Junior wrote: ok, read that already, i set cache_mem to 5GB, so is not ok? No. Squid will use more than 6 GB with cache_mem set to 5 GB. I suggest that you use 2500 MB and after Squid runs for 1 hour, see what the total process size is. Marcus 2015-09-08

Re: [squid-users] stoping after rotate

2015-09-08 Thread Jorgeley Junior
ok, read that already, i set cache_mem to 5GB, so is not ok? 2015-09-08 20:25 GMT-03:00 Marcus Kool : > > > On 09/08/2015 10:39 AM, Jorgeley Junior wrote: > >> I have 8GB physical memory and my swap is 32GB. >> I didn't increase the swap yet, should I? >> > > You must start with reading the memor

Re: [squid-users] stoping after rotate

2015-09-08 Thread Marcus Kool
On 09/08/2015 10:39 AM, Jorgeley Junior wrote: I have 8GB physical memory and my swap is 32GB. I didn't increase the swap yet, should I? You must start with reading the memory FAQ: http://wiki.squid-cache.org/SquidFaq/SquidMemory The general rule for all processes applies: make sure that a

Re: [squid-users] stoping after rotate

2015-09-08 Thread Jorgeley Junior
I have 8GB physical memory and my swap is 32GB. I didn't increase the swap yet, should I? 2015-09-08 9:23 GMT-03:00 Marcus Kool : > > > On 09/08/2015 08:11 AM, Jorgeley Junior wrote: > >> Thank you all, this is the output: >> vm.overcommit_memory = 0 >> vm.swappiness = 60 >> I have a Redhat 6.6 >

Re: [squid-users] stoping after rotate

2015-09-08 Thread Marcus Kool
On 09/08/2015 08:11 AM, Jorgeley Junior wrote: Thank you all, this is the output: vm.overcommit_memory = 0 vm.swappiness = 60 I have a Redhat 6.6 The value of vm.overcommit_memory is OK. The default value for vm.swappiness is way too high. It means that Linux swaps out parts of processes whe

Re: [squid-users] stoping after rotate

2015-09-08 Thread Jorgeley Junior
Thank you all, this is the output: vm.overcommit_memory = 0 vm.swappiness = 60 I have a Redhat 6.6 2015-09-05 15:08 GMT-03:00 Marcus Kool : > On Linux, an important sysctl parameter that determines how Linux behaves > with respect to VM allocation is vm.overcommit_memory (should be 0). > And vm.s

Re: [squid-users] stoping after rotate

2015-09-05 Thread Marcus Kool
On Linux, an important sysctl parameter that determines how Linux behaves with respect to VM allocation is vm.overcommit_memory (should be 0). And vm.swappiness is important to tune servers (should be 10-15). Which version of Linux do you have and what is the output of sysctl -a | grep -e vm.

Re: [squid-users] stoping after rotate

2015-09-04 Thread Jorgeley Junior
Thanks Amos, i will increase the swap Em 04/09/2015 17:22, "Amos Jeffries" escreveu: > On 5/09/2015 7:16 a.m., Jorgeley Junior wrote: > > Thanks Amos, my swap is 32GB, so that's causing the error as you said. > > Which is the better choice: increase the swap size or reduce the > > cache_mem??? >

Re: [squid-users] stoping after rotate

2015-09-04 Thread Amos Jeffries
On 5/09/2015 7:16 a.m., Jorgeley Junior wrote: > Thanks Amos, my swap is 32GB, so that's causing the error as you said. > Which is the better choice: increase the swap size or reduce the > cache_mem??? > Both probably. 128 GB swap I suspect you will need. Increase the swap so the system lets Squ

Re: [squid-users] stoping after rotate

2015-09-04 Thread Jorgeley Junior
Thanks Amos, my swap is 32GB, so that's causing the error as you said. Which is the better choice: increase the swap size or reduce the cache_mem??? 2015-09-04 13:55 GMT-03:00 Amos Jeffries : > On 4/09/2015 11:32 p.m., Jorgeley Junior wrote: > > Hi guys, I suspect my squid stop to serve request a

Re: [squid-users] stoping after rotate

2015-09-04 Thread Amos Jeffries
On 4/09/2015 11:32 p.m., Jorgeley Junior wrote: > Hi guys, I suspect my squid stop to serve request after rotate, in the > morning, after I restarted it, everything goes to normal. > here is the log: > 2015/09/04 00:00:01 kid1| storeDirWriteCleanLogs: Starting... > 2015/09/04 00:00:01 kid1| Finis

[squid-users] stoping after rotate

2015-09-04 Thread Jorgeley Junior
Hi guys, I suspect my squid stop to serve request after rotate, in the morning, after I restarted it, everything goes to normal. here is the log: 2015/09/04 00:00:01 kid1| storeDirWriteCleanLogs: Starting... 2015/09/04 00:00:01 kid1| Finished. Wrote 39639 entries. 2015/09/04 00:00:01 kid1| Too