From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 29 13:48:11 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 B38EB16A4CF for ; Fri, 29 Apr 2005 13:48:11 +0000 (GMT) Received: from dgap-gw.mipt.ru (dgap-gw.mipt.ru [194.85.81.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E96F43D2F for ; Fri, 29 Apr 2005 13:48:09 +0000 (GMT) (envelope-from nepal@nas.dgap.mipt.ru) Received: from localhost (unknown [127.0.0.1]) by dgap-gw.mipt.ru (Postfix) with ESMTP id 804EB60A6720; Fri, 29 Apr 2005 13:48:08 +0000 (UTC) Received: from dgap-gw.mipt.ru ([127.0.0.1]) by localhost (dgap-gw.mipt.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21542-49; Fri, 29 Apr 2005 17:47:59 +0400 (MSD) Received: from nas.dgap.mipt.ru (nas.dgap.mipt.ru [194.85.81.203]) by dgap-gw.mipt.ru (Postfix) with ESMTP id D13C460811BC; Fri, 29 Apr 2005 17:47:59 +0400 (MSD) Received: from nas.dgap.mipt.ru (localhost [127.0.0.1]) by nas.dgap.mipt.ru (8.12.9p2/8.12.9) with ESMTP id j3TDpHma063774; Fri, 29 Apr 2005 17:51:17 +0400 (MSD) (envelope-from nepal@nas.dgap.mipt.ru) Received: (from nepal@localhost) by nas.dgap.mipt.ru (8.12.9p2/8.12.9/Submit) id j3TDpHYV063773; Fri, 29 Apr 2005 17:51:17 +0400 (MSD) (envelope-from nepal) Date: Fri, 29 Apr 2005 17:51:17 +0400 From: "Andrew L. Neporada" To: "Daniel O'Connor" Message-ID: <20050429135117.GA63735@nas.dgap.mipt.ru> References: <20050429112634.GA63285@nas.dgap.mipt.ru> <200504292230.40795.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504292230.40795.doconnor@gsoft.com.au> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new-20030616-p8 (Gentoo) at dgap.mipt.ru X-Spam-Status: No, hits=1.0 tagged_above=0.0 required=7.5 tests=HTTP_COM X-Spam-Level: * cc: freebsd-hackers@freebsd.org 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:48:11 -0000 On Fri, Apr 29, 2005 at 10:30:32PM +0930, Daniel O'Connor wrote: > > 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. Thanks you, it does help. I've thought that DTR signal and associated parameters are ignored while working with cuaa devices, they are used only with ttyd. > > (Although I'm not sure why you want to open/close a serial port so frequently) Some special software I am using works this way :-( > > -- > 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 Andrew.