* Re: Unix Performances
[not found] <823m4c$3af$1@jaydee.iway.fr>
@ 1999-12-06 5:00 ` Alexander Viro
0 siblings, 0 replies; only message in thread
From: Alexander Viro @ 1999-12-06 5:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1621 bytes --]
In article <823m4c$3af$1@jaydee.iway.fr>,
Ga�l Trinquart <gtrinquart@elan.fr> wrote:
>I have ported a large piece of C code to various Unix flavors and I'm now
>trying to get a comparative benchmark.
>
>To achieve this, I use the times() system call to obtain the CPU taken by
>the application. times() returns both the kernel clock ticks consumed in
>system mode(SYS) and in user mode(USR). The figures below represents the
>percentage of CPU taken by the system mode [ ie: SYS / (SYS+USR) ]. The
>advantage of this measurement is that it is processor-independent and
>frequency-independent.
... and disadvantage being that various Unices have different methods of
billing the time spent. E.g. QNX is a microkernel and has filesystem
outside of the kernel proper. IOW, 'system' here may include way less work
than on any other system. Other variations include a lot of interesting
stuff, e.g. billing the waiting for I/O to idle task. Another point:
swapping time may be included or not - depends on the kernel. And if it
is - well, there you go. It depends on the amount of core available, relative
speed of disk, etc.
>QNX 4.24 (i86) = 2%
>SunOS 5.6 (sparc) = 6.8%
>OSF1 2.0 (alpha) = 12.0%
>Linux 2.2.5 (i86) = 28.3%
>SCO5 3.2 (i86) = 39.9%
>
>What can cause such differences ?
>Does it simply mean that system calls are best implemented on QNX ?
Not. Most likely it means that time spent in filesystem code was accounted
as user time (might be even user time of another process).
--
"You're one of those condescending Unix computer users!"
"Here's a nickel, kid. Get yourself a better computer" - Dilbert.
^ permalink raw reply [flat|nested] only message in thread