Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!killer!tness7!ninja!pollux!dalsqnt!rpp386!jfh From: jfh@rpp386.UUCP (John F. Haugh II) Newsgroups: comp.unix.questions Subject: Re: Neat little .newsrc fixer-upper. Message-ID: <1362@rpp386.UUCP> Date: 28 Apr 88 06:20:47 GMT References: <3931@killer.UUCP> <2083@quacky.mips.COM> Reply-To: jfh@rpp386.UUCP (The Beach Bum) Organization: Big "D" Home for Wayward Hackers Lines: 36 In article <2083@quacky.mips.COM> dce@quacky.UUCP (David Elliott) writes: >In article <3931@killer.UUCP> jfh@killer.UUCP (The Beach Bum) writes: >>This little toy takes your (possibly uneditable) .newsrc and removes >>all the garbage between 1 and the last article you read. > >Why write a C program when a standard Unix utility can do the trick? > here's why. this is the vmstat output for my home machine. the most notable number is forks. in general i avoid unix utilities once i understand the problem. fixrc is less grief on the machine. 407925 page cache hits 205559 page cache misses 408 procs swapped in 410 procs swapped out 205559 filesystem page reads 8299 swap area page reads 6897 swap area page writes 163937 pages reclaimed from free list 1170660 pages shared due to copy-on-write fork 10621 pages shared due to cache hits 958036 shared pages copied 75682332 page faults 13423894 cpu context switches 121472501 (non clock) device interrupts 3174741 traps 76000468 system calls 137024 forks - john. -- John F. Haugh II | "You see, I want a lot. Perhaps I want every River Parishes Programming | -thing. The darkness that comes with every UUCP: ihnp4!killer!rpp386!jfh | infinite fall and the shivering blaze of DOMAIN: jfh@rpp386 | every step up ..." -- Rainer Maria Rilke