Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 2003 10:04:41 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Ian Freislich <ianf@za.uu.net>
Cc:        FreeBSD-gnats-submit@freebsd.org
Subject:   Re: kern/51982: sio1: interrupt-level buffer overflows
Message-ID:  <20030509095729.F61896@gamplex.bde.org>
In-Reply-To: <20030509092253.Y61808@gamplex.bde.org>
References:  <E19CgpH-0001JQ-00@brane-dead.digs.iafrica.com> <20030509092253.Y61808@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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?20030509095729.F61896>