Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-17 Thread Marcus Kool
On 02/17/2015 11:30 AM, Yuri Voinov wrote: Also, gents. ufdbGuard is cool, but: - Where is good documentation? I found only one connon PDF. No performance recommendations, no administrator's guide - this good piece of software not so trivial as squidGuard, i.e., I don't know, how to

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-17 Thread Marcus Kool
On 02/16/2015 11:43 PM, Amos Jeffries wrote: PS. Marcus, perhapse you should go on search around to find distro maintainers who are publishing SG and convince them to replace the defaults with ufdbguard. I have to do that periodically to clear up old Squid versions being forced on users. It

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-17 Thread Yuri Voinov
As I said - never. I use external log rotation facility. Squid log rotation is completely off in my installation. 17.02.15 8:26, Amos Jeffries пишет: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/02/2015 7:38 a.m., Yuri Voinov wrote: We are talking not about the differences between any

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-17 Thread Yuri Voinov
17.02.15 5:01, Amos Jeffries пишет: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/02/2015 4:27 a.m., Yuri Voinov wrote: Yep. 16.02.15 20:58, Eliezer Croitoru пишет: On 16/02/2015 15:23, Yuri Voinov wrote: http://i58.tinypic.com/rsqwxh.png 0 shutting down. Always. During nights and

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes. root @ cthulhu / # uname -a SunOS cthulhu 5.10 Generic_150401-16 i86pc i386 i86pc Solaris Are you an expert in it? 16.02.15 22:35, Antony Stone пишет: On Monday 16 Feb 2015 at 16:20, Yuri Voinov wrote: root @ cthulhu / # ps axuf usage: ps

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just look at this: http://i.imgur.com/fFRW3Hv.png Now i've tried to toggle 'I' on top. To show idle processes. Did you seen? 16.02.15 22:48, Eliezer Croitoru пишет: Hey Yuri, I would try first ps -aux just to find out if this is the right way

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Antony Stone
On Monday 16 Feb 2015 at 16:20, Yuri Voinov wrote: root @ cthulhu / # ps axuf usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ] [ -u userlist ] [ -U userlist ] [ -G grouplist ] [ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ] May be, you want to know my

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 root @ cthulhu / # ps axuf usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ] [ -u userlist ] [ -U userlist ] [ -G grouplist ] [ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ] 'format' is one or more of:

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 root @ cthulhu / # ps -aux ps: unknown user x Really, I don't understand subject of discussion. I think, will good to have possibility to autoclose idle Squid redirectors after time specified. Regardless of the operating system. Like autoclose

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think, this looks like platform-specific bug. Yes, sir. AFAIK, Solaris idle processes almost never has state 'Idle', but 'Sleep', so this is why Squid doesn't shutting down idle redirectors. Amos, is this explanation possible? 16.02.15 22:48,

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Eliezer Croitoru
Hey Yuri, I would try first ps -aux just to find out if this is the right way to use ps in solaris. If it works show me the details first and we will see what to do next. Eliezer On 16/02/2015 18:37, Yuri Voinov wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes. root @ cthulhu /

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Eliezer Croitoru
On 16/02/2015 17:27, Yuri Voinov wrote: root @ cthulhu / # top -n 1 -b last pid: 43244; load avg: 0.06, 0.07, 0.07; up 7+22:16:44 21:27:15 62 processes: 61 sleeping, 1 on cpu CPU states: 99.3% idle, 0.5% user, 0.2% kernel, 0.0% iowait, 0.0% swap Kernel: 510 ctxsw, 4 trap, 754 intr,

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 We are talking not about the differences between any *NIX-based or *NIX-like OS. Android just an example. I guess an observerd behaviour of redirector's processes is not expected. Now I've observed mentioned behaviour of redirectors over one month. I

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 root @ cthulhu / # ps -efl|grep squidGuard|grep -v grep|awk {'print $2 $5'} S 6475 Now you can see one squidGuard process. Squid was restarted hour ago. Process is idle (no traffic now), but this is as desired by config. As you can see, it state

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Now: 2015/02/16 23:10:23 kid1| store_swap_size = 29826351.50 KB 2015/02/16 23:10:24 kid1| storeLateRelease: released 0 objects 2015/02/16 23:15:01 kid1| Starting new redirector helpers... 2015/02/16 23:15:01 kid1| helperOpenServers: Starting 1/100

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Eliezer Croitoru
On 16/02/2015 21:10, Yuri Voinov wrote: root @ cthulhu / # ps -e Yuri, Can you find the right ps command that will include user and memory usage by each process? Thanks, Eliezer ___ squid-users mailing list squid-users@lists.squid-cache.org

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Eliezer Croitoru
Hey Yuri, I looked eventually at Solaris 11 man pages at: http://docs.oracle.com/cd/E26502_01/html/E29030/ps-1.html#scrolltoc Just to be sure the next command would run: ps -e There is no subject to the discussion yet since the issue is yet to be defined as an issue. You mentioned Android

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Eliezer Croitoru
Hey Yuri, You missed the whole point. I didn't wanted you to grep any output. I wanted to see the whole server process list as a whole to understand the issue you see. If you see the server only with grep you might missing something since I have yet to see your server do any swap what so ever

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Amos Jeffries
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/02/2015 4:27 a.m., Yuri Voinov wrote: Yep. 16.02.15 20:58, Eliezer Croitoru пишет: On 16/02/2015 15:23, Yuri Voinov wrote: http://i58.tinypic.com/rsqwxh.png 0 shutting down. Always. During nights and weekends. Um, how often do you

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Amos Jeffries
On 17/02/2015 1:30 p.m., Eliezer Croitoru wrote: Hey Marcus, Great to hear about it!! I must say that the mentioned issues are the killers for squidGuard usage in many systems. Yeah and one of the many reasons its effectively a dead project now. IIRC, Shalla were going to maintain SG for

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Eliezer Croitoru
Hey Yuri, There are couple sides and side-effects to the issue you describe. If it's OK with you I will for a sec look aside squid and the helpers code to another issue in Computer Science. Let say we are running some server\software which it's purpose is to calculate the distance from point

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Yuri Voinov
root @ cthulhu / # top -n1 -b top: illegal option -- 1 Top version 3.7 Usage: top [-ISTabcinqu] [-d x] [-s x] [-o field] [-U username] [number] root @ cthulhu / # top -n -b last pid: 7353; load avg: 0.16, 0.14, 0.13; up 7+20:05:37 19:16:08 72 processes: 71 sleeping, 1 on cpu CPU

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Yuri Voinov
http://i58.tinypic.com/rsqwxh.png 0 shutting down. Always. During nights and weekends. 16.02.15 19:13, Eliezer Croitoru пишет: Hey Yuri, There are couple sides and side-effects to the issue you describe. If it's OK with you I will for a sec look aside squid and the helpers code to another

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Eliezer Croitoru
Hey Yuri, OK I have seen something... Now we might need also the virtual memory which might be vsz. And the cachemgr output is not from squidview.. The last image I have seen from cachemgr was much helpful(with 10 helpers). From what I have seen until now squidGuard uses about 13 MB of ram

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Eliezer Croitoru
On 16/02/2015 15:23, Yuri Voinov wrote: http://i58.tinypic.com/rsqwxh.png 0 shutting down. Always. During nights and weekends. Are you talking about these 10? I am unsure I understand the issue yet..(I need to understand a bit more), is this the situation which stays forever? Eliezer

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 root @ cthulhu / # top -n 1 -b last pid: 43244; load avg: 0.06, 0.07, 0.07; up 7+22:16:44 21:27:15 62 processes: 61 sleeping, 1 on cpu CPU states: 99.3% idle, 0.5% user, 0.2% kernel, 0.0% iowait, 0.0% swap Kernel: 510 ctxsw, 4 trap, 754

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-16 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yep. 16.02.15 20:58, Eliezer Croitoru пишет: On 16/02/2015 15:23, Yuri Voinov wrote: http://i58.tinypic.com/rsqwxh.png 0 shutting down. Always. During nights and weekends. Are you talking about these 10? I am unsure I understand the issue

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-15 Thread Brett Lymn
On Fri, Feb 13, 2015 at 02:44:14PM +0600, Yuri Voinov wrote: In addition, the operating system with a constant load of RAM in the 90-95% is just on the edge of a swap or a kernel panic. For Solaris this is not care - but it has a very specific kernel. Most of the other OS just goes to

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-13 Thread Yuri Voinov
I am ready to sponsor the development of such a patch - but only as a basic redirector's functional and subject to the inclusion in the upstream. 13.02.15 6:34, Amos Jeffries пишет: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/02/2015 8:54 a.m., Yuri Voinov wrote: So simple. I want

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-13 Thread Yuri Voinov
Amos, I understand the idea of the current implementation. I read the manual no one time. I only want one thing - let the administrator to decide how to adjust his system to him. Not through patches. By means of parameters. Squid runs on different OS'es, and it is logical to have a flexible

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-12 Thread Marcus Kool
Yuri, I suggest to consider using ufdbGuard instead of squidGuard. Besides being faster is has a different structure: the redirector that squid starts is a small lightweight process that forwards requests to ufdbguardd, a multithreaded daemon which has the URL database in memory. The database

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-12 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am quite satisfied with the existing configuration and just want more flexibility in the management of redirectors. ;) 13.02.15 2:06, Marcus Kool пишет: Yuri, I suggest to consider using ufdbGuard instead of squidGuard. Besides being faster

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-12 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I want to say: A system with low consumpted memory will starts processes more quickly against system with low free memory and overloaded cheduler and more sleep processes in most cases. So, IMHO better solution is possibility to shutdown idle

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-12 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 13.02.15 0:49, Amos Jeffries пишет: On 13/02/2015 7:01 a.m., Yuri Voinov wrote: Hi gents, subj. And, of course - question. How to do that? I've don't seen this, if it exists. For example, for this config stub: url_rewrite_program

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-12 Thread Amos Jeffries
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/02/2015 7:01 a.m., Yuri Voinov wrote: Hi gents, subj. And, of course - question. How to do that? I've don't seen this, if it exists. For example, for this config stub: url_rewrite_program /usr/local/bin/squidGuard -c

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-12 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 So simple. I want to see only one additional parameter. idle_timeout. When I specify it to 0 - by default - all started rewriter processess remains after user requests, but! it I specify it over 0 in seconds - all idle rewriters after timeout must

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-12 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I talking not about another redirector. But about smart Squid behaviour with redirector's children. If I wanted to change redirector - I would have already done it. I am aware of the existence of ufdvGuard. Moreover - I've tried to build it on my

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-12 Thread Marcus Kool
On 02/12/2015 06:11 PM, Yuri Voinov wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I talking not about another redirector. But about smart Squid behaviour with redirector's children. If I wanted to change redirector - I would have already done it. I am aware of the existence of

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-12 Thread Yuri Voinov
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 BTW, now I have average 300-400 Mb total memory consumption over all working instances of squidGuard. And see only one problem - idle processes never dies after peak hours, and therefore idle= parameter is meaningless. 13.02.15 2:06, Marcus Kool

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-12 Thread Amos Jeffries
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/02/2015 9:25 a.m., Yuri Voinov wrote: BTW, now I have average 300-400 Mb total memory consumption over all working instances of squidGuard. And see only one problem - idle processes never dies after peak hours, and therefore idle=

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-12 Thread Amos Jeffries
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/02/2015 8:05 a.m., Yuri Voinov wrote: I want to say: A system with low consumpted memory will starts processes more quickly against system with low free memory and overloaded cheduler and more sleep processes in most cases. So, IMHO

Re: [squid-users] Is Squid can shutdown unused idle redirector's children?

2015-02-12 Thread Amos Jeffries
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/02/2015 8:54 a.m., Yuri Voinov wrote: So simple. I want to see only one additional parameter. idle_timeout. When I specify it to 0 - by default - all started rewriter processess remains after user requests, but! it I specify it