From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 13:01:10 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E059216A4CE for ; Fri, 29 Apr 2005 13:01:10 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A562843D31 for ; Fri, 29 Apr 2005 13:01:09 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j3TD0m1I096806; Fri, 29 Apr 2005 22:30:50 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 29 Apr 2005 22:30:32 +0930 User-Agent: KMail/1.8 References: <20050429112634.GA63285@nas.dgap.mipt.ru> In-Reply-To: <20050429112634.GA63285@nas.dgap.mipt.ru> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1469801.0Aq9nvMhEH"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200504292230.40795.doconnor@gsoft.com.au> X-Spam-Score: -2.5 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Subject: Re: open("/dev/cuaaX") is slow X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 13:01:11 -0000 --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--