From: Eric Lemoine <Eric.Lemoine@ens-lyon.fr>
To: Jon Fraser <J_Fraser@bit-net.com>
Cc: netdev@oss.sgi.com
Subject: Re: [Question] SMP for Linux
Date: Wed, 13 Nov 2002 07:53:04 +0100 [thread overview]
Message-ID: <20021113065304.GC402@udine> (raw)
In-Reply-To: <001701c27ba0$6ff02c70$3701020a@CONCORDIA>
> > > I'll repeat the same tests on Monday with 82543 based cards.
> > > I would expect similar results.
> > > Oh, I used top and vmstat to collect cpu percentages,
> > interrupts/second,
> >
> > Hmm top and vmstat doesn't give you time spent in
> > irq/softirq's except for
> > softirq's run via ksoftird?
>
> Right.
You guys sure about this?
vmstat uses stats gathered by the kernel in the structure variable kstat
(of type struct kernel_stat). Here follows the func that updates this
variable, it seems that time spent in irq/softirq is accounted, isn't
it?
void update_process_times(int user_tick)
{
struct task_struct *p = current;
int cpu = smp_processor_id(), system = user_tick ^ 1;
update_one_process(p, user_tick, system, cpu);
if (p->pid) {
if (--p->counter <= 0) {
p->counter = 0;
p->need_resched = 1;
}
if (p->nice > 0)
kstat.per_cpu_nice[cpu] += user_tick;
else
kstat.per_cpu_user[cpu] += user_tick;
kstat.per_cpu_system[cpu] += system;
} else if (local_bh_count(cpu) || local_irq_count(cpu) > 1)
kstat.per_cpu_system[cpu] += system;
}
PS: I agree this has nothing to do with netdev discussions but I just want
to make sure...
Thx.
--
Eric
prev parent reply other threads:[~2002-11-13 6:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-17 2:29 [Question] SMP for Linux Hyochang Nam
2002-10-17 10:02 ` bert hubert
2002-10-17 12:00 ` Robert Olsson
2002-10-17 17:28 ` Jon Fraser
2002-10-18 16:16 ` Robert Olsson
2002-10-18 23:29 ` Jon Fraser
2002-10-19 0:20 ` Nivedita Singhvi
2002-10-19 7:53 ` Robert Olsson
2002-10-24 21:00 ` Jon Fraser
2002-11-13 6:53 ` Eric Lemoine [this message]
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=20021113065304.GC402@udine \
--to=eric.lemoine@ens-lyon.fr \
--cc=J_Fraser@bit-net.com \
--cc=netdev@oss.sgi.com \
/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.