mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [bug report, 6.1.52] /proc/loadavg shows incorrect values
@ 2025-03-18 13:54 ying chen
  2025-03-23 12:45 ` ying chen
  0 siblings, 1 reply; 4+ messages in thread
From: ying chen @ 2025-03-18 13:54 UTC (permalink / raw)
  To: mingo, peterz, juri.lelli, vincent.guittot, linux-kernel

Hello all,

In our production environment, "cat /proc/loadavg" shows incorrect
huge values. The kernel version is 6.1.52. So far, at least four such
cases have been found. It seems to be a kernel bug.

~$ cat /proc/loadavg
4294967392.49 4294967395.80 4294967395.83 87/16100 2341720

top output is below:

top - 21:12:13 up 191 days, 20:50,  1 user,  load average:
4294967397.45, 4294967396.82, 4294967396.15
Tasks: 2388 total,   3 running, 1208 sleeping,   0 stopped,   0 zombie
%Cpu(s): 27.9 us,  6.7 sy,  0.0 ni, 57.3 id,  0.5 wa,  1.7 hi,  5.8 si,  0.0 st
KiB Mem : 99966995+total, 56704217+free, 22655678+used, 20607096+buff/cache
KiB Swap:        0 total,        0 free,        0 used. 68817177+avail Mem

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug report, 6.1.52] /proc/loadavg shows incorrect values
  2025-03-18 13:54 [bug report, 6.1.52] /proc/loadavg shows incorrect values ying chen
@ 2025-03-23 12:45 ` ying chen
  2025-03-23 18:03   ` Steven Rostedt
  0 siblings, 1 reply; 4+ messages in thread
From: ying chen @ 2025-03-23 12:45 UTC (permalink / raw)
  To: mingo, peterz, juri.lelli, vincent.guittot, linux-kernel,
	dietmar.eggemann, rostedt, bsegall, mgorman, bristot, vschneid

Hello everyone. Have you ever encountered a similar situation?

On Tue, Mar 18, 2025 at 9:54 PM ying chen <yc1082463@gmail.com> wrote:
>
> Hello all,
>
> In our production environment, "cat /proc/loadavg" shows incorrect
> huge values. The kernel version is 6.1.52. So far, at least four such
> cases have been found. It seems to be a kernel bug.
>
> ~$ cat /proc/loadavg
> 4294967392.49 4294967395.80 4294967395.83 87/16100 2341720
>
> top output is below:
>
> top - 21:12:13 up 191 days, 20:50,  1 user,  load average:
> 4294967397.45, 4294967396.82, 4294967396.15
> Tasks: 2388 total,   3 running, 1208 sleeping,   0 stopped,   0 zombie
> %Cpu(s): 27.9 us,  6.7 sy,  0.0 ni, 57.3 id,  0.5 wa,  1.7 hi,  5.8 si,  0.0 st
> KiB Mem : 99966995+total, 56704217+free, 22655678+used, 20607096+buff/cache
> KiB Swap:        0 total,        0 free,        0 used. 68817177+avail Mem

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug report, 6.1.52] /proc/loadavg shows incorrect values
  2025-03-23 12:45 ` ying chen
@ 2025-03-23 18:03   ` Steven Rostedt
  2025-03-24  2:31     ` ying chen
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Rostedt @ 2025-03-23 18:03 UTC (permalink / raw)
  To: ying chen
  Cc: mingo, peterz, juri.lelli, vincent.guittot, linux-kernel,
	dietmar.eggemann, bsegall, mgorman, bristot, vschneid

On Sun, 23 Mar 2025 20:45:51 +0800
ying chen <yc1082463@gmail.com> wrote:

