From: danielhilst@gmail.com (Daniel Hilst)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Kernel threads and system usage metric.
Date: Mon, 12 Mar 2012 11:54:18 +0000 [thread overview]
Message-ID: <4F5DE3EA.6010006@gmail.com> (raw)
In-Reply-To: <CAGdaadb_8zSJ+RfYr5CCCS8MBexsV=AbvCuo4AnGjnB-q3EAmA@mail.gmail.com>
On 03/09/2012 06:25 PM, Mulyadi Santosa wrote:
> Hi :)
>
> On Fri, Mar 9, 2012 at 18:39, Daniel Hilst<danielhilst@gmail.com> wrote:
>> The processes that appear in top with brackets are the kernel threads?
>
> Yup :)
>
>> If so, this threads spend all its time on system mode, right?
>
> Yes, it supposed to ...
>
>> By the
>> system mode I mean the %sy on top header, since kernel threads hasn't
>> any memory mapped to user space, it can't run on user space at any time,
>> right?
>
> IIRC, kernel thread simply "borrow" any previous scheduled task's
> address space. In that matter, it also has user address space. So, if
> wanted, kernel thread could access user space. But normally it doesn't
> do it.
>
>>
>>
>> So the total of system mode usage is the sum of all processes processing
>> in kernel space, plus the kernel threads processing, right?
>
> remember that kernel threads are also processes, so no need to
> differentiate between normal processes and kernel threads, especially
> when we talk about CPU utilization.
>
Thanks Mulyadi!
--
Follow the white rabbit!
next prev parent reply other threads:[~2012-03-12 11:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-09 11:39 Kernel threads and system usage metric Daniel Hilst
2012-03-09 18:25 ` Mulyadi Santosa
2012-03-12 11:54 ` Daniel Hilst [this message]
2012-03-12 15:12 ` Chetan Nanda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F5DE3EA.6010006@gmail.com \
--to=danielhilst@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.