Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2003 17:10:06 -0700 (PDT)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/51982: sio1: interrupt-level buffer overflows
Message-ID:  <200305090010.h490A6Pl066730@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/51982; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: Ian Freislich <ianf@za.uu.net>
Cc: FreeBSD-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Subject: Re: kern/51982: sio1: interrupt-level buffer overflows
Date: Fri, 9 May 2003 10:04:41 +1000 (EST)

 On Fri, 9 May 2003, Bruce Evans wrote:
 
 > ...
 > The original version provides enough buffering for about 4 hardclock
 > ticks (default 40 msec on i386's; much smaller on some other arches)
 > of input at full speed.  The third version provides 400 msec of
 > buffering.
 
 PS: you should also try to find what is holding Giant for more than 40
 msec.  Most syscalls hold it from near their start to near their
 completion, but most syscalls don't take nearly that long.  It is
 easy to write broken ones that do - just spin for a long time, or
 return a huge amount of data via sysctl.
 
 Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305090010.h490A6Pl066730>