From owner-freebsd-hackers Thu Apr 16 22:47:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA27479 for freebsd-hackers-outgoing; Thu, 16 Apr 1998 22:47:46 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from vader.cs.berkeley.edu (vader.CS.Berkeley.EDU [128.32.38.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA27408 for ; Fri, 17 Apr 1998 05:47:33 GMT (envelope-from asami@vader.cs.berkeley.edu) Received: from silvia.HIP.Berkeley.EDU (ala-ca34-10.ix.netcom.com [207.93.143.138]) by vader.cs.berkeley.edu (8.8.7/8.7.3) with ESMTP id WAA02015; Thu, 16 Apr 1998 22:47:21 -0700 (PDT) Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.8.8/8.6.9) id WAA11559; Thu, 16 Apr 1998 22:46:35 -0700 (PDT) Date: Thu, 16 Apr 1998 22:46:35 -0700 (PDT) Message-Id: <199804170546.WAA11559@silvia.HIP.Berkeley.EDU> To: danny@hilink.com.au CC: freebsd-hackers@FreeBSD.ORG In-reply-to: (danny@hilink.com.au) Subject: Re: FreeBSD parsing in Squid. From: asami@FreeBSD.ORG (Satoshi Asami) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * I run squid 1.1.20 at FreeBSD 4.4. According to the response time return * from client, it is TEN TIMES SLOWER than I run it at SunOS v5. When I * compare the result from gprof, I find that squid spent considerably amount * of time (22.9%) in parseIntegerValue, decode_addr, aclParseIpData, * safe_inet_addr, storeDirClean, urlParse, parseHttpRequest and sscanf at * FreeBSD while only 3.7% of time spent in the same trace of code. Can * anyone tell me why? I don't know, but if it's *ten times slower*, the time it takes inside squid is not the difference unless you can find a few functions that are taking up 90% of the time. Most likely your squid is spending most of the time waiting for something. How are your network, disk, etc., configured? Are the hardware and network connections identical? Also, "4.4" is not a valid FreeBSD version (I assume you got confused by the "based on 4.4 BSD-Lite2" part), let us know what version of FreeBSD you are running ("uname -a") will tell you. Satoshi P.S. I'm not an expert in squid configuration, so please reply to the list. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message