dm-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* dm-cache-statistics and DMEMIT
@ 2025-08-18 19:05 John Rinehart
  2025-08-18 19:55 ` Bryn M. Reeves
  0 siblings, 1 reply; 2+ messages in thread
From: John Rinehart @ 2025-08-18 19:05 UTC (permalink / raw)
  To: dm-devel

I'm using dm-cache in writeback mode and I'm trying to figure out how
I can see the cache stats in "real-time" (poll every second). Like, I
want to poll for the values in this data structure:
https://github.com/torvalds/linux/blob/be48bcf004f9d0c9207ff21d0edb3b42f253829e/drivers/md/dm-cache-target.c#L283-L295.

But, I'm at a loss for how to do that.

There are also these DMEMIT messages that I'm really interested in
printing to dmesg or subscribing to, or whatever, but I don't know how
to access them (CONFIG_DM_DEBUG didn't do anything useful - which
makes sense after reading the source a bit):
https://github.com/torvalds/linux/blob/be48bcf004f9d0c9207ff21d0edb3b42f253829e/drivers/md/dm-cache-target.c#L3184-L3197.

Can you help a brother out?

Thanks!

-- John Rinehart

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

end of thread, other threads:[~2025-08-18 19:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18 19:05 dm-cache-statistics and DMEMIT John Rinehart
2025-08-18 19:55 ` Bryn M. Reeves

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