percona-toolkit
percona-toolkit copied to clipboard
Add CPU cache configuration info to pt-summary.
Is anybody looking at external pull requests for PT? Should I use another channel to submit this contribution? Thanks.
Could you add a comment saying that the code is your own creation and it can be distributed under the BSD licence?
Please check: https://github.com/percona/percona-toolkit/blob/2.2/CONTRIBUTE.md
The code is my creation and can be distributed under the BSD license.
I am getting this:
Designation Configuration Size Associativity
========================= ============================== ======== ======================
What's the idea about this PR? What it should do? Could you provide an example?
It uses data about the CPU cache provided by the dmidecode utility (https://linux.die.net/man/8/dmidecode). pt-summary already uses dmidecode (if avaliable) to provide information about available memory devices. The patch piggybacks on that functionality to describe CPU cache, e.g. available caches, their sizes and associativity.
I think I tested it on an Intel Xeon machine and worked fine. As I understand, you got empty output. Can you give me the output of dmidecode -t cache
on your machine?
Is there anything I can do to get this PR merged?
Sorry for the delay. I need to review the changes and if everything is OK, I am going to merge it. Thanks for your help