From owner-freebsd-performance@FreeBSD.ORG Tue Apr 15 05:38:57 2003 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F327137B401 for ; Tue, 15 Apr 2003 05:38:56 -0700 (PDT) Received: from relay2.mecon.ar (relay2.mecon.ar [168.101.16.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 859AB43FCB for ; Tue, 15 Apr 2003 05:38:55 -0700 (PDT) (envelope-from fernando@mecon.gov.ar) Received: from racing.mecon.ar (racing.mecon.ar [168.101.133.15]) by relay2.mecon.ar (8.12.6/8.12.6) with ESMTP id h3FCcrMp059773 for ; Tue, 15 Apr 2003 09:38:53 -0300 (ART) (envelope-from fernando@mecon.gov.ar) Received: from racing.mecon.ar (meyosp.mecon.gov.ar [10.11.0.149]) by racing.mecon.ar (8.12.6/8.12.6) with ESMTP id h3FCcmba076746; Tue, 15 Apr 2003 09:38:48 -0300 (ART) (envelope-from fernando@mecon.gov.ar) Received: from bal740r0.mecon.gov.ar (bal740r0.mecon.ar [10.11.1.11]) by racing.mecon.ar (8.12.6/8.12.6) with ESMTP id h3FCcmk1076744; Tue, 15 Apr 2003 09:38:48 -0300 (ART) (envelope-from fernando@mecon.gov.ar) Received: from bal740r0.mecon.gov.ar (localhost [127.0.0.1]) by bal740r0.mecon.gov.ar (8.12.6/8.12.6) with ESMTP id h3FCcmVk000501; Tue, 15 Apr 2003 09:38:48 -0300 (ART) (envelope-from fernando@mecon.gov.ar) Received: (from fpscha@localhost) by bal740r0.mecon.gov.ar (8.12.6/8.12.6/Submit) id h3FCclMC000500; Tue, 15 Apr 2003 09:38:47 -0300 (ART) (envelope-from fernando@mecon.gov.ar) X-Authentication-Warning: bal740r0.mecon.gov.ar: fpscha set sender to fernando@mecon.gov.ar using -f Date: Tue, 15 Apr 2003 09:38:47 -0300 From: Fernando Schapachnik To: freebsd-performance@freebsd.org Message-ID: <20030415123847.GC318@bal740r0.mecon.gov.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-OS: FreeBSD 4.7 - http://www.freebsd.org Subject: No buffer space available X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 12:38:57 -0000 Hi, First of all, I hope this is on-topic. Please let me know otherwise. Scenario: 4.7p10 machine, 128 Mb RAM, running 3 squid processes (each one with a different ACL set on a different port). Everything fine. Now I'm trying to end up with one process with a merge of the ACLs, receiving the load of the previous 3. ACLs are in files and account for 168 Kb. After few seconds of running the unified process, squid reports comm_open: socket failure: (55) No buffer space available which maps to: if ((new_socket = socket(AF_INET, sock_type, proto)) < 0) The system doesn't seem to be lucking mbufs (according to netstat -b), nor memory, nor file descriptors. I recompiled kernel with MAXSSIZ="(256*1024*1024)" to get the stack size lifted, but no change. Top shows: ---------------------------------------------------------------------------- last pid: 453; load averages: 0.48, 0.30, 0.13 up 0+00:02:32 08:48:00 36 processes: 1 running, 35 sleeping CPU states: 0.4% user, 0.0% nice, 0.4% system, 0.0% interrupt, 99.2% idle Mem: 52M Active, 4608K Inact, 14M Wired, 3912K Cache, 22M Buf, 45M Free Swap: 500M Total, 13M Used, 487M Free, 2% Inuse PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 187 nobody 2 0 46440K 45624K poll 0:07 0.59% 0.59% squid 453 root 28 0 1900K 956K RUN 0:00 0.56% 0.15% top ---------------------------------------------------------------------------- # more /proc/187/rlimit cpu -1 -1 fsize -1 -1 data 536870912 536870912 stack 268435456 268435456 core -1 -1 rss -1 -1 memlock -1 -1 nproc 896 896 nofile 1792 1792 sbsize -1 -1 vmem -1 -1 Each squid individual process has more or less the same memory footprint of the merged one. Squid mailing lists show post with similar problems but no solutions. Any ideas? Thanks in advance. Fernando Schapachnik