From: Peter Zijlstra <peterz@infradead.org>
To: Doug Smythies <dsmythies@telus.net>
Cc: linux-kernel@vger.kernel.org, vincent.guittot@linaro.org
Subject: Re: [REGRESSION] Re: [PATCH 00/24] Complete EEVDF
Date: Tue, 7 Jan 2025 12:26:06 +0100 [thread overview]
Message-ID: <20250107112606.GN20870@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <001b01db608a$56d3dc40$047b94c0$@telus.net>
On Mon, Jan 06, 2025 at 02:28:40PM -0800, Doug Smythies wrote:
> Which will show when a CPU migration took over 10 milliseconds.
> If you want to go further, for example to only display ones that took
> over a second and to include the target CPU, then patch turbostat:
>
> doug@s19:~/kernel/linux/tools/power/x86/turbostat$ git diff
> diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
> index 58a487c225a7..f8a73cc8fbfc 100644
> --- a/tools/power/x86/turbostat/turbostat.c
> +++ b/tools/power/x86/turbostat/turbostat.c
> @@ -2704,7 +2704,7 @@ int format_counters(struct thread_data *t, struct core_data *c, struct pkg_data
> struct timeval tv;
>
> timersub(&t->tv_end, &t->tv_begin, &tv);
> - outp += sprintf(outp, "%5ld\t", tv.tv_sec * 1000000 + tv.tv_usec);
> + outp += sprintf(outp, "%7ld\t", tv.tv_sec * 1000000 + tv.tv_usec);
> }
>
> /* Time_Of_Day_Seconds: on each row, print sec.usec last timestamp taken */
> @@ -4570,12 +4570,14 @@ int get_counters(struct thread_data *t, struct core_data *c, struct pkg_data *p)
> int i;
> int status;
>
> + gettimeofday(&t->tv_begin, (struct timezone *)NULL); /* doug test */
> +
> if (cpu_migrate(cpu)) {
> fprintf(outf, "%s: Could not migrate to CPU %d\n", __func__, cpu);
> return -1;
> }
>
> - gettimeofday(&t->tv_begin, (struct timezone *)NULL);
> +// gettimeofday(&t->tv_begin, (struct timezone *)NULL);
>
> if (first_counter_read)
> get_apic_id(t);
>
>
So I've taken the second node offline, running with 10 cores (20
threads) now.
usec Time_Of_Day_Seconds CPU Busy% IRQ
106783 1736248404.951438 - 100.00 20119
46 1736248404.844701 0 100.00 1005
41 1736248404.844742 20 100.00 1007
42 1736248404.844784 1 100.00 1005
40 1736248404.844824 21 100.00 1006
41 1736248404.844865 2 100.00 1005
40 1736248404.844905 22 100.00 1006
41 1736248404.844946 3 100.00 1006
40 1736248404.844986 23 100.00 1005
41 1736248404.845027 4 100.00 1005
40 1736248404.845067 24 100.00 1006
41 1736248404.845108 5 100.00 1011
40 1736248404.845149 25 100.00 1005
41 1736248404.845190 6 100.00 1005
40 1736248404.845230 26 100.00 1005
42 1736248404.845272 7 100.00 1007
41 1736248404.845313 27 100.00 1005
41 1736248404.845355 8 100.00 1005
42 1736248404.845397 28 100.00 1006
46 1736248404.845443 9 100.00 1009
105995 1736248404.951438 29 100.00 1005
Is by far the worst I've had in the past few minutes playing with this.
If I get a blimp (>10000) then it is always on the last CPU, are you
seeing the same thing?
> In this short example all captures were for the CPU 5 to 11 migration.
> 2 at 6 seconds, 1 at 1.33 seconds and 1 at 2 seconds.
This seems to suggest you are, always on CPU 11.
Weird!
Anyway, let me see if I can capture a trace of this..
next prev parent reply other threads:[~2025-01-07 11:26 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-29 22:51 Doug Smythies
2025-01-06 11:57 ` Peter Zijlstra
2025-01-06 15:01 ` Doug Smythies
2025-01-06 16:59 ` Peter Zijlstra
2025-01-06 17:04 ` Peter Zijlstra
2025-01-06 17:14 ` Peter Zijlstra
2025-01-07 1:24 ` Doug Smythies
2025-01-07 10:49 ` Peter Zijlstra
2025-01-06 22:28 ` Doug Smythies
2025-01-07 11:26 ` Peter Zijlstra [this message]
2025-01-07 15:04 ` Doug Smythies
2025-01-07 16:25 ` Doug Smythies
2025-01-07 19:23 ` Peter Zijlstra
2025-01-08 5:15 ` Doug Smythies
2025-01-08 13:12 ` Peter Zijlstra
2025-01-08 15:48 ` Doug Smythies
2025-01-09 10:59 ` Peter Zijlstra
2025-01-09 12:18 ` [tip: sched/urgent] sched/fair: Fix EEVDF entity placement bug causing scheduling lag tip-bot2 for Peter Zijlstra
2025-04-17 9:56 ` Alexander Egorenkov
2025-04-22 5:40 ` ll"RE: " Doug Smythies
2025-04-24 7:56 ` Alexander Egorenkov
2025-04-26 15:09 ` Doug Smythies
2025-01-10 5:09 ` [REGRESSION] Re: [PATCH 00/24] Complete EEVDF Doug Smythies
2025-01-10 11:57 ` Peter Zijlstra
2025-01-12 23:14 ` Doug Smythies
2025-01-13 11:03 ` Peter Zijlstra
2025-01-14 10:58 ` Peter Zijlstra
2025-01-14 15:15 ` Doug Smythies
2025-01-15 2:08 ` Len Brown
2025-01-15 16:47 ` Doug Smythies
2025-01-19 0:09 ` Doug Smythies
2025-01-20 3:55 ` Doug Smythies
2025-01-21 11:06 ` Peter Zijlstra
2025-01-21 8:49 ` Peter Zijlstra
2025-01-21 11:21 ` Peter Zijlstra
2025-01-21 15:58 ` Doug Smythies
2025-01-24 4:34 ` Doug Smythies
2025-01-24 11:04 ` Peter Zijlstra
2025-01-13 11:05 ` Peter Zijlstra
2025-01-13 16:01 ` Doug Smythies
2025-01-13 12:58 ` [tip: sched/urgent] sched/fair: Fix update_cfs_group() vs DELAY_DEQUEUE tip-bot2 for Peter Zijlstra
2025-01-12 19:59 ` [REGRESSION] Re: [PATCH 00/24] Complete EEVDF Doug Smythies
-- strict thread matches above, loose matches on Subject: below --
2024-07-27 10:27 Peter Zijlstra
2024-11-28 10:32 ` [REGRESSION] " Marcel Ziswiler
2024-11-28 10:58 ` Peter Zijlstra
2024-11-28 11:37 ` Marcel Ziswiler
2024-11-29 9:08 ` Peter Zijlstra
2024-12-02 18:46 ` Marcel Ziswiler
2024-12-09 9:49 ` Peter Zijlstra
2024-12-10 16:05 ` Marcel Ziswiler
2024-12-10 16:13 ` Steven Rostedt
2024-12-10 8:45 ` Luis Machado
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=20250107112606.GN20870@noisy.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=dsmythies@telus.net \
--cc=linux-kernel@vger.kernel.org \
--cc=vincent.guittot@linaro.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
Powered by JetHome