New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bcache] Add a new plugin for bcache #2384
Conversation
I have tested the changes using a setup that uses 2 x 1:1 mapping (1 bcache device per backing device). The sos report file (tar.xz) size increase with this setup is ~36KB. The files gathered for bcache plugin are text files, so even if the system has many number of bcache devices, it's not going to massively increase the sos report. Attaching a sample sos report here: (had to zip a tar.xz file because github doesn't allow tar .xz file ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General ack overall. Just 2 minor notes.
Would it be best to execute |
Thanks, @slashdd. Gated via a predicate (I believe having |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK, relying on the reporter's knowledge that the collecting files other than priority_stats
can't harm a similar way like priority_stats
would.
sos/report/plugins/bcache.py
Outdated
def setup(self): | ||
|
||
# Caution: reading /sys/fs/bcache/*/cache0/priority_stats is known | ||
# to performance degradation on some kernels. Needs care if that's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small nit, recommend changing to:
degrade performance on older kernels.
I'm suggesting this change just to be clear that the issue has been fixed in recent kernels.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Dan,
My understanding is that performance is much improved with that fix, but it still has some impact. I am referring this message in that thread: https://lkml.org/lkml/2019/8/14/636
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, you are right. There is still a minor performance hit due to locking.
bcache is used as a caching device (typically an SSD) for HDDs; bcache stats are useful to identify performance problems. Closes: #2378 Signed-off-by: Ponnuvel Palaniyappan <ponnuvel.palaniyappan@canonical.com>
bcache is used as a caching device (typically an SSD) for
HDDs; bcache stats are useful to identify performance problems.
Closes: #2378
Resolves: #2384
Signed-off-by: Ponnuvel Palaniyappan ponnuvel.palaniyappan@canonical.com
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines
Closes: #ISSUENUMBER
included in an independent line?Resolves: #PRNUMBER
included in an independent line?