From: Stephen C. Tweedie <sct@dcs.ed.ac.uk>
Subject: Re: more time-1.6 fixes
Date: Tue, 6 Aug 1996 10:53:21 +0100 [thread overview]
Message-ID: <199608060953.KAA00808@dax.dcs.ed.ac.uk> (raw)
In-Reply-To: <199608041839.LAA00605@panda.azstarnet.com>
Hi,
On Sun, 4 Aug 1996 11:39:55 -0700, David Mosberger-Tang <davidm@AZStarNet.com> 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 <sct@dcs.ed.ac.uk>
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
next prev parent reply other threads:[~1996-08-06 9:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-08-04 18:39 more time-1.6 fixes David Mosberger-Tang
1996-08-06 9:53 ` Stephen C. Tweedie [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-08-06 14:27 David Mosberger-Tang
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox