Re: reduce usage of mbuf cluster

2018-06-13 Thread Alexander Bluhm
On Wed, Jun 13, 2018 at 01:20:29PM +0900, YASUOKA Masahiko wrote: > > The MCLGET() cannot be called anymore. Can we remove it and add a > > compile time assert instead? > > > > CTASSERT(sizeof(struct ip) + sizeof(struct tcphdr) <= MHLEN); > > CTASSERT(sizeof(struct ip6_hdr) +

Re: reduce usage of mbuf cluster

2018-06-12 Thread YASUOKA Masahiko
On Wed, 13 Jun 2018 00:34:28 +0200 Alexander Bluhm wrote: > On Tue, Jun 12, 2018 at 01:46:48PM +0900, YASUOKA Masahiko wrote: >> > I found this because I wonder why my company, IIJ's HTTP proxy servers >> > started using a lot of mbuf clusters after a certain version. > > Are you using IPv4 or

Re: reduce usage of mbuf cluster

2018-06-12 Thread Claudio Jeker
On Wed, Jun 13, 2018 at 12:34:28AM +0200, Alexander Bluhm wrote: > On Tue, Jun 12, 2018 at 01:46:48PM +0900, YASUOKA Masahiko wrote: > > > I found this because I wonder why my company, IIJ's HTTP proxy servers > > > started using a lot of mbuf clusters after a certain version. > > Are you using

Re: reduce usage of mbuf cluster

2018-06-12 Thread Alexander Bluhm
On Tue, Jun 12, 2018 at 01:46:48PM +0900, YASUOKA Masahiko wrote: > > I found this because I wonder why my company, IIJ's HTTP proxy servers > > started using a lot of mbuf clusters after a certain version. Are you using IPv4 or IPv6? > > + if (m->m_len + sizeof(struct tcphdr) >=

Re: reduce usage of mbuf cluster

2018-06-11 Thread YASUOKA Masahiko
Let me update the diff On Tue, 12 Jun 2018 13:39:51 +0900 (JST) YASUOKA Masahiko wrote: > Currently t_template of tcpcb is a mbuf cluster. This happened when > max_linkhdr is increased from 16 to 64 (1.44 of > sys/kern/uipc_domain.c). > > I found this because I wonder why my company, IIJ's

reduce usage of mbuf cluster

2018-06-11 Thread YASUOKA Masahiko
Currently t_template of tcpcb is a mbuf cluster. This happened when max_linkhdr is increased from 16 to 64 (1.44 of sys/kern/uipc_domain.c). I found this because I wonder why my company, IIJ's HTTP proxy servers started using a lot of mbuf clusters after a certain version. ok? It doesn't seem