dm-cache-statistics and DMEMIT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux