From: "Luis Claudio R. Goncalves" <lclaudio@uudg.org>
To: Jaswinder Singh <jaswinderlinuxrt@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>,
RT <linux-rt-users@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>
Subject: Re: loadavg vs loadavgrt
Date: Fri, 21 Dec 2007 10:54:05 -0200 [thread overview]
Message-ID: <20071221125405.GE19965@unix.sh> (raw)
In-Reply-To: <1985e0f60712202058h50e6cd74ne047ff85221a3e3b@mail.gmail.com>
On Fri, Dec 21, 2007 at 10:28:39AM +0530, Jaswinder Singh wrote:
| On Dec 20, 2007 10:19 PM, Steven Rostedt <rostedt@goodmis.org> wrote:
| >
| > So the numbers are bogus!
| >
|
| Thanks, understood :)
|
| root@192.168.1.253:~# cat /proc/loadavg
| 0.00 0.00 0.02 1/52 1159
|
| This seems loadavg is calculating average for non-RT tasks.
|
| I think loadavg should be loadavg(all RT Tasks) + loadavg(all non-RT
| tasks) , it means loadavg should be all Tasks(RT + non-RT) running on
| the machine.
|
| In RT we introduced loadavgrt, but we changed the meaning of loadavg.
In fact, we haven't changed the meaning at all. The question is that in
some cases the calculation happens in sync with some kernel threads
dispatch and that makes system load _artificially_ equal to the number of
processors in the system. Have fun reading kernel/timer.c (calc_load()) and
understanding the logic behind it. All the answers lie there...
| Currently loadavgrt is correct it is trying to calculate average of RT tasks.
| But currently loadavg is loadavgnonrt, it should be loadavg (for all Tasks)
|
| Please correct me, If I am wrong.
|
| Thank you,
|
| Jaswinder Singh.
| -
| To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
| the body of a message to majordomo@vger.kernel.org
| More majordomo info at http://vger.kernel.org/majordomo-info.html
---end quoted text---
--
[ Luis Claudio R. Goncalves Bass - Gospel - RT ]
[ Fingerprint: 4FDD B8C4 3C59 34BD 8BE9 2696 7203 D980 A448 C8F8 ]
next prev parent reply other threads:[~2007-12-21 13:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-20 10:35 loadavg vs loadavgrt Jaswinder Singh
2007-12-20 16:49 ` Steven Rostedt
2007-12-21 4:58 ` Jaswinder Singh
2007-12-21 12:54 ` Luis Claudio R. Goncalves [this message]
2007-12-22 6:39 ` [PATCH] " Jaswinder Singh
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=20071221125405.GE19965@unix.sh \
--to=lclaudio@uudg.org \
--cc=jaswinderlinuxrt@gmail.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).