Re: open("/dev/cuaaX") is slow

From: Daniel O'Connor (doconnor_at_gsoft.com.au)
Date: 04/29/05

  • Next message: Andrew L. Neporada: "Re: open("/dev/cuaaX") is slow"
    To: freebsd-hackers@freebsd.org
    Date: Fri, 29 Apr 2005 22:30:32 +0930
    
    
    

    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 frequently)

    -- 
    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
    
    



  • Next message: Andrew L. Neporada: "Re: open("/dev/cuaaX") is slow"

    Relevant Pages

    • Re: open("/dev/cuaaX") is slow
      ... On Fri, 29 Apr 2005 23:21, Andrew L. Neporada wrote: ... The only signal cuaa devices ignore is carrier detect I believe. ... for Genesis Software - http://www.gsoft.com.au ...
      (freebsd-hackers)
    • Re: Recent ifconfig changes choke on fwip
      ... On Sat, 11 Dec 2004 03:37, Andrew R. Reiter wrote: ... > I missed the earlier post, how to reproduce this? ... for Genesis Software - http://www.gsoft.com.au ...
      (freebsd-current)
    • Re: latest openssl vulnerability
      ... Andrew L. Neporada wrote: ... dynamically linked binaries with statically embedded OpenSSL? ... To unsubscribe, ...
      (FreeBSD-Security)