Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84 chuqui version 1.7 9/23/84; site nsc.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!ihnp4!nsc!chuqui From: chuqui@nsc.UUCP (Zonker T. Chuqui) Newsgroups: net.news.b Subject: Re: expire takes 73 minutes of cpu?!?!? Message-ID: <1828@nsc.UUCP> Date: Mon, 5-Nov-84 14:48:00 EST Article-I.D.: nsc.1828 Posted: Mon Nov 5 14:48:00 1984 Date-Received: Tue, 6-Nov-84 05:20:02 EST References: <> Reply-To: chuqui@nsc.UUCP (Zonker T. Chuqui) Distribution: net Organization: The Warlocks Cave, Western Annex Lines: 44 Summary: In article <1069@Cascade.ARPA> reid@Cascade.ARPA writes: >We run 2.10.2 news, essentially as distributed in net.sources. > >% grep expire /usr/adm/daily.sh >/usr/lib/news/expire -n arpa.unix-wizards -e30 -a >/usr/lib/news/expire -n net.sources -e15 -a >/usr/lib/news/expire -e30 -n all >/usr/lib/news/expire -n net.singles -n net.flame -n net.politics -n net.religion -e10 A more efficient way of doing this for 2.10.2 would be: /usr/lib/news/expire -a arpa.unix-wizards -e30 /usr/lib/news/expire -a net.sources -e15 /usr/lib/news/expire -n net.singles net.flame net.politics net.religion -e10 One change to expire is that the -a flag now accepts arguments, so the first expire will do the work of both the original first and third. It will expire everything AND archive only arpa.unix-wizards. You have to be rather familiar with the expire source to figure this out-- the code for it isn't obvious. Previous versions of expire had it so that the -a flag was an all or nothing situation. >This seems to more or less work, though it has left some very strange things >in my history files from time to time. My complaint is that it takes 3 hours >of wall clock time and 73 minutes of CPU time on an idle 750 to run these 4 >expire commands: > >Does everybody's expire take this long? If not, what am I doing wrong? >If so, does anybody but me think this is too much? Expire is, to put it nicely, a hog. Your figures aren't out of line with what you are asking it to do. Cutting out that fourth expire will help, and if you can keep net.singles et all for 15 days instead of 10 this MIGHT (untested! untested!) work: /usr/lib/news/expire -e15 -a net.sources -n net.singles net.flame net.politics net.religion chuq -- From the Department of Bistromatics: Chuq Von Rospach {cbosgd,decwrl,fortune,hplabs,ihnp4,seismo}!nsc!chuqui nsc!chuqui@decwrl.ARPA I'd know those eyes from a million years away....