Linux NFS development
 help / color / mirror / Atom feed
* /proc/PID/io/read_bytes accounting regression?
@ 2023-02-17 11:54 Daire Byrne
  2023-02-17 14:08 ` David Wysochanski
  0 siblings, 1 reply; 7+ messages in thread
From: Daire Byrne @ 2023-02-17 11:54 UTC (permalink / raw)
  To: linux-nfs

Hi,

Maybe someone here can quickly point me in the right direction for
this oddity that we noticed.

On newer kernels, it looks like the task io accounting is not
incrementing the read_bytes when reading from a NFS mount? This was
definitely working on v5.16 downwards, but has not been working since
v5.18 up to v6.2 (I haven't tested v5.17 yet).

If I read from a local filesystem, then the read_bytes for that PID is
incremented as expected.

If I read over NFS using directIO, then the read_bytes is also
correctly incremented for that PID. It's just when reading normally
without directIO that it is not.

The write_bytes and rchar are also still both correct in all situations.

I have checked the kernel config and I'm fairly sure I have all the
right things enabled:

CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y
CONFIG_TASKSTATS=y

Unless there was some extra config introduced specific to the nfs
client in later kernels that I missed?

Cheers,

Daire

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

end of thread, other threads:[~2023-03-23 17:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-17 11:54 /proc/PID/io/read_bytes accounting regression? Daire Byrne
2023-02-17 14:08 ` David Wysochanski
2023-02-17 14:36   ` Matthew Wilcox
2023-02-17 15:47     ` David Wysochanski
2023-02-17 15:54       ` David Wysochanski
2023-02-17 15:59       ` Matthew Wilcox
2023-03-23 17:56         ` David Wysochanski

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