router78

Q: system is slow

my system is not as fast as when I first got it, I have not added a lot to it. Is there a way to increase the speed?

iMac, Mac OS X (10.7.5)

Posted on May 2, 2014 9:30 AM

Close

Q: system is slow

  • All replies
  • Helpful answers

  • by dominic23,

    dominic23 dominic23 May 2, 2014 9:52 AM in response to router78
    Level 8 (42,001 points)
    Mac OS X
    May 2, 2014 9:52 AM in response to router78

    OS X  Lion/Mountain Lion/ Mavericks: If your Mac runs slowly?

     

    Spotlight indexing make computer run slowly after a fresh installation of OS X.

     

    http://support.apple.com/kb/PH13895

     

    Startup in Safe Mode

     

    http://support.apple.com/kb/PH14204

     

    Repair Disk

     

    Steps 1 through 7

    http://support.apple.com/kb/PH5836

     

     

    Reset SMC.     http://support.apple.com/kb/HT3964

    Choose the method for:

    "Resetting SMC on portables with a battery you should not remove on your own".

     

    Increase disk space.

     

    http://support.apple.com/kb/PH13806

     

     

     

    Run Etrecheck and look for third party apps that  may slow down the computer

     

    https://discussions.apple.com/docs/DOC-6173

  • by Linc Davis,

    Linc Davis Linc Davis May 2, 2014 11:18 AM in response to router78
    Level 10 (208,022 points)
    Applications
    May 2, 2014 11:18 AM in response to router78

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.

    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.

    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.

    3. Below are instructions to run a UNIX shell script, a type of program. All it does is to collect information about the state of the computer. That information goes nowhere unless you choose to share it. However, you should be cautious about running any kind of program (not just a shell script) at the request of a stranger. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them. Ask for other options.

    Here's a summary of what you need to do, if you choose to proceed:

    ☞ Copy a line of text in this window to the Clipboard.

    ☞ Paste into the window of another application.

    ☞ Wait for the test to run. It usually takes a few minutes.

    ☞ Paste the results, which will have been copied automatically, back into a reply on this page.

    The sequence is: copy, paste, wait, paste again. You don't need to copy a second time. Details follow.

    4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode, under the conditions in which the problem is reproduced. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.

    5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.

    6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.

    Triple-click anywhere in the line of text below on this page to select it:

    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/libexec;clear;cd;p=(Software Hardware Memory Diagnostics Power FireWire Thunderbolt USB Fonts 51 4 300 25 5120 KiB/s 1024 85 % 10240 1 MB/s 25000 ports 'com.autodesk.AutoCad com.evenflow.dropbox com.google.GoogleDrive' 'DYLD_INSERT_LIBRARIES DYLD_LIBRARY_PATH' -86 `route -n get default|awk '/e:/{print $2}'` 25 'N\/A' down up 102400 25600 recvfrom sendto CFBundleIdentifier 25 50 );N5=${#p[@]};p[N5]=`networksetup -listnetworkserviceorder|awk ' NR>1{ sub(/^\([0-9]+\) /,"");n=$0;getline;};$NF=="'${p[45]}')"{ sub(/.$/,"",$NF);print n;exit;}'`;f=('\n%s: %s\n' '\n%s\n\n%s\n' '\nRAM details\n%s\n' '%s %s' '%s\n\t(%s)\n' );S0() { echo ' { q=$NF+0;$NF="";u=$(NF-1);$(NF-1)="";gsub(/^ +| +$/,"");if(q>='${p[$1]}')print $0" (UID "u") is using "q" '${p[$2]}'";} ';};s=(' /^ *$|CSConfigDot/d;s/^ */   /;s/[-0-9A-Fa-f]{22,}/UUID/g;s/(ochat)\.[^.]+(\..+)/\1\2/;/Shared/!s/\/Users\/[^/]+/~/g ' 's/^ +//;5p;6p;8p;12p' '{sub(/^ +/,"")}NR==6;NR==13&&$2<'${p[10]} '1,5d;/[Bmy].*:/d;H;${g;/s: [^EO]|x([^08]|02[^F]|8[^0])/p;}' '5h;6{H;g;/P/!p;}' '($1~/^Cy/&&$3>'${p[11]}')||($1~/^Cond/&&$2!~/^N/)' '/:$/{s/ *:$//;x;s/\n//;/Apple|Genesy|Intel|SMSC/d;s/\n.*//;/\)/p;};/^ *(V.+ [0N]|Man).+ /{s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;}' 's/^.*C/C/;H;${g;/No th|pms/!p;}' '/= [^GO]/p' '{$1=""};1' '/Of/!{s/^.+is |\.//g;p;}' '/(sh|ng|ic)$/p' ' $3~/[0-9]:[0-9]{2}$/{ $4="";sub("  "," ");};{ print|"tail -n'${p[12]}'";} ' 'NR==2&&$4<='${p[13]}'{print $4}' 'END{$2/=256;if($2>='${p[15]}')print int($2)}' 'NR!=13{next};{sub(/[+-]$/,"",$NF)};'"`S0 21 22`" 'NR==2'"`S0 37 17`" 'NR!=5||$8!~/[RW]/{next};{ $(NF-1)=$1;$NF=int($NF/10000000);for(i=1;i<=3;i++){$i="";$(NF-1-i)="";};};'"`S0 19 20`" 's:^:/:p' '/\.kext\/(Contents\/)?Info\.plist$/p' 's/^.{52}//;s/ .+//p' '/Launch[AD].+\.plist$/;END{if(NR==1)print "/System/";}' '/\.xpc\/(Contents\/)?Info\.plist$/p' 'NR>1&&!/0x|\.[0-9]+$|com\.apple\.launchctl\.(Aqua|Background|System)$/{print $3}' '/\.(framew|lproj)/d;/plist:|:.+(M.+exec|scrip)/s/:[^:]+//p' '/root/p' ' !/\/Contents\/.+\/Contents|Applic|Autom|Frameworks/&&/Lib.+\/Info.plist$/;END{if(NR==1)print "/System/"} ' ' /^\/usr\/lib\/.+dylib$/;END{if(NR==1)print "dylib";} ' '/\/etc\/(auto_m|hosts[^.]|peri)/s/^\.\/[^/]+//p' '/\/(Contents\/.+\/Contents|Frameworks)\//d;p' 's/\/(Contents\/)?Info.plist$//;p' '{gsub("^| ","||kMDItem'${p[35]}'=");sub("^.."," ")};1' p '{print $3"\t"$1}' 's/\'$'\t''.+//p' 's/1/On/p' '/Prox.+: [^0]/p' '$2>'${p[9]}'{$2=$2-1;print}' 'BEGIN{ i="'${p[26]}'";M1='${p[16]}';M2='${p[18]}';M3='${p[31]}';M4='${p[32]}';};!/^A/{next} /%/{ getline;if($5<M1)a="user "$2"%, system "$4"%" };/disk0/&&$4>M2{ b=$3" ops/s, "$4" blocks/s" };$2==i{ if(c){d=$3+$4+$5+$6;next};if($4>M3||$6>M4)c=int($4/1024)" in, "int($6/1024)" out" };END{ if(a)print "CPU: "a;if(b)print "I/O: "b;if(c)print "Net: "c" (KiB/s)";if(d)print "Net errors: "d" packets/s";}' '/r\[0\] /&&$NF!~/^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./{print $NF;exit}' '!/^T/{printf "(static)";exit}' '/apsd|OpenD/!s/:.+//p' '(/k:/&&$3!~/(255\.){3}0/)||(/v6:/&&$2!~/A/)' '/lR/{if($2<='${p[25]}')print $2}' ' BEGIN{ FS=":";} { n=split($3,a,".");sub(/_2.+/,"",a[n-1]);b=b"\n"$2" "a[n-1]" "a[n]" "$1;c=c$1;} END{ d="sort";print b|d;close(d);if(c)print("\n\t* Code injection");} ' 'NR!=4{next}{$NF=int($NF/10240)}'"`S0 27 14`" 'END{if($5~/pro/)print$3}' ' BEGIN{ L='${p[36]}';} !/^[[:space:]]*(#.*)?$/{ l++;if(l<=L)f=f"\n\t"$0;};END{ F=FILENAME;if(F)print "\nContents of "F"\n"f;if(l>L)print"\n\tand "l-L" more line(s)" } ' 'BEGIN{FS="= "}/Path/{print $2}' '/^ +B/{s/.+= |(-[0-9]+)?\.s.+//g;p;}' 'END{print NR}' '/id: N|te: Y/{i++}END{print i}' '/:/!p' '/:/{$0="'"${p[28]}"'"};1' '$0;END{if(NR==1)print "com.apple.";}' );c1=(system_profiler 'pmset -g' nvram fdesetup find syslog df vm_stat sar ps 'sudo crontab' 'sudo iotop' top pkgutil PlistBuddy whoami cksum kextstat launchctl 'sudo launchctl' crontab 'sudo defaults read' stat lsbom mdfind 'for i in ${p[24]};do ${c1[18]} ${c2[27]} $i;done' 'defaults read' scutil 'sudo dtrace' 'sudo profiles' 'sed -En' awk /S*/*/P*/*/*/*/*/airport netstat networksetup );c2=('com.apple.loginwindow LoginHook' '-c Print /L*/P*/loginw*' '-c Print L*/P*/*loginit*' '-c Print L*/Saf*/*/E*.plist' '~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \)' '.??* -path .Trash -prune -o -type d -name *.app -print -prune' '-c Print\ :'${p[35]}' 2>&1' '-c Print\ :Label 2>&1' '{/,}L*/{Con,Pref}* -type f ! -size 0 -name *.plist -exec plutil -s {} \;' "-f'%N: %l' Desktop L*/Keyc*" therm sysload boot-args status '-F bsd -k Sender kernel -k Message CReq "caug|dead[^l]|GPU |hfs: Ru|last value [1-9]|n Cause: -|NVDA\(|pagin|proc: t|Roamed|rror|ssert|Thrott|timed? ?o|WARN" -k Message Ane "SMC:" -o -k Sender fseventsd -k Message CReq "SL"' '-du -n DEV -n EDEV 1 10' 'acrx -o comm,ruid,%cpu' '-t1 10 1' '-f -pfc /var/db/*/*.{BS,Bas,Es,OSXU,Rem}*.bom' '{/,}L*/Lo*/Diag* -type f \( -exec grep -lq "^Thread c" {} \; -exec printf \* \; -o -true \) -execdir stat -f:%Sc:%N -t%F {} \;' '-L {/{S*/,},}L*/Lau* -type f' '-L /{S*/,}L*/StartupItems -type f -exec file {} +' '-L /S*/L*/{C*/Sec*A,E}* {/,}L*/{A*d,Compon,Ex,In,iTu,Keyb,Mail/B,P*P,Qu*T,Scripti,Sec,Servi,Spo}* -type f -name Info.plist' '/usr/lib -type f -name *.dylib' `awk "${s[31]}"<<<${p[23]}` "/e*/{auto_master,{cron,fs}tab,hosts,{launchd,sysctl}.conf} /u*/lo*/e*/per*/*/* .launchd.conf" list getenv '/Library/Preferences/com.apple.alf globalstate' --proxy '-n get default' -I --dns -getdnsservers '-getinfo '"${p[N5]}" '-b -I' '-m /' '' -n1 '-R -l1 -n1 -o prt -stats command,uid,prt' '--regexp --only-files --files com.apple.pkg.*|sort|uniq' -kl -l -P );N1=${#c2[@]};for j in {0..8};do c2[N1+j]=SP${p[j]}DataType;done;N2=${#c2[@]};for j in 0 1;do c2[N2+j]="-n 'syscall::'${p[33+j]}':return {@out[execname,uid]=sum(arg0)} tick-10sec {trunc(@out,1);exit(0)}'";done;l=('Restricted files' 'Hidden apps' RAM POST Battery 'Safari extensions' 'Bad plists' 'High file counts' User Heat 'System load' 'boot args' FileVault 'Diagnostic reports' Log 'Free space (MiB)' 'Swap (MiB)' Activity 'CPU per process' 'Login hook' 'I/O per process' 'Mach ports' kexts Daemons Agents launchd 'Startup items' 'Admin access' 'Root access' Bundles dylibs Apps 'Font issues' 'Inserted dylibs' Firewall Proxies DNS TCP/IP RSSI Profiles 'Elapsed time (s)' 'Root crontab' 'User crontab' 'Global login items' 'User login items' );N3=${#l[@]};for i in 0 1 2;do l[N3+i]=${p[5+i]};done;N4=${#l[@]};for j in 0 1;do l[N4+j]="Average ${p[29+j]}stream data (KiB/s)";l[N4+2+j]="Current ${p[29+j]}stream data";done;A0() { id -G|grep -qw 80;v[1]=$?;((v[1]==0))&&sudo true;v[2]=$?;v[3]=`date +%s`;clear;};for i in 0 1;do eval A$((1+i))'() { v[0]=`eval "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}"`;[[ "${v[0]}" ]];};';eval A$((3+i))'() { v[0]=`while read i;do eval "${c1[$1]} ${c2[$2]}" \"$i\"|'${c1[30+i]}' "${s[$3]}";done<<<"${v[$4]}"`;[[ "${v[0]}" ]];};';eval A$((5+i))'() { v[0]=`while read i;do '${c1[30+i]}' "${s[$1]}" "$i";done<<<"${v[$2]}"`;[[ "${v[0]}" ]];};';done;A7(){ v[0]=$((`date +%s`-v[3]));};B1(){ unset v[0];((v[2]==0))||{ v[0]=No;false;};};B2(){ v[$1]="${v[0]}";};for i in 0 1;do eval B$((3+i))'(){ v[$2]=`'${c1[30+i]}' "${s[$3]}"<<<"${v[$1]}"`;}';done;B5(){ v[$1]="${v[$1]}"$'\n'"${v[$2]}";};B6() { v[0]=`paste -d: <(echo "${v[$1]}") <(echo "${v[$2]}")|awk -F: '{printf("'"${f[$3]}"'",$1,$2)}'`;};B7(){ unset v[0];((v[1]==0))||{ v[0]=No;false;};};B8(){ v[0]=`grep -Fv "${v[$1]}"<<<"${v[0]}"`;};C0(){ echo "${v[0]}";};C1(){ [[ "${v[0]}" ]]&&printf "${f[$1]}" "${l[$2]}" "${v[0]}";};C2(){ v[0]=`echo ${v[0]}`;[[ "${v[0]}" != 0 ]]&&C1 0 $1;};C3(){ v[0]=`sed -E "${s[0]}"<<<"${v[0]}"`&&C1 1 $1;};A0;{ A2 0 $((N1+1)) 2;C0;A1 0 $N1 1;C0;B7;C2 27;B7&&! B1&&C2 28;A1 15 37 25;C2 8;A1 0 $((N1+2)) 3;C3 2;A1 0 $((N1+3)) 4;C3 3;A2 0 $((N1+4)) 5;C2 4;for i in 0 1 2;do A1 0 $((N1+5+i)) 6;C3 $((N3+i));done;A1 1 10 7;C3 9;A1 1 11 8;C3 10;A2 2 12 9;C2 11;A1 3 13 10;C2 12;A1 4 19 11;B4 0 0 44;C3 13;A2 5 14 12;C3 14;A2 6 36 13;C2 15;A2 7 37 14;C2 16;A2 8 15 38;C3 17;A2 9 16 16;C2 18;B1&&{ A2 11 17 17;C2 20;};A2 12 39 15;C2 21;A1 13 40 18;B2 4;B3 4 0 19;A3 14 6 52 0;B4 0 5 54;A1 17 41 20;B8 5;C3 22;B4 4 6 21;A3 14 7 52 6;B4 0 7 54;B3 4 0 22;A3 14 6 52 0;B4 0 8 54;B5 7 8;B1&&{ A2 19 26 23;B8 7;C3 23;};A2 18 26 23;B8 7;C3 24;A2 4 20 21;B8 6;B2 9;A4 14 7 53 9;B2 10;B6 9 10 4;C3 25;A1 4 21 24;C3 26;B4 4 12 26;B4 4 13 27;A1 4 22 29;B8 12;B2 14;A4 14 6 53 14;B2 15;B6 14 15 4;B3 0 0 30;C3 29;A1 4 23 27;B8 13;C3 30;A1 24 24 32;C3 31;A1 23 18 28;B2 16;A2 16 25 33;B8 16;B3 0 0 34;B2 21;A6 47 21&&C0;B1&&{ A1 21 0 32;C3 19;};for i in 0 1;do A2 14 $((1+i)) 48;C3 $((43+i));done;A1 14 3 49;C3 5;A2 4 4 50;C2 0;A1 4 5 32;C3 1;A2 0 $((N1+8)) 51;C2 32;A1 4 8 41;C3 6;A2 22 9 37;C3 7;B1&&{ A1 10 42 32;C3 41;};A2 20 42 32;C3 42;A1 25 37 32;C3 33;A1 26 28 35;C2 34;A1 27 29 36;C3 35;A2 27 32 39&&{ B2 19;A2 34 33 40;B2 20;B6 19 20 3;};C2 36;A2 34 34 42;C3 37;A2 32 31 43;C2 38;B1&&for i in 0 1;do A2 28 $((N2+i)) 45;C2 $((N4+2+i));done;B1&&{ A2 29 43 46;C2 39;};A7;C2 40;} 2>/dev/null|pbcopy;exit 2>&-
      
    Copy the selected text to the Clipboard by pressing the key combination command-C.

    7. Launch the built-in Terminal application in any of the following ways:

    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.

    Click anywhere in the Terminal window and paste by pressing command-V. The text you pasted should vanish immediately. If it doesn't, press the return key.

    8. If you see an error message in the Terminal window such as "syntax error," enter

    exec bash

    and press return. Then paste the script again.

    9. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, press the key combination control-C or just press return three times at the password prompt. Again, the script will still run.

    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.

    10. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line

    [Process completed]

    to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report the results. No harm will be done.

    11. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.

    At or near the top of the results, there will be a line that begins with "System Version." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.

    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.

    12. When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.

    Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.

    ________________________________

     
    Copyright © 2014 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.