home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.minix
- Path: sparky!uunet!munnari.oz.au!metro!ipso!runxtsa!bde
- From: bde@runx.oz.au (Bruce Evans)
- Subject: Re: Things I Wish Were In MINIX
- Message-ID: <1993Jan23.051424.8485@runx.oz.au>
- Organization: RUNX Un*x Timeshare. Sydney, Australia.
- References: <post!!??> <Bah!> <1jo45aINN46t@usenet.INS.CWRU.Edu>
- Date: Sat, 23 Jan 93 05:14:24 GMT
- Lines: 40
-
- In article <1jo45aINN46t@usenet.INS.CWRU.Edu> bf795@cleveland.Freenet.Edu (James Abendschan) writes:
- >
- >* a "nice" command [or some way of increasing or decreasing command
-
- Nice is in kub's sysupd2 package (last version (?) patch1 posted 27 May 91).
-
- Do you want this in standard Minix? Good luck.
-
- >* faster i/o. anything that goes to stderr seems to run much slower
- >than the rest of the text.. I have heard vague and unconfirmed rumors
-
- stderr is unbuffered by default. Characters are written one at a time
- (perhaps a string at a time with a better stdio). Outputting characters
- one at a time is slow under all systems and particularly slow under Minix.
- Outputting large number of characters is reasonably fast under Minix. If
- If you want a faster stderr, use setbuf. Remember to flush the buffer
- often.
-
- >about an "enhanced" stdio program which speeds reads & writes up a bit,
- >but, given my luck, it won't work on MacMINIX.
-
- You want estdio. It's about twice as fast as gnu stdio and 33% faster
- than 386BSD stdio.
-
- >Also, why do exec and
- >system calls take so long to execute the program? Even with both
- >absolute filenames and caching, it still takes a long time.. why?
-
- Exec does a lot of loading. Fork does a lot of copying, especially for
- shadowing under 68K Minixes. Even when everything is loaded from RAM,
- copying takes a while. However, on my system (a 486/33 running a VM
- version of Minix) /bin/echo takes about 33 millisec. This is much
- slower than some systems (Linux) and much faster than others (386BSD).
- The exec involves forking bash (210K text, 100K data) and loading
- /bin/echo (1K text, 12K data). Only the fork takes a long time.
-
- Minix syscalls have more overhead than on most *ix systems. Solution:
- don't make a lot of syscalls.
- --
- Bruce Evans (bde@runx.oz.au)
-