https://eclecticlight.co/2024/11/08/why-cpu-in-activity-monitor-isnt-what-you-think/ Skip to content [eclecticlight] The Eclectic Light Company Macs, painting, and more Main navigation Menu * Downloads * Freeware * M-series Macs * Mac Problems * Mac articles * Macs * Art hoakley November 8, 2024 Macs, Technology Why % CPU in Activity Monitor isn't what you think One of the most frequently quoted measurements in Activity Monitor is % CPU. When the fans blow, or a Mac becomes sluggish, it's often the first figure to look at and wonder why that process is pulling over 100%. That's the first thing you learn: here, per cent doesn't mean out of 100, but the sum of the real percentage for each core. As this Mac has eight cores, that allows it up to 800%, until you realise that Intel processors can use Hyper-Threading to pretend that each is two cores, making a maximum of 1,600%, not bad for a single processor. Then you come completely unstuck with Apple silicon. Apple defines % CPU as "the percentage of CPU capability that's being used", a phrase that doesn't appear to have any definition either in Apple's documentation or elsewhere. So like everyone else, you assume that 100% for a core represents its maximum processing capacity. Only you couldn't be more incorrect: in truth, the number given as % CPU is nothing like that. Tests To examine this more clearly, I have an app that runs tight loops of assembly code to load CPU cores on Apple silicon chips and measure their performance. For this, I got it to run several threads, each consisting of 500 million loops of floating point calculations. By running those at different Quality of Service (QoS) settings, macOS will send them to different core types. When I run two threads at low QoS so they're run only on E cores of a MacBook Pro M3 Pro, each takes 10.2 seconds to complete. If I instead run eight threads at high QoS, the first six of those will be run on the P cores, but the remaining two spill over onto two of the E cores, where they complete in just 3.0 seconds each. Yet, according to % CPU in Activity Monitor, the two threads on the E cores come to 200%, and the two from eight run in the second test also come to 200%. You can see this in the CPU History window. m3activitymon Here are the 6 E cores at the top, and 6 P cores below. 1 marks the first test on two E cores, and shows the total of 200% spread across all six E cores over the 10.2 seconds it took to complete. 2 marks the second test, with all 6 P cores and two E cores hitting 100% each, for a total of 800%, as shown in Activity Monitor's window. By now I'm sure you guessing how running the same code on the E cores could vary in speed by a factor of 3.4 (10.2 against 3.0 seconds) although they're the same % CPU: that measurement doesn't take into account core frequency. Frequency Unlike traditional Intel CPUs, CPU cores in Apple silicon chips can be run at a wide range of frequencies, as set by macOS. To make this frequency control a bit simpler, cores are grouped into clusters, that also share L2 cache, and within each cluster all cores run at the same frequency. The M3 Pro chip consists of two clusters, one of 6 E cores, the other of 6 P cores. When macOS loads two of those E cores with low QoS threads, it sets them to run at a low frequency to make the most of their energy efficiency. When it loads two E cores with threads that were intended to be run on P cores, as they have a high QoS, it runs the E cluster up to high frequency, so they perform better. Measuring frequency of CPU cores is straightforward using the powermetrics command tool. When those threads were being run on E cores at low QoS, frequency was held at their minimum of 744 MHz, but run at high QoS their frequency was set to maximum, at 2748 MHz, 3.7 times faster. If full load at maximum frequency is 100% of their capability, then at low QoS they were really running at 27%, not the 100% given by Activity Monitor, and that largely accounts for the difference in time that those threads took to complete their floating point calculations. What is % CPU? What Activity Monitor actually shows as % CPU or "percentage of CPU capability that's being used" is what's better known as active residency of each core, that's the percentage of processor cycles that aren't idle, but actively processing threads owned by a given process. But it doesn't take into account the frequency or clock speed of the core at that time, nor the difference in core throughput between P and E cores. The next time that you open Activity Monitor on an Apple silicon Mac, to look at % CPU figures, bear in mind that while those numbers aren't completely meaningless, they don't mean what you might think, and what's shown as 100% could be anything between 27-100%. Share this: * Twitter * Facebook * Reddit * Pinterest * Email * Print * Like Loading... Related Posted in Macs, Technology and tagged % CPU, Activity Monitor, Apple silicon, cores, CPU, frequency, performance. Bookmark the permalink. 2Comments Add yours 1. 1 [01ae53f8f710] Michele Galvagno on November 8, 2024 at 9:08 am Reply I somehow feel involved in this article BTW, after force quitting MDS_STORES it resumed flawless operation. Connecting disk triggers TM Backup, then MD_WRITE, then MDS_STORES, which then go to 0% and allow to eject disk. Spotlight within Sequoia is back to perfection as it was before! LikeLiked by 1 person + 2 [87cc8acbb0b9] hoakley on November 8, 2024 at 9:29 am Reply Thank you, Michele. You are but one of many. When I checked, it was a long time since I drew attention to this problem. I'm delighted that your indexing problem is now fixed. Howard. LikeLiked by 1 person Leave a comment Cancel reply [ ] [ ] [ ] [ ] [ ] [ ] [ ] D[ ] This site uses Akismet to reduce spam. Learn how your comment data is processed. Quick Links * Free Software Menu * System Updates * M-series Macs * Mac Troubleshooting Summary * Mac problem-solving * Painting topics * Painting * Long Reads Search Search for: [ ] [Search] Monthly archives * November 2024 (32) * October 2024 (78) * September 2024 (77) * August 2024 (75) * July 2024 (77) * June 2024 (71) * May 2024 (79) * April 2024 (75) * March 2024 (81) * February 2024 (72) * January 2024 (78) * December 2023 (79) * November 2023 (74) * October 2023 (77) * September 2023 (77) * August 2023 (72) * July 2023 (79) * June 2023 (73) * May 2023 (79) * April 2023 (73) * March 2023 (76) * February 2023 (68) * January 2023 (74) * December 2022 (74) * November 2022 (72) * October 2022 (76) * September 2022 (72) * August 2022 (75) * July 2022 (76) * June 2022 (73) * May 2022 (76) * April 2022 (71) * March 2022 (77) * February 2022 (68) * January 2022 (77) * December 2021 (75) * November 2021 (72) * October 2021 (75) * September 2021 (76) * August 2021 (75) * July 2021 (75) * June 2021 (71) * May 2021 (80) * April 2021 (79) * March 2021 (77) * February 2021 (75) * January 2021 (75) * December 2020 (77) * November 2020 (84) * October 2020 (81) * September 2020 (79) * August 2020 (103) * July 2020 (81) * June 2020 (78) * May 2020 (78) * April 2020 (81) * March 2020 (86) * February 2020 (77) * January 2020 (86) * December 2019 (82) * November 2019 (74) * October 2019 (89) * September 2019 (80) * August 2019 (91) * July 2019 (95) * June 2019 (88) * May 2019 (91) * April 2019 (79) * March 2019 (78) * February 2019 (71) * January 2019 (69) * December 2018 (79) * November 2018 (71) * October 2018 (78) * September 2018 (76) * August 2018 (78) * July 2018 (76) * June 2018 (77) * May 2018 (71) * April 2018 (67) * March 2018 (73) * February 2018 (67) * January 2018 (83) * December 2017 (94) * November 2017 (73) * October 2017 (86) * September 2017 (92) * August 2017 (69) * July 2017 (81) * June 2017 (76) * May 2017 (90) * April 2017 (76) * March 2017 (79) * February 2017 (65) * January 2017 (76) * December 2016 (75) * November 2016 (68) * October 2016 (76) * September 2016 (78) * August 2016 (70) * July 2016 (74) * June 2016 (66) * May 2016 (71) * April 2016 (67) * March 2016 (71) * February 2016 (68) * January 2016 (90) * December 2015 (96) * November 2015 (103) * October 2015 (119) * September 2015 (115) * August 2015 (117) * July 2015 (117) * June 2015 (105) * May 2015 (111) * April 2015 (119) * March 2015 (69) * February 2015 (54) * January 2015 (39) Tags APFS Apple Apple silicon backup Big Sur Blake bug Catalina Consolation Console Corinth Delacroix Disk Utility El Capitan extended attributes Finder firmware Gatekeeper Gerome HFS+ High Sierra history of painting iCloud Impressionism landscape LockRattler log M1 Mac Mac history macOS macOS 10.12 macOS 10.13 macOS 10.14 macOS 10.15 macOS 11 macOS 12 macOS 13 macOS 14 malware Metamorphoses Mojave Monet Monterey Moreau MRT myth narrative OS X Ovid painting performance Pissarro Poussin privacy Renoir riddle Rubens Sargent scripting security Sierra SilentKnight Sonoma SSD Swift Time Machine Tintoretto Turner update upgrade Ventura xattr Xcode XProtect Statistics * 18,127,545 hits Blog at WordPress.com. Footer navigation * Free Software Menu * About & Contact * Macs * Painting * Downloads * Mac problem-solving * Extended attributes (xattrs) * Painting topics * SilentKnight, Skint, silnite, LockRattler, SystHist & Scrub * DelightEd & Podofyllin * xattred, Spotcord, Metamer & xattr tools * 32-bitCheck & ArchiChect * XProCheck, T2M2, Ulbow, Consolation and log utilities * Cirrus & Bailiff * Taccy, Signet, Precize, Alifix, UTIutility, Sparsity, alisma * Versatility & Revisionist * Text Utilities: Nalaprop, Dystextia and others * PDF * Keychains & Permissions * Updates * Spundle, Cormorant, Stibium, Dintch, Fintch and cintch * Long Reads * Mac Troubleshooting Summary * M-series Macs * Mints: a multifunction utility * VisualLookUpTest * Virtualisation on Apple silicon * System Updates * Saturday Mac Riddles * Last Week on My Mac * sysctl information Secondary navigation * Search Post navigation Commemorating the centenary of the death of Hans Thoma: 2, from 1886 Interiors by design: Studios, history and light Search for: [ ] [Search] Begin typing your search above and press return to search. Press Esc to cancel. * Comment * Reblog * Subscribe Subscribed + [croppe] The Eclectic Light Company Join 6,105 other subscribers [ ] Sign me up + Already have a WordPress.com account? Log in now. * + [croppe] The Eclectic Light Company + Customize + Subscribe Subscribed + Sign up + Log in + Copy shortlink + Report this content + View post in Reader + Manage subscriptions + Collapse this bar Loading Comments... Write a Comment... [ ] Email (Required) [ ] Name (Required) [ ] Website [ ] [Post Comment] %d [b]