[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: load average patches for MiNT 1.10 + patches
Stephen Usher writes:
> The routine which is called once a second traverses the process table
> testing for processes on the run queue, adds them up, subtracts three values
> taken from three arrays after scaling them with a shift and a divide, places
> the total number of processes into three arrays, increments three pointers,
> scales the current load with a shift and three divides and adds the value
> the loadaverage values. Oh and it increments the uptime counter too.
>
> Most of the time in this routine is taken traversing the process table, and
> this would happen once a second whatever way I implemented loadaverages.
>
> >From experiments, the increase in overhead is so little that I couldn't
> measure the speed difference on my 520STM with 2.5MB RAM. (This is not my
> development system.. I use my TT and Sun 3/80 for that.)
sure, just one way the ST would lose serial data easier and the other
not. the increase in cpu load itself is no problem, only the time it
runs at level 6 longer...
cheers
Juergen
--
J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
...ohne Gewehr
PGP public key fingerprint = 8A 18 58 54 03 7B FC 12 1F 8B 63 C7 19 27 CF DA