Score:0

Time spent in cpu frequency on core i5

th flag

On my old server with AMD Athlon X2 5050e processor, I have /sys/devices/system/cpu/cpu*/cpufreq/stats/time_in_state that tells me how much time the processor spent in each frequency state. Now I have a machine with an Intel i5-4690 that does not have such a stats directory. I would like to see how much time the processor spends at what frequency. Is that possible?

Doug Smythies avatar
gn flag
It is possible, but complicated and would also require some post processing. From the kernel source tree, using the `tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py` python script could acquire and extract a trace sample over the desired time. Extracted data would include frequencies and pstates for each CPU.
Doug Smythies avatar
gn flag
By default your i5-4690 processor will use the intel_pstate CPU frequency scaling driver. You can go back to the acpi-cpufreq CPU frequency scaling driver by adding `intel_pstate=disable` to your grub `GRUB_CMDLINE_LINUX_DEFAULT` line. After `update-grub` and a reboot your stats directory and information would be present again. Suggest you keep an original copy of `/etc/default/grub` before editing it.
Maarten Deen avatar
th flag
Thanks, the first option would need a little much processing, with the second I can keep doing things the way I did.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.