Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 May 2010 15:33:40 +0400
From:      cronfy <cronfy@gmail.com>
To:        freebsd-questions <freebsd-questions@freebsd.org>, Ivan Voras <ivoras@freebsd.org>
Subject:   Re: User cpu time VS system cpu time
Message-ID:  <z2sd4ac64921005060433n979f79fegb168a51a3516bec4@mail.gmail.com>
In-Reply-To: <hropia$uu9$1@dough.gmane.org>
References:  <w2vd4ac64921005030900t38fa793cmf6647ff1252dc606@mail.gmail.com>  <hropia$uu9$1@dough.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

>> I want to understand difference between user CPU time and system CPU
>> time in system accounting.
> But keep in mind that "kernel time" is a broad category - while IO time in
> itself does not count as CPU time, file system operations for example do,
> because they really can be CPU intensive.

Ivan, thanks for the great explanation.

I think that I can measure user filesystem usage with sa - it reports
number of IO operations per user/command. In which other cases kernel
time is used instead of user time for a process? I do not mean all of
them - just that usually occur in practice.

I've noticed that there are moments when system load in top for system
time is very high (60-80% while user load is 15-25%, this produces
very high LA also). All processes that were run at this time show high
kernel time usage, although they usually do not. System is getting
back to normal after Apache restart (I think this is related to Apache
shared memory somehow, but not sure).

This makes me suspect that system time in sa can not be relied on
while measuring user system usage, because it notably varies under
some circumstances for same operations. Am I wrong?


-- 
// cronfy



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