From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,95494845ddf9c97d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-06-01 17:46:02 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!ihnp4.ucsd.edu!news.cerf.net!nic.cerf.net!magma From: magma@nic.cerf.net (Ed Romascan) Newsgroups: comp.sys.dec Subject: Re: DEC 3000-300 serial port speed? Date: 1 Jun 1994 22:40:35 GMT Organization: CERFnet Dial n' CERF Customer Distribution: na Message-ID: <2sj2p3$44j@news.cerf.net> References: <2s62k6$f4c@news.CCIT.Arizona.EDU> <1994May28.104510.196@macro.demon.co.uk> <2sgbah$3m5@news.cerf.net> <2sipu8$a1@usenet.pa.dec.com> NNTP-Posting-Host: nic.cerf.net Keywords: long In article <2sipu8$a1@usenet.pa.dec.com> cja@chmist.zso.dec.com (Carl J Appellof) writes: >In article <2sgbah$3m5@news.cerf.net> magma@nic.cerf.net (Ed Romascan) writes: > > [...stuff deleted...] > >Thanks for the good discussion of more modern async interface chips. >I have a few biased comments on some of your discussion. > >> DEC has maintained their disadvantage in the serial speed >>race by maintaining the very ugly "ttyhog" limit of 255 characters >>max on a character queue (clist). Yup, you got it, the ttyin >>routine will flush the clists when ttyhog is exceeded. I am guilty of an ommision here (ok, i'm guilty of a lot of things...) OSF/1 stores the t_hog value in the tty structure, which defaults to 255. The driver writer is free to up it, as I did. Is the user also free to up it with the open flag? (ULTRIX ttyhog *is* hard coded). > >I worked on the OSF/1 STREAMS line discipline module at one time, >and put in this ttyhog limit to mimic the old BSD line discipline. >The theory was that on a timesharing system, you wouldn't want any >individual user to hog too much memory. What would be a better way >of limiting global system resource usage? I agree, you need to bound resource use. The bounds need to grow as machines grow. That old berkeley limit of 255 was devised a long time ago when 1 meg of ram was *alot* and a 100 meg hard drive would get oohs and aaahs. The flamingo that I am using has 96 meg of ram and ~2 gig of disk, stock. Maybe it is time to up the ttyhog default to reflect the times? > >> >> Well, there are ways around these problems, and I have used a lot >>of them. > >The easiest way around this problem with STREAMS is not to push >the line discipline module onto your STREAMS stack if all you want >to do is suck characters in. Your complaints about the amount of >processing it takes to discipline a character are all true. Those >chars are incorrigible! But if you wants POSIX or SYSV behavior >(and many programs do), you pays the price. It's true, there are no free lunches. > >Ideally, running SLIP or PPP would push a totally different "line >discipline" module onto the STREAMS stack, and would avoid all that >character-by-character processing. Can't imagine why you wouldn't do it this way? You can (and should) play the same game with the berkeley approach, it certainly allows you to change line disciplines, just doesn't supply any. But hey, that's what third parties are for :-). I think I also left the (wrong) impression that the STREAMS paradigm is overall superior to the berkeley paradigm. For my way of thinking the only thing STREAMS has over berkeley is the removal of line discipline processing from the interrupt context and more (NOT neccessarily better) character buffering. There is way too much overhead to STREAMS. Of course I am not going to elaborate on that. > >I see the real benefit of terminal servers as reduced wiring costs, >and the flexibility to connect to multiple systems. Of course that >only applies to hooking up lots of real terminals or modems. SLIP lines are >probably another story. No argument. The person who started this thread (i don't recall who) just wanted to run a single line as fast as possible, not a good candidate for a T.S.. > >Just my 2 cents. A perfectly valid viewpoint, worth well more than 2 cents. >-- >Carl J. Appellof (cja@chmist.zso.dec.com) >Storage Management Group >POLYCENTER NetWorker Save and Restore >Digital Equipment Corporation BTW, I like OSF/1 on the AXP's. Very fast reliable hardware and OSF/1 is very friendly and intuitive to bsd affectionados (did I spell that right?) like myself. bruce (not Ed Romascan) schoenleber (it's a shared internet account) bruce@magma.com