Re: open("/dev/cuaaX") is slow
From: Daniel O'Connor (doconnor_at_gsoft.com.au)
Date: 04/29/05
- Previous message: Petri Helenius: "Re: Very low disk performance Highpoint 1820a"
- In reply to: Andrew L. Neporada: "open("/dev/cuaaX") is slow"
- Next in thread: Andrew L. Neporada: "Re: open("/dev/cuaaX") is slow"
- Reply: Andrew L. Neporada: "Re: open("/dev/cuaaX") is slow"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- application/pgp-signature attachment: stored
- Previous message: Petri Helenius: "Re: Very low disk performance Highpoint 1820a"
- In reply to: Andrew L. Neporada: "open("/dev/cuaaX") is slow"
- Next in thread: Andrew L. Neporada: "Re: open("/dev/cuaaX") is slow"
- Reply: Andrew L. Neporada: "Re: open("/dev/cuaaX") is slow"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|