Re: [squid-users] 'gprof squid squid.gmon' only shows the initial configuration functions

2009-12-09 Thread Robert Collins
On Tue, 2009-12-08 at 15:32 -0800, Guy Bashkansky wrote: I've built squid with the -pg flag and run it in the no-daemon mode (-N flag), without the initial fork(). I send it the SIGTERM signal which is caught by the signal handler, to flag graceful exit from main(). I expect to see

Re: SMB help needed

2009-12-09 Thread Robert Collins
On Wed, 2009-12-09 at 17:40 +1300, Amos Jeffries wrote: During the helper conversion to C++ I found that the various SMB lookup helpers had a lot of duplicate code as each included the entire smbval/smblib validation library as inline code. Delete them. Samba project ships helpers that

Re: SMB help needed

2009-12-09 Thread Amos Jeffries
Robert Collins wrote: On Wed, 2009-12-09 at 17:40 +1300, Amos Jeffries wrote: During the helper conversion to C++ I found that the various SMB lookup helpers had a lot of duplicate code as each included the entire smbval/smblib validation library as inline code. Delete them. Samba project

Re: [squid-users] 'gprof squid squid.gmon' only shows the initial configuration functions

2009-12-09 Thread Guy Bashkansky
Is there an oprofile version for FreeBSD? I thought it is limited to Linux. On FreeBSD I tried pmcstat, but it gives an initialization error. My version of Squid is old and customized (so I can't upgrade) and may not have builtin timers. Since what version did they appear? As for gprof - even

Re: [squid-users] 'gprof squid squid.gmon' only shows the initial configuration functions

2009-12-09 Thread Amos Jeffries
On Wed, 9 Dec 2009 09:57:52 -0800, Guy Bashkansky guy...@gmail.com wrote: Is there an oprofile version for FreeBSD? I thought it is limited to Linux. On FreeBSD I tried pmcstat, but it gives an initialization error. My version of Squid is old and customized (so I can't upgrade) and may

Making Squid 3.1 respect more than one search domain when parsing resolv.conf

2009-12-09 Thread James Brotchie
Hi, Currently (as of 3.1.0.14) Squid's inbuilt resolver only respects the last domain or search directive in /etc/resolv.conf. Before each search or domain directive is processed idnsFreeSearchpath (in dns_internal.cc) is called, clearing any existing search paths. The desired behaviour in our

Re: [squid-users] 'gprof squid squid.gmon' only shows the initial configuration functions

2009-12-09 Thread Adrian Chadd
Talk to the freebsd guys (eg me) about pmcstat and support for your hardware. You may just need to find / organise a backport of the particular hardware support for your platform. I've been working on profiling Lusca with pmcstat and some new-ish tools which use and extend it in useful ways.

Re: Making Squid 3.1 respect more than one search domain when parsing resolv.conf

2009-12-09 Thread Amos Jeffries
James Brotchie wrote: Hi, Currently (as of 3.1.0.14) Squid's inbuilt resolver only respects the last domain or search directive in /etc/resolv.conf. Before each search or domain directive is processed idnsFreeSearchpath (in dns_internal.cc) is called, clearing any existing search paths. The

Re: Making Squid 3.1 respect more than one search domain when parsing resolv.conf

2009-12-09 Thread James Brotchie
Never mind me. If I'd read the resolv.conf man page properly this wouldn't be an issue! On Thu, Dec 10, 2009 at 11:12, James Brotchie brotc...@gmail.com wrote: Hi, Currently (as of 3.1.0.14) Squid's inbuilt resolver only respects the last domain or search directive in /etc/resolv.conf.