Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 1998 19:42:42 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, tlambert@primenet.com
Cc:        current@FreeBSD.ORG, jdp@polstra.com, phk@FreeBSD.ORG, rb@gid.co.uk
Subject:   Re: Spurious SIGXCPU
Message-ID:  <199806110942.TAA32032@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> Apparently your process appeared to run for a negative amount of time.
>> p_runtime is unsigned (64 bits), so negative runtimes are interpreted
>> as huge runtimes, even huger than RLIMIT_INFINITY.  This bug used to
>> be avoided by using signed variables even to hold values that should
>> be non-negative.
>
>Shouldn't accounting be done using monotime?

It already uses microuptime().  The monotime variable went away 2 months
ago.

>Ie: shouldn't accounting only be subject to positive drift?

It should, but there may be bugs.  I fixed 2 bugs, but they only caused
positive drift :-).  The main one was that the time to exit was often
counted twice.

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806110942.TAA32032>