💾 Archived View for uscoffings.net › retro-computing › notes › degunking-ppc-mac.gmi captured on 2023-09-08 at 16:03:55. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Degunking a PowerPC Mac

[date: 2013-09-07]

Old Hardware... or Slow Hardware?

My wife's Mac Mini (1.4 Ghz PPC, 10.4.11, 1GB RAM) is showing its age. We're not ready to spring for a new Mac because we have plenty of more pressing financial demands. But moreover, as a software engineer, I am annoyed and dismayed by the state of software. Bad software is bad software; continually throwing more hardware at the problem does not fix it. Therefore I'm curious to find out why this Mac is getting so painfully slow over time, and hopefully fix it.

Sharing

The first step is to ensure extra daemons aren't running. Open `System Preferences > Sharing`.

Measure

About This Mac / More Info... / System Profiler

Applications / Utilities / Activity Monitor

Sort by highest memory usage:

top -o size

Sort by most CPU time consumed (this is most meaningful if you boot your Mac and use it normally for a while first):

top -o time

Sort by the highest number of threads:

top -o th

Airport

This Mac has no wireless card installed. So why is it running an AirPort app?

marble:Library laura$ ps auxw | grep -i air
laura      412   0.0  0.3   143492   2876   ??  S     8:05PM   0:00.12 /System/Library/CoreServices/AirPort Base Station Agent.app/Contents/MacOS/AirPort Base Station Agent -launchd -allowquit

This agent apparently sits in the background and checks for Airport updates on a weekly basis. Useless! Here is how to disable AirPort Base Station Agent:

http://osxdaily.com/2010/10/13/disable-airport-base-station-agent/

Disable Spotlight

killall mds
rm -rf /Library/Spotlight

/System/Library/LaunchAgents/com.apple.Spotlight.plist
/System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Canon Scanner

I generally like the Cannon LIDE series of scanners. They're compact, USB powered, and work well. But the software is horrible.

mv /Library/CFMSupport/CNQL2410_ButtonManager.app ~/CNQL2410_ButtonManager.app.disabled

After I moved this and restarted, it still was running, and was the top CPU user!

marble:~ laura$ top -o time
marble:~ laura$ ps auxw | grep CNQ
laura      137   0.3  0.0    66152    192 s000  R+    8:10PM   0:00.00 grep CNQ
laura      106   0.2  0.2   110740   2336   ??  S     8:09PM   0:03.87
/Users/laura/CNQL2410_ButtonManager.app.disabled/Contents/MacOS/CNQL2410_ButtonManager -psn_0_53261
marble:~ laura$ jobs
marble:~ laura$ rm -rf ~/CNQL2410_ButtonManager.app.disabled/
marble:~ laura$ 

Leapfrog Connect Monitor

fseventsd

fseventsd monitors filesystem events, and serves them up to interested applications. I believe that Spotlight was the original reason this was created.

TenFourFox

Started the latest available Safari, Camino, and TenFourFox. Browsed each to slashdot.org, archaeology.org, and gnu.org. Safari was clearly the slowest, by far. Camino would occasionally beach-ball. TenFourFox was refreshingly quick.

    PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
    246 Safari       0.0%  1:18.90  12   223+  1391   38M+   41M+   66M+  234M+
    241 firefox      0.0%  0:36.18  24   174+  1535   97M+   67M+  133M+ 1307M+
    242 Camino       0.0%  0:30.09  12   143+   541   31M+   44M+   70M+  199M+

kext

kextstat
kextunload
rm /System/Library/Extentions/xxx