From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 29 22:06:49 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66930106564A for ; Mon, 29 Nov 2010 22:06:49 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id ED0078FC08 for ; Mon, 29 Nov 2010 22:06:48 +0000 (UTC) Received: by wwf26 with SMTP id 26so756235wwf.31 for ; Mon, 29 Nov 2010 14:06:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=2TcNAkhkaz1Rkq8xewwvT1X8GG8CTcy3zVULb+9D/eI=; b=YSZJiEj+BdhRt4J2pKwk/UfwHDTtVqN8DavehuEb2EOHyRAiqk4NgQm+rmIOmN3Tlp gcQzlw0F37dUn+vBbgHNffXUiqdfJbvsleMdvR1/Aaviy93ZRcvlp4kst7FTK9jnjZDF 1wFFfaW1f5Ut9GmiOcYV5ccW3yAYjX+yvuYyQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=f82sfhGHCvMAeydGX+1Go4Y72YyBKACwhtZ8cp80T9oOJ8Dsv94wymE21sL7DSkHuK eJDMkjiZxgg9UIrbSGdh+eEIUuhLTIOxj6Fj6ZIuwEI/mrJB8KXzq+OXSxBDsJ+4Lh1G 6/IOniRncw5gCvhvj/DlUpAFzR7fH2l5WBtFk= MIME-Version: 1.0 Received: by 10.216.175.18 with SMTP id y18mr6320444wel.30.1291068406487; Mon, 29 Nov 2010 14:06:46 -0800 (PST) Sender: yanegomi@gmail.com Received: by 10.216.198.27 with HTTP; Mon, 29 Nov 2010 14:06:46 -0800 (PST) In-Reply-To: References: <98D05F98AE284E59B83CB2FA55993387@GRANTLAPTOP> Date: Mon, 29 Nov 2010 14:06:46 -0800 X-Google-Sender-Auth: zG1Q3ZSLUIIm9D36clk6PQObho8 Message-ID: From: Garrett Cooper To: Grant Peel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: sbsize - console messages X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2010 22:06:49 -0000 On Mon, Nov 29, 2010 at 1:36 PM, Grant Peel wrote: > -----Original Message----- From: Garrett Cooper > Sent: Monday, November 29, 2010 11:29 AM > To: Grant Peel > Cc: freebsd-hackers@freebsd.org > Subject: Re: sbsize - console messages > > On Mon, Nov 29, 2010 at 4:38 AM, Grant Peel wrote: >> >> Hi all, >> >> I orriginally posted this to -questions and someone there suggest I post >> here ... >> >> I am using FreeBSD 8.0 and am getting lots of these: >> >> negative sbsize for uid =3D 0 >> +negative sbsize for uid =3D 0 >> +negative sbsize for uid =3D 0 >> +negative sbsize for uid =3D 0 >> +negative sbsize for uid =3D 0 >> >> any ideas what it means or how to cure it?, or even how to trace it down= ? > > =A0 Read limit under csh(1) or ulimit under sh(1) for more details and > try to apply the change to login.conf and rebuild the database. ... > Garrett, > > Thanks for the hint. > > I am looking through login.conf and from what I can see none of the defau= lts > have been modified. Does this then indicate that there might be an issue > with a process trying to consume to many reasources? > > FWIW I only see the messages occasionally in the logs and the console. Potentially, yes. The other thing to note is that the application that you're using may be setting the limit via setrlimit(2). Flipping through the mbuf(9) manpage (because I had forgotten), mbufs are zone allocated. The number of mbufs (which is related to sbsize) could be better tuned by tuning the zone size, maybe... I'd wait for someone more knowledgeable in this area to reply though because my comments are merely speculation as I haven't actually tuned the VM system extensively to improve my systems' performance as most out-of-the-box settings work for me :/.. Thanks, -Garrett