Re: recv buffer scaling doesn't work

2010-12-03 Thread Ben Aitchison
On Fri, Dec 03, 2010 at 05:59:54PM +0100, Claudio Jeker wrote: > On Fri, Dec 03, 2010 at 04:14:37PM +0100, Alexander Bluhm wrote: > > On Fri, Dec 03, 2010 at 01:12:57PM +0100, Claudio Jeker wrote: > > > Window size scaling is disabled when an application is issuing a > > > setsockopt() changing SO_

Re: mbrtowc(3) man page again

2010-12-03 Thread Stefan Sperling
On Fri, Dec 03, 2010 at 07:46:37PM +0001, Jason McIntyre wrote: > On Fri, Dec 03, 2010 at 07:27:46PM +0100, Stefan Sperling wrote: > > I spent some more time trying to understand the beast that's mbrtowc(3). > > > > some tweaks. Thank you. I found one error: EUC is a stateless encoding. I confu

Re: mbrtowc(3) man page again

2010-12-03 Thread Jason McIntyre
On Fri, Dec 03, 2010 at 07:27:46PM +0100, Stefan Sperling wrote: > I spent some more time trying to understand the beast that's mbrtowc(3). > some tweaks. jmc --- mbrtowc.3 Fri Dec 3 19:33:27 2010 +++ mbrtowc.3.new Fri Dec 3 19:45:19 2010 @@ -39,7 +39,7 @@ .Sh DESCRIPTION The .Fn mb

mbrtowc(3) man page again

2010-12-03 Thread Stefan Sperling
I spent some more time trying to understand the beast that's mbrtowc(3). uwe helped me by discussing over beer and we compared the C99 standard with the current man page. This provided quite a bit of additional insight which prompted me to more or less rewrite the entire page. The resulting diff i

Re: Killing nfsd and then running netstat -m causes lockup

2010-12-03 Thread Daniel Melameth
On Fri, Dec 3, 2010 at 7:09 AM, Mark Kettenis wrote: > Calling pool_init() multiple times is bad. This happens when you kill > nfsd on a machine. > > Daniel does this fix your problem? I applied the patch on a recent snapshot, recompiled the kernel and can no longer reproduce the issue. NFS ope

Re: recv buffer scaling doesn't work

2010-12-03 Thread Claudio Jeker
On Fri, Dec 03, 2010 at 04:14:37PM +0100, Alexander Bluhm wrote: > On Fri, Dec 03, 2010 at 01:12:57PM +0100, Claudio Jeker wrote: > > Window size scaling is disabled when an application is issuing a > > setsockopt() changing SO_SNDBUF or SO_RCVBUF. > > tcp_update_sndspace() still rounds up to tp->

Re: Killing nfsd and then running netstat -m causes lockup

2010-12-03 Thread Daniel Melameth
On Fri, Dec 3, 2010 at 7:09 AM, Mark Kettenis wrote: > Calling pool_init() multiple times is bad. This happens when you kill > nfsd on a machine. > > Daniel does this fix your problem? I'll give this a spin today and let you know. > ok? > > > Index: nfs_syscalls.c >

Could use some help finding my error in pf.conf

2010-12-03 Thread Karen Swarth
This host is a firewall doing NAT for $our_hosts_ext. It allows certain traffic from (a) our local network, $ourlocal and (b) partner networks, $networks_friendly. The intention here was to default-deny all traffic addressed to $our_hosts_ext and this host itself; I wrote separate rules for those

Re: recv buffer scaling doesn't work

2010-12-03 Thread Alexander Bluhm
On Fri, Dec 03, 2010 at 01:12:57PM +0100, Claudio Jeker wrote: > Window size scaling is disabled when an application is issuing a > setsockopt() changing SO_SNDBUF or SO_RCVBUF. tcp_update_sndspace() still rounds up to tp->t_maxseg even if SO_SNDBUF has been set. I was always wondering why the co

Re: Killing nfsd and then running netstat -m causes lockup

2010-12-03 Thread Ted Unangst
On Fri, Dec 3, 2010 at 9:09 AM, Mark Kettenis wrote: > Calling pool_init() multiple times is bad. This happens when you kill > nfsd on a machine. > > Daniel does this fix your problem? > > ok? what happens when you restart nfsd? > > > Index: nfs_syscalls.c >

Re: recv buffer scaling doesn't work

2010-12-03 Thread Ben Aitchison
On Fri, Dec 03, 2010 at 01:12:57PM +0100, Claudio Jeker wrote: > On Fri, Dec 03, 2010 at 11:07:00PM +1300, Ben Aitchison wrote: > > On Wed, Dec 01, 2010 at 10:39:20PM -0500, Ted Unangst wrote: > > > yeah I found bumping to 64k made a big difference too, but for my > > > desktop, i have basically in

Re: Killing nfsd and then running netstat -m causes lockup

2010-12-03 Thread Mark Kettenis
Calling pool_init() multiple times is bad. This happens when you kill nfsd on a machine. Daniel does this fix your problem? ok? Index: nfs_syscalls.c === RCS file: /cvs/src/sys/nfs/nfs_syscalls.c,v retrieving revision 1.91 diff -u

Re: recv buffer scaling doesn't work

2010-12-03 Thread Claudio Jeker
On Fri, Dec 03, 2010 at 11:07:00PM +1300, Ben Aitchison wrote: > On Wed, Dec 01, 2010 at 10:39:20PM -0500, Ted Unangst wrote: > > yeah I found bumping to 64k made a big difference too, but for my > > desktop, i have basically infinite memory, so there's little point > > trying to find the right num

Re: recv buffer scaling doesn't work

2010-12-03 Thread Ben Aitchison
On Wed, Dec 01, 2010 at 10:39:20PM -0500, Ted Unangst wrote: > yeah I found bumping to 64k made a big difference too, but for my > desktop, i have basically infinite memory, so there's little point > trying to find the right number. i went to 256k just to measure the > difference. but this isn't