{"id":31017,"date":"2020-12-14T15:44:37","date_gmt":"2020-12-14T20:44:37","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=31017"},"modified":"2021-02-22T15:58:53","modified_gmt":"2021-02-22T20:58:53","slug":"chrome-updater-may-cause-mac-slowness","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2020\/12\/14\/chrome-updater-may-cause-mac-slowness\/","title":{"rendered":"Chrome Updater May Cause Mac Slowness"},"content":{"rendered":"<p><a href=\"https:\/\/chromeisbad.com\">Loren Brichter<\/a> (<a href=\"https:\/\/twitter.com\/lorenb\/status\/1337832978253230081\">tweet<\/a>, <a href=\"https:\/\/news.ycombinator.com\/item?id=25400618\">Hacker News<\/a>):<\/p>\n<blockquote cite=\"https:\/\/chromeisbad.com\"><p>Google Chrome installs something called Keystone on your computer, which nefariously hides itself from Activity Monitor and makes your whole computer slow even when Chrome isn&rsquo;t running. Deleting Chrome and Keystone makes your computer way, way faster, all the time.<\/p><\/blockquote>\n<p>I&rsquo;ve not seen this problem on any of the Macs I administer. And what&rsquo;s alleged doesn&rsquo;t seem very likely to me, except that it&rsquo;s being reported by <em>Loren Brichter<\/em>. But the response indicates that some people are seeing an improvement, so I hope that Google will investigate. Maybe an OS bug is being triggered. Or maybe people are confusing the effects of restarting their Mac (as Brichter&rsquo;s instructions suggest) and removing Chrome (a known memory hog) with the effects of removing the Keystone updater itself.<\/p>\n\n<p>I&rsquo;m also <a href=\"https:\/\/twitter.com\/siegel\/status\/1338508607911030785\">not<\/a> <a href=\"https:\/\/twitter.com\/mchang\/status\/1337970614334705664\">convinced<\/a> that Keystone &ldquo;hides itself from Activity Monitor&rdquo; or that there&rsquo;s anything <a href=\"https:\/\/twitter.com\/tapbot_paul\/status\/1338504777404133379\">nefarious<\/a> going on.<\/p>\n\n<p><a href=\"https:\/\/9to5mac.com\/2020\/12\/14\/chrome-slowing-down-mac-performance\/\">Guilherme Rambo<\/a>:<\/p>\n<blockquote cite=\"https:\/\/9to5mac.com\/2020\/12\/14\/chrome-slowing-down-mac-performance\/\"><p>As you can see from the comparison above, with Chrome installed, the WindowServer process used about 50s of CPU during the test window. Without Chrome and its updater installed, it used about 49s. I don&rsquo;t see this as a confirmation of the problem, given that the difference is negligible (way below what would cause visible performance issues).<\/p>\n<p>Apart from that, the entire claim that a process which runs once per hour would cause a completely unrelated system service to have high CPU usage is wild. WindowServer is responsible for rendering the macOS UI to the screen, it spends its time in the <code>CGXUpdateDisplay<\/code> method, rendering CALayers, a task that has absolutely nothing to do with anything a software update checker (with no UI) would be doing.<\/p><\/blockquote>\n\n<p>See also:<\/p>\n<ul>\n<li><a href=\"https:\/\/bugs.chromium.org\/p\/chromium\/issues\/detail?id=1102196\">Keystone for macOS should use auditToken to validate incoming XPC message<\/a> (also: <a href=\"https:\/\/twitter.com\/patrickwardle\/status\/1323744700604379137\">Patrick Wardle<\/a>)<\/li>\n<li><a href=\"http:\/\/an.enduringcolumn.com\/2011\/04\/keeping-up.html\">How Chrome stays fresh without getting in your face, and why its on-disk structure is a little unconventional<\/a> (2011, via <a href=\"https:\/\/twitter.com\/lapcatsoftware\/status\/1338328584314818562\">Jeff Johnson<\/a>)<\/li>\n<li><a href=\"https:\/\/www.wired.com\/2009\/02\/why-googles-sof\/\">Why Google&rsquo;s Software Update Tool is Evil<\/a> (2009)<\/li>\n<\/ul>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2019\/09\/25\/chrome-updater-bug-prevents-macs-from-booting\/\">Chrome Updater Bug Prevents Macs From Booting<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2019\/09\/02\/privilegedhelpertools-and-checking-xpc-peers\/\">PrivilegedHelperTools and Checking XPC Peers<\/a><\/li>\n<\/ul>\n\n<p>Update (2020-12-14): See also: Brichter&rsquo;s <a href=\"https:\/\/bugs.chromium.org\/p\/chromium\/issues\/detail?id=1158402\">bug report<\/a> (<a href=\"https:\/\/twitter.com\/lorenb\/status\/1338570397512511494\">tweet<\/a>).<\/p>\n\n<p id=\"chrome-updater-may-cause-mac-slowness-update-2020-12-16\">Update (2020-12-16): <a href=\"https:\/\/twitter.com\/lorenb\/timelines\/1338892756752732169\">Loren Brichter<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/lorenb\/timelines\/1338892756752732169\"><p>Anecdotes from people with persistent and unexplained performance issues who have fixed it by uninstalling Chrome &amp; Keystone.<\/p><\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/_AngeloidBeta\/status\/1338611408582430725\">Gwynne Raskind<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/_AngeloidBeta\/status\/1338611408582430725\">\n<p>I wonder if this is possibly the result of interaction with firewalls - ditching JUST Keystone (kept Chrome, didn&rsquo;t restart) cut WindowServer CPU usage by 50% for me. I also had rules blocking it in Little Snitch. A faulty retry loop of some kind maybe?<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/tapbot_paul\/status\/1338670293838159873\">Paul Haddad<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/tapbot_paul\/status\/1338670293838159873\">\n<p>Last night I created 3 almost identical 10.15.7 VMs. First one had nothing installed. Second one had Chrome installed, but not running. Third one had Chrome running with example.com open.<\/p>\n<p>Left them running, result? No significant difference between any of them. &#x1F937;&#x200D;&#x2642;&#xFE0F;<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/BrendanEich\/status\/1338380827302903810\">Brendan Eich<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/BrendanEich\/status\/1338380827302903810\">\n<p>I saw WindowServer hogging CPU and tried this &ldquo;one weird trick&rdquo; (expunged all Google software from my 2019 MBP) and I don&rsquo;t know why, but it works. Could be a macOS bug or multi factor bug, who knows? Try it.<\/p>\n<\/blockquote>\n\n<p id=\"chrome-updater-may-cause-mac-slowness-update-2021-02-22\">Update (2021-02-22): <a href=\"https:\/\/twitter.com\/rustyshelf\/status\/1362934498665459712\">Russell<\/a> <a href=\"https:\/\/twitter.com\/rustyshelf\/status\/1362927852568473610\">Ivanovic<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/rustyshelf\/status\/1362934498665459712\">\n<p>So my shiny new M1 laptop, clean installed only a month and a bit ago now idles WindowServer at 20-40%. All day battery is now 3 hour battery.<\/p>\n<p>Before you ask, I never installed Chrome (and never bought into the Chrome is bad thing).<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Loren Brichter (tweet, Hacker News): Google Chrome installs something called Keystone on your computer, which nefariously hides itself from Activity Monitor and makes your whole computer slow even when Chrome isn&rsquo;t running. Deleting Chrome and Keystone makes your computer way, way faster, all the time. I&rsquo;ve not seen this problem on any of the Macs [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2020-12-14T20:44:39Z","apple_news_api_id":"cfd919eb-05fd-4ed7-afcf-3e81c40a1b29","apple_news_api_modified_at":"2021-02-22T20:58:56Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAABA==","apple_news_api_share_url":"https:\/\/apple.news\/Az9kZ6wX9Ttevzz6BxAobKQ","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[131,456,500,30,32,1891,1013],"class_list":["post-31017","post","type-post","status-publish","format-standard","hentry","category-technology","tag-bug","tag-googlechrome","tag-launchd","tag-mac","tag-macapp","tag-macos-11-0","tag-private-api"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=31017"}],"version-history":[{"count":6,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31017\/revisions"}],"predecessor-version":[{"id":31704,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/31017\/revisions\/31704"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=31017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=31017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=31017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}