From owner-freebsd-questions Mon Sep 25 5: 1:17 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost.esil.univ-mrs.fr (jiyu.esil.univ-mrs.fr [139.124.44.249]) by hub.freebsd.org (Postfix) with ESMTP id 020BF37B422 for ; Mon, 25 Sep 2000 05:01:12 -0700 (PDT) Received: from bsdfr.org (cam.esil.univ-mrs.fr [139.124.44.65]) by mailhost.esil.univ-mrs.fr (8.9.3/ESIL/jtpda-5.3.1) with ESMTP id OAA49647 ; Mon, 25 Sep 2000 14:01:01 +0200 (CEST) Message-ID: <39CF3E77.CB1F246B@bsdfr.org> Date: Mon, 25 Sep 2000 14:00:55 +0200 From: cam Reply-To: cam@bsdfr.org X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.17 i686) X-Accept-Language: en MIME-Version: 1.0 To: Mike Doyle Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Question about sysctl References: <3.0.5.32.20000925120219.0083e1c0@199.107.2.1> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Doyle wrote: > I need a little pointer on the use of sysctl. > > Background to the problem: > This morning I noticed a warning on my server console > "... squid[pid]: WARNING! Your cache is running out of file descriptors" > > Now this has never happened before. > Reading the old questions/answers on the Squid website, it refered to a > utility > called "ulimit". But "man ulimit" on FreeBSD returns nothing. > > However I remembered the sysctl command, and one of the options sysctl > can set/change is "kern.maxfiles" (currently 1576) > > Is this what I need to increase? If so, will I need to re-start the server > afterwards? Or simply re-start Squid? > > I have never worried about this before now because the out-of-the-box > configurations have "just worked" for the last three years... > hi, I think you just have to type : sysctl -w kern.maxfiles= to make it work fine. You also need to put this line into your /etc/rc.sysctl to make change after each reboot. You don't have to restart anything, even squid. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message