Date: Tue, 02 Jan 2024 20:02:26 -0500 From: "Varun Agrawal" <varun@guag.net> To: freebsd-hackers@FreeBSD.org Subject: Collecting performance counter on AMD Zen processors Message-ID: <3e3c368e-e00f-495c-9832-1ab743646dc2@app.fastmail.com>
next in thread | raw e-mail | index | archive | help
--cf3abf9a535b466fab41e9c796f6f389 Content-Type: text/plain Hello, I run FreeBSD 14 on a machine with AMD Zen3 cores. I want to collect CPU performance metrics such as IPC, L1/L2/L3 miss rate, TLB miss rate, etc. To my surprise, I don't find any tool that supports collecting this data. I find that FreeBSD has support for collecting this data using hwpmc, but hwpmc only supports the AMD K7 and K8 architecture. Is someone planning to add support for AMD Zen cores? If not, I can help add this support. If there is another way to collect CPU performance counter data on FreeBSD, I would like to learn about that too. Regards, Varun --cf3abf9a535b466fab41e9c796f6f389 Content-Type: text/html <!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0} p.MsoNormal,p.MsoNoSpacing{margin:0} p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hello,<br></div><div><br></div><div>I run FreeBSD 14 on a machine with AMD Zen3 cores. I want to collect CPU performance metrics such as IPC, L1/L2/L3 miss rate, TLB miss rate, etc. To my surprise, I don't find any tool that supports collecting this data.<br></div><div><br></div><div>I find that FreeBSD has support for collecting this data using hwpmc, but hwpmc only supports the AMD K7 and K8 architecture. Is someone planning to add support for AMD Zen cores? If not, I can help add this support.<br></div><div><br></div><div>If there is another way to collect CPU performance counter data on FreeBSD, I would like to learn about that too.<br></div><div><br></div><div>Regards,<br></div><div>Varun<br></div></body></html> --cf3abf9a535b466fab41e9c796f6f389--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3e3c368e-e00f-495c-9832-1ab743646dc2>