Date: Fri, 29 Apr 2005 22:30:32 +0930 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-hackers@freebsd.org Subject: Re: open("/dev/cuaaX") is slow Message-ID: <200504292230.40795.doconnor@gsoft.com.au> In-Reply-To: <20050429112634.GA63285@nas.dgap.mipt.ru> References: <20050429112634.GA63285@nas.dgap.mipt.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1469801.0Aq9nvMhEH Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 29 Apr 2005 20:56, Andrew L. Neporada wrote: > It seems that reopening /dev/cuaaX devices after close() takes exactly > 3 seconds on FreeBSD 4.10 (sorry, I've no 5.x systems available at the > moment). > > Here is output of attached program: > open() time: 155 us > open() time: 2995729 us > open() time: 2999811 us > open() time: 2999608 us > open() time: 2999711 us > open() time: 2999720 us > open() time: 2999713 us > open() time: 2999744 us > open() time: 2999673 us > open() time: 2999706 us > > Is this 3 second delay necessary? Can I get rid of it? man comcontrol Try trimming the dtrwait value back and see how it goes. (Although I'm not sure why you want to open/close a serial port so frequent= ly) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1469801.0Aq9nvMhEH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCci/45ZPcIHs/zowRAn0ZAJ468ZmvJQnUUPReBdDt5UkJ/ck7PQCeMG+B IA/ZyxqpOOziZHLgnDLUwv4= =KmtW -----END PGP SIGNATURE----- --nextPart1469801.0Aq9nvMhEH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200504292230.40795.doconnor>