From owner-freebsd-performance@FreeBSD.ORG Tue Apr 15 06:03:25 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 C991537B401 for ; Tue, 15 Apr 2003 06:03:25 -0700 (PDT) Received: from otter3.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE75143FA3 for ; Tue, 15 Apr 2003 06:03:22 -0700 (PDT) (envelope-from anderson@centtech.com) Received: from centtech.com ([204.177.173.226]) by otter3.centtech.com (8.12.3/8.12.3) with ESMTP id h3FD3L56017330; Tue, 15 Apr 2003 08:03:22 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <3E9C035B.3000301@centtech.com> Date: Tue, 15 Apr 2003 08:04:27 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Fernando Schapachnik References: <20030415123847.GC318@bal740r0.mecon.gov.ar> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-performance@freebsd.org Subject: Re: 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 13:03:26 -0000 Can you do a netstat -s and send that? Also, have you done any sysctl tweaks? Like maxsoconn? Eric Fernando Schapachnik wrote: >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 >_______________________________________________ >freebsd-performance@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-performance >To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org" > >