Accounting changes

Poul-Henning Kamp phk at phk.freebsd.dk
Fri May 4 23:01:13 UTC 2007


In message <463BB88F.4020804 at aueb.gr>, Diomidis Spinellis writes:
>Poul-Henning Kamp wrote:
>> In message <463B581E.6070804 at aueb.gr>, Diomidis Spinellis writes:
>> 
>>> On modern processors the various time values were 0, because many 
>>> commands took less than 1/64s to execute [bde].  Now time values are 
>>> stored with microsecond precision as float numbers.(I've written code 
>>> that allows the kernel to write them without any floating point 
>>> operations.)
>> 
>> Why on earth introduce another time format ?
>> 
>> Please use a standard time format please.
>
>If we use struct timeval for the three time values the structure size 
>increases considerably (especially on an amd64).  Here are some numbers:
>
>i386
>Old size=48
>New size=64
>New size with timeval=76

that is a good argument.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-arch mailing list