linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Time accounting difference under high IO interrupts
@ 2018-08-14 19:51 Solio Sarabia
  0 siblings, 0 replies; only message in thread
From: Solio Sarabia @ 2018-08-14 19:51 UTC (permalink / raw)
  To: mingo, peterz, frederick, tj, wanpeng.li
  Cc: linux-kernel, ak, shiny.sebastian, amy.l.leeland, jun.nakajima,
	sainath.grandhi

Under high IO activity (storage or network), the kernel is not
accounting some cpu cycles, comparing sar vs emon (tool that accesses hw
pmu directly). The difference is higher on cores that spend most time on
idle state and are constantly waking up to handle interrupts. It happens
even with fine IRQ time accounting enabled (CONFIG_IRQ_TIME_ACCOUNTING).

After playing with timer subsytem options (periodick ticks, idle
tickless, full tickless), time and stats accounting, and jiffie values,
the issue persists. Cycles lost are not accounted on other cores as
'extra' util. Example with linux 4.15.18 baremetal, xeon v4 broadwell,
driving network traffic:

           sar    emon   emon-sar   intrs/sec
core12    5.00   11.70   6.70       29,302
core17   19.07   23.16   4.09       17,345
core20   19.41   23.11   3.70       16,578

Based on how kernel accounts time:
Do you have an idea why a high number of intrs affect time accounting?

Thanks,
-Solio

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-14 19:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-14 19:51 Time accounting difference under high IO interrupts Solio Sarabia

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).