Archive for the ‘Apple’ Category
Posted by jpluimers on 2021/06/14
Every now and then, Chrome hangs to badly on MacOS that the whole Mac GUI becomes unresponsive so even the “Force Quit” dialog does not appear.
Sometimes you are lucky enough that you have a (remote) terminal shell open.
Then you can do either of these:
- Less hard kill:
killall 'Google Chrome'
killall Google\ Chrome
- Hard kill:
killall -9 'Google Chrome'
killall -9 Google\ Chrome
The less hard kill sometimes brings up an unresponsive task and still allows you to save any changed.
Via:
–jeroen
Posted in Apple, Chrome, Google, Mac OS X / OS X / MacOS, Power User | Leave a Comment »
Posted by jpluimers on 2021/05/21
Based on [WayBack] Command-Tab Not working….. – Apple Community
If you go to Activity monitor and search for dock, doubleclick on it, choose Force quit.
It will restart the Dock app and now it should work.
I wrote this alias which restarts Dock (including Dashboard and Spaces as they are served by the same process).
alias restart-dock-dashboard-spaces='killall -KILL Dock'
Related: my 2013 post Mac: Restarting the Mac OS X Dock, Finder, Spaces or Menubar | Stefan Ernst.
–jeroen
Posted in Apple, iMac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, macOS 10.12 Sierra, macOS 10.13 High Sierra, OS X 10.10 Yosemite, Power User | Leave a Comment »
Posted by jpluimers on 2021/04/26
Just in case I get Finder at 100% of one CPU core again while Time Machine is performing “Preparing backup…” for > 6 hours, I might take another look at these links:
This did not reveal much interesting back then:
clear; printf '\e[3J' && log show --predicate 'subsystem == "com.apple.TimeMachine"' --info --last 24h | grep -F 'eMac' | grep -Fv 'etat' | awk -F']' '{print substr($0,1,19), $NF}'
I was at Mac OS 10.3 High Sierra back then with 4 TB external backup disks backing up from the internal 1TB PCIe NVMe.
–jeroen
Read the rest of this entry »
Posted in Apple, Mac OS X / OS X / MacOS, macOS 10.13 High Sierra, Power User | Leave a Comment »
Posted by jpluimers on 2021/04/19
First I thought this was about using 4K resolution and chrome, but later I realized that it wasn’t just Chrome disliking high resolutions Spotlight was using a tremendous amount of CPU, not just while Chrome was running:

This was MacOS “mds_stores” high CPU usage all over again, but with different processe names as pointed to me in a sudo su - shell:
Read the rest of this entry »
Posted in Apple, Mac OS X / OS X / MacOS, Power User, SpotLight | Leave a Comment »
Posted by jpluimers on 2021/04/19
I missed this 2014 article [WayBack] Recovering Deleted Files with Scalpel » Linux Magazine:
The Scalpel file carver helps users restore what they thought were lost files.
Via the now defunct G+ link: https://plus.google.com/+Doortodoorgeek/posts/eskyp8PH57a?_utm_source=1-2-2 from which I saved this quote:
+honkey Magoo recovering with Photorec can be hard, I had a touch more luck with this one
Scalpel File Carver: http://www.linux-magazine.com/Online/Features/Recovering-Deleted-Files-with-Scalpel
I wish it had been maintained longer, as the most recent changes are indeed from 2014: [WayBack] GitHub – sleuthkit/scalpel: Scalpel is an open source data carving tool. (it is now indeed part of Sleuthkit, see [WayBack] Scalpel – ForensicsWiki)
So basically this was a short revival: WayBack: Digital Forensics Solutions: Announcing Scalpel 2.0.
–jeroen
Read the rest of this entry »
Posted in *nix, *nix-tools, Apple, Mac OS X / OS X / MacOS, Power User | Leave a Comment »
Posted by jpluimers on 2021/03/31
Based on [WayBack] linux – How can I execute a series of commands in a bash subshell as another user using sudo? – Stack Overflow:
alias restart-spotlight-service-as-root="sudo bash -c 'echo stop;launchctl stop com.apple.metadata.mds;echo start;launchctl start com.apple.metadata.mds;echo started'"
The bold bits above sudo bash -c 'echo stop;launchctl stop com.apple.metadata.mds;echo start;launchctl start com.apple.metadata.mds;echo started' allow the commands between single quotes to executed in one new bash shell under sudo.
–jeroen
Posted in *nix, *nix-tools, Apple, bash, bash, Development, Mac OS X / OS X / MacOS, Power User, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2021/03/15
I notices a high CPU usage, so searched for [Wayback] “mds_stores” – Google Search.
There I quickly found out this is the Spotlight indexer using a lot of CPU.
From that, it was easy to track down: I had added a second 4TB backup disk, but forgot to add it to the Spotlight indexing exclusion list, where you get by following these steps:
- Open “Preferences”
- Search for “Spotlight”
- Click on the “Privacy” button
- Click on the “+” button to add a new folder
- Browse to the top of the list inside your computer to find the volumes to exclude
Now it is on it:

Related: [WayBack] [FIXED] mds_stores Process Consuming High CPU Usage – MacMetric
–jeroen
Posted in Apple, Mac OS X / OS X / MacOS, Power User, SpotLight | Leave a Comment »