tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: tcp_vtw fail (was: Re: CVS commit: src)



> Yeah, so this turns out to be because the tcp_vtw code unconditionally
> allocates about 9M of memory for vestigial connection entries (or
> some such thing) even when it's AFAICT not in use.
> 
> plz fix.
> 
> In the meantime, this patch works around the problem while hopefully
> not making the vtw code totally useless:
> 
> diff -r e29d039dd4dc sys/netinet/tcp_subr.c
> --- a/sys/netinet/tcp_subr.c  Tue May 17 04:03:21 2011 -0400
> +++ b/sys/netinet/tcp_subr.c  Tue May 17 04:04:33 2011 -0400
> @@ -215,7 +215,7 @@
>  int  tcp4_vtw_enable = 0;            /* 1 to enable */
>  int  tcp6_vtw_enable = 0;            /* 1 to enable */
>  int  tcp_vtw_was_enabled = 0;
> -int  tcp_vtw_entries = 1 << 16;      /* 64K vestigial TIME_WAIT entries */
> +int  tcp_vtw_entries = 1 << 4;       /* 16 vestigial TIME_WAIT entries */
>  
>  /* tcb hash */
>  #ifndef TCBHASHSIZE

This patch also makes the latest NetBSD/x68k boot.
(X680x0 has only 12MB RAM)

I have had to stick around 20110502 sources to debug MD code...

---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index