> Hello everyone. Have you ever encountered a similar situation?
> 
> On Tue, Mar 18, 2025 at 9:54 PM ying chen <yc1082463@gmail.com> wrote:
> >
> > Hello all,
> >
> > In our production environment, "cat /proc/loadavg" shows incorrect
> > huge values. The kernel version is 6.1.52. So far, at least four such
> > cases have been found. It seems to be a kernel bug.
> >
> > ~$ cat /proc/loadavg
> > 4294967392.49 4294967395.80 4294967395.83 87/16100 2341720
> >
> > top output is below:
> >
> > top - 21:12:13 up 191 days, 20:50,  1 user,  load average:
> > 4294967397.45, 4294967396.82, 4294967396.15

  4294967397 = 0x100000065

Which looks like some calculation overflowed.

191 day uptime is quite long (I reboot to update my kernel every
month). Perhaps there's something there that caused an overflow.

Interestingly in 5.14, some values were converted from long to int. Not
sure if there was anything there that could have caused this.

Just something to look at.

-- Steve


> > Tasks: 2388 total,   3 running, 1208 sleeping,   0 stopped,   0 zombie
> > %Cpu(s): 27.9 us,  6.7 sy,  0.0 ni, 57.3 id,  0.5 wa,  1.7 hi,  5.8 si,  0.0 st
> > KiB Mem : 99966995+total, 56704217+free, 22655678+used, 20607096+buff/cache
> > KiB Swap:        0 total,        0 free,        0 used. 68817177+avail Mem  


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [bug report, 6.1.52] /proc/loadavg shows incorrect values
  2025-03-23 18:03   ` Steven Rostedt
@ 2025-03-24  2:31     ` ying chen
  0 siblings, 0 replies; 4+ messages in thread
From: ying chen @ 2025-03-24  2:31 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: mingo, peterz, juri.lelli, vincent.guittot, linux-kernel,
	dietmar.eggemann, bsegall, mgorman, bristot, vschneid

On Mon, Mar 24, 2025 at 2:04 AM Steven Rostedt <rostedt@goodmis.org> wrote:
>
> On Sun, 23 Mar 2025 20:45:51 +0800
> ying chen <yc1082463@gmail.com> wrote:
>
> > Hello everyone. Have you ever encountered a similar situation?
> >
> > On Tue, Mar 18, 2025 at 9:54 PM ying chen <yc1082463@gmail.com> wrote:
> > >
> > > Hello all,
> > >
> > > In our production environment, "cat /proc/loadavg" shows incorrect
> > > huge values. The kernel version is 6.1.52. So far, at least four such
> > > cases have been found. It seems to be a kernel bug.
> > >
> > > ~$ cat /proc/loadavg
> > > 4294967392.49 4294967395.80 4294967395.83 87/16100 2341720
> > >
> > > top output is below:
> > >
> > > top - 21:12:13 up 191 days, 20:50,  1 user,  load average:
> > > 4294967397.45, 4294967396.82, 4294967396.15
>
>   4294967397 = 0x100000065
>
> Which looks like some calculation overflowed.
>
> 191 day uptime is quite long (I reboot to update my kernel every
> month). Perhaps there's something there that caused an overflow.
>
> Interestingly in 5.14, some values were converted from long to int. Not
> sure if there was anything there that could have caused this.
>
> Just something to look at.
>
> -- Steve
Do you mean the patch "sched: Make multiple runqueue task counters 32-bit"?
I've also noticed this patch, but I'm not sure if this problem was
introduced by this patch.
>
> > > Tasks: 2388 total,   3 running, 1208 sleeping,   0 stopped,   0 zombie
> > > %Cpu(s): 27.9 us,  6.7 sy,  0.0 ni, 57.3 id,  0.5 wa,  1.7 hi,  5.8 si,  0.0 st
> > > KiB Mem : 99966995+total, 56704217+free, 22655678+used, 20607096+buff/cache
> > > KiB Swap:        0 total,        0 free,        0 used. 68817177+avail Mem
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-24  2:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-18 13:54 [bug report, 6.1.52] /proc/loadavg shows incorrect values ying chen
2025-03-23 12:45 ` ying chen
2025-03-23 18:03   ` Steven Rostedt
2025-03-24  2:31     ` ying chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®