From owner-freebsd-hackers Wed Sep 19 1:25:27 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from reservoir.absolight.com (reservoir.absolight.com [212.43.217.72]) by hub.freebsd.org (Postfix) with ESMTP id 407DD37B425 for ; Wed, 19 Sep 2001 01:25:09 -0700 (PDT) Received: from bilbo.in.mat.cc (bilbo.in.mat.cc [212.43.217.121]) by reservoir.absolight.com (Postfix) with ESMTP id 10920D3B05; Wed, 19 Sep 2001 10:25:07 +0200 (CEST) Received: from bilbo.org (localhost [127.0.0.1]) by bilbo.in.mat.cc (Postfix) with ESMTP id 0A66965554; Wed, 19 Sep 2001 12:26:45 +0200 (CEST) Received: from club-internet.fr (sauron.in.mat.cc [212.43.217.122]) by bilbo.in.mat.cc (Postfix) with ESMTP id 506D765554; Wed, 19 Sep 2001 12:26:42 +0200 (CEST) Message-ID: <3BA8565D.4A9686E3@club-internet.fr> Date: Wed, 19 Sep 2001 10:25:01 +0200 From: Mathieu Arnold Organization: http://www.absolight.com/ X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Mathieu Arnold Cc: IP Filter , freebsd-hackers@freebsd.org Subject: Re: no memory problem References: <20010916182420.7CD723E02@drawbridge.oasis.IAEhv.nl> <3BA5234D.77226C3A@club-internet.fr> <3BA7AE18.4B490E6B@club-internet.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mathieu Arnold wrote: > > Mathieu Arnold wrote: > > > > Frank Volf wrote: > > > > > > Mathieu Arnold wrote: > > > > > What is the output of > > > > > > > > > > vmstat -m | egrep -i '(pfil|filter|temp)' > > > > > > > > well, for now, it's ok, as I rebooted the box yesterday > > > > temp 27491 12187K 16963K 40960K 15021633 0 0 > > > > 16,32,64,128,256,512,1K,4K,16K,512K > > > > but it will soon reach the 40960K limit. And I don't see where I can > > > > move this limit upper. > > > > > > You haven't reached the limits yet. I was wondering whether you were hitting > > > the limit for the zone or the limit for all malloced area. > > > > well, that's because I rebooted the box, usually, the max is 40964K. > > here we go again : > IP states added: > 9469918 TCP > 1654588 UDP > 1451233 ICMP > 2869559782 hits > 100258517 misses > 0 maximum > 72605 no memory > 2915 bkts in use > 9766 active > 3099381 expired > 9393987 closed > > temp 82729 39223K 40961K 40960K 51082243 0 442 > 16,32,64,128,256,512,1K,4K,16K,512K > > does someone here know how to raise that 40960K limit ? answering to myself, I found out (raised kern.vm.kmem.size in my loader.conf). but my point now is this : # ifdef M_PFIL # define KMALLOC(a, b) MALLOC((a), b, sizeof(*(a)), M_PFIL, M_NOWAIT) # define KMALLOCS(a, b, c) MALLOC((a), b, (c), M_PFIL, M_NOWAIT) # define KFREE(x) FREE((x), M_PFIL) # define KFREES(x,s) FREE((x), M_PFIL) # else # define KMALLOC(a, b) MALLOC((a), b, sizeof(*(a)), M_TEMP, M_NOWAIT) # define KMALLOCS(a, b, c) MALLOC((a), b, (c), M_TEMP, M_NOWAIT) # define KFREE(x) FREE((x), M_TEMP) # define KFREES(x,s) FREE((x), M_TEMP) # endif /* M_PFIL */ which is in ip_compat.h from the ipfilter source tree. why does it not define somewhere a space for itself ? should it be : MALLOC_DEFINE(M_PFIL, "ipfilter", "some bigger description"); or static MALLOC_DEFINE(M_PFIL, "ipfilter", "some bigger description"); ? regards -- Mathieu Arnold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message