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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message