From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199608060953.KAA00808@dax.dcs.ed.ac.uk> Date: Tue, 6 Aug 1996 10:53:21 +0100 From: Stephen C. Tweedie Subject: Re: more time-1.6 fixes In-Reply-To: <199608041839.LAA00605@panda.azstarnet.com> Hi, On Sun, 4 Aug 1996 11:39:55 -0700, David Mosberger-Tang said: > The time command as distributed with Red Hat 3.0.3 does not count page > faults properly (they're always zero). Turns out this is due to a bug > in configure (the same problem exists on the x86). I posted a working set of time [s]rpms over a month ago which fixed this; I hope the announcement email didn't get lost. I put them up for ftp on linux.dcs.ed.ac.uk:/pub/linux, but we had a disk crash over the weekend so it might be a couple of days before they are back. I _think_ I put binary rpms onto redhat incoming. Anyway, the only fix needed is to explicitly tell the make process that the kernel supports WAIT3. The old autoconf was not detecting this for the very good reason that the kernel fails to count context switches in the process info structure. Compiling with -DHAVE_WAIT3 is sufficient both to correct the HZ problem and to get page fault accounting working. The following spec file was the one I used, and it produces a correct time(1) binary using the normal gnu time-1.6.tar.gz source. Cheers, Stephen. -- Stephen Tweedie Department of Computer Science, Edinburgh University, Scotland. ---------------------------------------------------------------- Description: GNU time Utilities Name: time Version: 1.6 Release: 5 Copyright: GPL Group: Utilities/System Source: prep.ai.mit.edu:/pub/gnu/time-1.6.tar.gz %prep %setup %build ./configure --prefix=/usr make CFLAGS="$RPM_OPT_FLAGS -DHAVE_WAIT3" LDFLAGS=-s %install rm -f /usr/info/time.info* make install gzip -9nf /usr/info/time.info strip /usr/bin/time %files %doc NEWS README /usr/bin/time /usr/info/time.info* -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null