Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Read/Write to Disk - hyperactive. Why?

Indeed! See the activity monitor graph below? Yet CPU activity is highest at 5.6%

User uploaded file

It's not affecting CPU rates, it seems to be that the iMac is (almost) constantly doing something with the disk, and when it does, the whole thing temporarily pauses, spins the pizza, then carries on.

I took the iMac to the Apple Store genius who determined in 2 seconds that it was due to my having way too much stuff on the desktop. I have since removed that into Documents, carried out Disk Repair (which told me there was an error), repaired the disk, repaired permissions, turned off Spotlight, turned it on again - nothing seems to cure it. I wondered if it is short on - or has faulty - memory? It is the 3.06 GHz Core 2 Duo, late 2009, 1 TB, 160GB free iMac 27 inch. EDit: Sorry, it's running Snow Leopard 10.6.8


Any thoughts please?

Cheers

Chris


Message was edited by: ChrisRR

iMac, Mac OS X (10.6.7), Loads of iMacs/PowerBooks, MBPs/iPods and iPhones

Posted on Sep 21, 2012 12:55 AM

Reply
27 replies

Sep 21, 2012 11:09 AM in response to ChrisRR

I took the iMac to the Apple Store genius who determined in 2 seconds that it was due to my having way too much stuff on the desktop.

The genius isn't. From Matt Neuberg, either a Tidbits or MacInTouch posting:



It "used" to be the case the desktop icons were implemented as windows in Mac OS X, so that a large number of icons on the desktop did in fact mean a heavy resource usage and a drop in performance (it could even result in spinning beachballs). But that implementation was changed completely some revisions back (I think it was Leopard), and now it doesn't matter at all how many icons you have on your desktop.


I have over 200, mostly aliases, but no degradation in performance.

Sep 22, 2012 1:48 AM in response to baltwo

I'm glad you said that, John. I was clutching at straws really, in the hope it was the Holy Grail that would bring about an end to the protracted frustration. But my own gut feel told me it can't be true because I have always had a large amount of stuff on my desktop and so do I on other Macs around the place - so why now?


It seems to be getting worse. I have wiped the hard drive, cleaned and polished it with Disk Utility and put back (possibly a diseased?) OS from a cloned drive. Many people have reported how this process clears up many similar issues - but not here.


Any ideas why I'm getting this, or what I might do next? Are there any programs or apps out there that'll do a Health Check maybe?


Really grateful for any help.


Cheers


Chris

Sep 22, 2012 2:32 AM in response to ChrisRR

Check out some of the stuff at this site:


http://www.scsc-online.com


Go to the downloads section and get the book "Hard Drive Troubleshooting" which is a freebee. The book also tells you how to zero out a drive to get rid of bad sectors IF the problems are truly with the drive.


I got their product Scannerz because I wanted a low cost drive scanning tool (couldn't see spending $100 on some of the tools available when I can get a new HD for $50). The documentation on their site said it was "hardware oriented" but it just seemed like a regular and basic scanning tool to me. They released that book just a few days ago and I guess they're sending out e-mails to all their customers. When I saw what Scannerz did, I realized I really didn't understand what the thing did. You can use it to test all paths related to a drive, not just the drive's platters. There are problems that can occur with a drive that block the I/O which makes it looks like it's a drive problem when it isn't but other drive testing tools just report it as an error. It's a big deal because I used to have an old iBook that had some of the types of intermittent failures they're talking about and they were never repeatable. Good 'ol TechTools Pro would report a bad disk on one scan in a certain region, then no problems, then another problem somewhere else. The results were inconsistent. The book explains why.


I wouldn't run out and buy any software to test your system yet, but I would download that book. A lot of the stuff they talk about can be done and checked by an end user without tossing any money at a problem. One of the things you can do is look at the log files in your system and see if there are any I/O errors. If the I/O errors can be correlated to a specific region of the drive, then you have bad sectors. If the I/O errors aren't correlated to a specific region of the drive, then you most likely have a bad (intermittent) cable or possibly a bad trace on the logic board (OUCH!!).


Good Luck!

Sep 22, 2012 10:05 AM in response to ChrisRR

Any ideas why I'm getting this, or what I might do next? Are there any programs or apps out there that'll do a Health Check maybe?

The only things that causes read and writes are Time Machine, which I don't use, Spotlight indexing, or actively surfing the web. I don't see that activity on my machines. As for tools, you could do checks with DiskWarrior, TechTools Pro, or other disk utility apps.

Sep 22, 2012 10:32 AM in response to ChrisRR

You may be able to find out what's responsible using the following.


Copy/Paste into Terminal in Utilities and hit return


sudo fs_usage


You will be prompted for your admin password, which you won't see anywhere when you enter it. You may also be given a warning; you can ignore that and then hit return again.


There will be a lot to look through.


Hit Control-C to quit.

Sep 22, 2012 12:34 PM in response to ChrisRR

I tend to agree with OSX Fan. Scannerz is fault isolation software and TechTool Pro and Drive Genius as far as drive testing go are simple surface scanning products. The "disk activity" you may be seeing may not actually be disk activity, but the system blocking on an I/O call because it can't successfully complete reads/writes or it needs to retry them time and time again - and that might only be one little dinky fault causing the entire system to lock down like that. That can be caused by problems with the surface of drive platters OR it could be caused by other faults like loose HD cables, a logic board crack, etc. The problem with simple surface scan tools is that they report everything as a surface scan error even when it isn't a surface scan error. If you reformat your drive, the problem's still there. If you buy a new drive, the problem's still there.


The book OSXFan referenced is EXCELLENT in my opinion. What it tells you to do in a case like that above is to try and isolate the fault by electrical PATH. Right now the path you're using is, I assume, the internal drive. If you have a bootable secondary drive, boot from that. If the problems persist it's probably software. If they go away, it's something with the drive/cables/logic board associated with the drive. You could probably even take a sizeable USB Flash drive and boot from that but they're abysmally slow.


You can also check the log files by clicking on the Apple menu, then "About This Mac" , then "More Info...", select "Logs" under software, then finally look at "system.log" If your problem is blocking I/O it will show up as an I/O error. Depending on your skill level, you could also open a Terminal.app session and go to /var/log and do a grep for I/O error or any other faults that might point you at the problem.


The hard drive is reading and writing all the time, not just during spotlight and time machine backups.

Sep 23, 2012 2:05 PM in response to WZZZ

Thank you to all of you!

I'm working through all of your advice, chaps. It's taking a while to understand the issues here but I'm encouraged by your help.

This Terminal run is fascinating. What should I be looking for?

It seems to throw out tons of lines (as you warned) but loads of stuff I don't know whether it's significant or not. Down the left hand side there's lots of "read" and "write" as well as close, socket, sendto, select, fcntl, getstat etc etc. Interestingly when the noise starts the amount of entries slows down to almost a stop.


Here's a sample chosen randomly:


22:03:57.185WrMeta[async] D=0x00000002 B=0x200 /dev/disk0s2 0.001270 W launchd
22:03:57.185WrMeta[async] D=0x0000d518 B=0x1000 /dev/disk0s2 0.001436 W launchd
22:03:57.185WrMeta[async] D=0x0000d520 B=0x1000 /dev/disk0s2 0.001543 W launchd
22:03:57.185WrMeta[async] D=0x0003c0e0 B=0x2000 /dev/disk0s2 0.001674 W launchd
22:03:57.185WrMeta[async] D=0x0003c0f0 B=0x2000 /dev/disk0s2 0.001832 W launchd
22:03:57.185WrMeta[async] D=0x005bc0e0 B=0x2000 /dev/disk0s2 0.001978 W launchd
22:03:57.186WrMeta[async] D=0x00668600 B=0x2000 /dev/disk0s2 0.002127 W launchd
22:03:57.186WrMeta[async] D=0x00668610 B=0x2000 /dev/disk0s2 0.002278 W launchd
22:03:57.186WrMeta[async] D=0x00682070 B=0x2000 /dev/disk0s2 0.002413 W launchd
22:03:57.186WrMeta[async] D=0x00687650 B=0x2000 /dev/disk0s2 0.002563 W launchd
22:03:57.186WrMeta[async] D=0x00694b40 B=0x2000 /dev/disk0s2 0.002714 W launchd
22:03:57.186WrMeta[async] D=0x00695d80 B=0x2000 /dev/disk0s2 0.002849 W launchd
22:03:57.187WrMeta[async] D=0x006dda70 B=0x2000 /dev/disk0s2 0.003225 W launchd
22:03:57.187WrMeta[async] D=0x006ddaa0 B=0x2000 /dev/disk0s2 0.003403 W launchd
22:03:57.187WrMeta[async] D=0x006ddb10 B=0x2000 /dev/disk0s2 0.003540 W launchd
22:03:57.234 select S=0 0.000008 fseventsd
22:03:58.851 select S=0 2.000041 W Dropbox
22:03:58.851 select S=0 0.000008 Dropbox
22:03:59.508 recvmsg F=8B=0xf7 0.000015 mDNSResponder
22:03:59.508 recvmsg F=8 [ 35] 0.000004 mDNSResponder
22:03:59.509 recvmsg F=9B=0xf7 0.000010 mDNSResponder
22:03:59.509 recvmsg F=9 [ 35] 0.000004 mDNSResponder
22:03:59.597 sendto F=12 B=0x9d 0.000068 cupsd
22:04:00.165 stat64 tabs 0.000015 cron
22:04:00.165 stat64 private/etc/crontab 0.000013 cron
22:04:00.597 sendto F=12 B=0xd6 0.000065 cupsd
22:04:00.851 select S=0 2.000039 W Dropbox
22:04:00.851 select S=0 0.000009 Dropbox
22:04:02.746 select S=0 10.000035 W nmbd
22:04:02.851 select S=0 2.000039 W Dropbox
22:04:02.851 select S=0 0.000009 Dropbox
22:04:03.136 select S=1 133.740696 W launchd
22:04:03.136 recvmsg F=89 B=0x0 0.000007 launchd
22:04:03.136 close F=-1 [ 9] 0.000001 launchd
22:04:03.136 close F=89 0.000009 launchd
22:04:03.136 recvmsg F=94 B=0x0 0.000002 launchd
22:04:03.136 close F=94 0.000005 launchd
22:04:03.136 close F=-1 [ 9] 0.000001 launchd
22:04:03.136 read F=112 B=0x0 0.000004 launchd
22:04:03.136 close F=112 0.000015 launchd
22:04:04.851 select S=0 2.000038 W Dropbox
22:04:04.852 select S=0 0.000008 Dropbox
22:04:06.852 select S=0 2.000039 W Dropbox
22:04:06.852 select S=1 0.000008 Dropbox
22:04:06.852 recvfrom F=16 B=0x84 0.000013 Dropbox
22:04:06.853 select S=1 0.000006 Dropbox
22:04:06.853 recvfrom F=16 B=0x84 0.000009 Dropbox
22:04:06.853 select S=0 0.000006 Dropbox

^Cintelimac3:~ intelimac3$


Any thoughts? - and thanks everyone!

Sep 23, 2012 2:14 PM in response to ChrisRR

Seem to have a **** of a lot of mentions with Kodak Bonjour etc?


eg:


Sep 23 20:43:39 intelimac3 com.kodak.BonjourAgent[155]: PID 155 Thread 0xA01C3540 TigerPrinterAPI.cpp Line 159 at PreserveOldSignal() [40/19691 ms]: PID 155 Thread 0xA01C3540 TigerPrinterAPI.cpp Line 159 at PreserveOldSignal() [40/19691 ms]: Preserving old signal handler Preserving old signal handler truetrue for for SIGABRTSIGABRT

Sep 23 20:43:39 intelimac3 com.kodak.BonjourAgent[155]: PID 155 Thread 0xA01C3540 TigerLibraryUtilities.cpp Line 2571 at ThreadCreate() [40/19691 ms]: New thread created: 0xB0207000 from within 0xA01C3540

Sep 23 20:43:39 intelimac3 com.kodak.BonjourAgent[155]: PID 155 Thread 0xA01C3540 TigerLibraryUtilities.cpp Line 1955 at CommandLine() [40/19691 ms]: Initializing Command Line Mutex...

Sep 23 20:43:39 intelimac3 com.kodak.BonjourAgent[155]: PID 155 Thread 0xA01C3540 TigerLibraryUtilities.cpp Line 1958 at CommandLine() [40/19691 ms]: ...Command Line Mutex initialized

Sep 23, 2012 4:14 PM in response to ChrisRR

It's not affecting CPU rates, it seems to be that the iMac is (almost) constantly doing something with the disk, and when it does, the whole thing temporarily pauses, spins the pizza, then carries on.

Apple calls it the Spinning Wait Cursor. It's been nicknamed the SBBOD, The Spinning Beach Ball of Death. Some causes and ideas for troubleshooting here.


http://www.thexlab.com/faqs/sbbod.html

Sep 26, 2012 12:43 AM in response to WZZZ

I'm no further on with the problem, but I'm learning more about OS X! I tried this top command in Terminal:


Processes: 113 total, 3 running, 1 stuck, 109 sleeping, 555 threads 08:36:23

Load Avg: 0.48, 0.61, 0.58 CPU usage: 2.36% user, 3.79% sys, 93.83% idle SharedLibs: 14M resident, 8260K data, 0B linkedit. MemRegions: 15880 total, 763M resident, 60M private, 604M shared.

PhysMem: 1277M wired, 336M active, 385M inactive, 1998M used, 2096M free. VM: 281G vsize, 1053M framework vsize, 85914(1) pageins, 0(0) pageouts. Networks: packets: 13256/6832K in, 13863/1724K out.

Disks: 232957/4178M read, 12212/388M written.


I'd appreciate a quick look by anyone who has the time and the inclination. I'm almost getting Data Overload to my few remaining brain cells!

But I'm a dog with a bone now. I am now running ML 10.8.2 on my internal HD, and ML 10.6.8 on an external HD - the latter appears to be more normal in terms of absence of read/write stalls. So until I completely wipe the internal and have a brand new OS with no additional software loaded and see how that is, I'm still experimenting and researching. What I remembered yesterday, was that some time ago we had 3 consecutive power cits while this iMac was running. I am now wondering if that has done some damage - I remember having to reload the OS from a clone in order to get it to start up properly again. Coincidence?


Thanks for any advice and for all you've given so far. Much appreciated.

Sep 26, 2012 2:55 AM in response to ChrisRR

Well, whenever I get on one of these discussions you never know what level of expertise one has. You obviously have enough to run "top" etc. which puts you leaps and bounds above other (that's a compliment! :-) )


Based on what you've said, I suspect you have a drive problem. If you've downloaded SCSC's book on hard drive troubleshooting, take a look at the sections on errors, irregularities, and scatter. Errors are bonafide failures in disk access and they ALWAYS generate an I/O error. Irregularities (Scannerz is the only product I know of that can detect them, in the world of Windoze they like to call them "brown sectors") are problematic sectors which read slowly but are readable for whatever reason. Scatter means the problems are inconsistent from test to test. A bonafide platter surface problem will have no scatter, the results will be repeatable from test to test. Problems caused by intermittent failures (SCSC's book calls these "generic failures" which are due to cracked traces, faulty solder joints, etc) will display scatter - problems will appear but they're RARELY repeatable. Probably the most famous (or infamous) example of a generic failure is the separation of the piggy back ball grid array video chip used on iBook G3 w/CPU frequencies of 600MHz - 900MHz. Another example is the failure of some RAM slots on 15" PowerBook G4s, but this wasn't widespread.


With all that said, irregularities are problematic because most drive tools fail to acknowledge them. If a sector is deemed "readable" even though it may be taking seconds to read it, it's still deemed a good sector. Drive's have to compensate for the fact that there's multi-tasking going on, and in some cases some events may take a second or two to become noticeable. The problem comes when the file needs to be read tons of times (like a cache file for an application). Suddenly, a 1 second delay, if it needs to be accessed, say 100 times, becomes a 100 second delay.


If you lived in the U.S. I would probably encourage you to just fork over the 30 or 40 bucks that Scannerz costs and use it, but there may be some type of import/export restrictions on something like that (in other words, they may not be able to sell it to you...I'm not an export attorney but I've heard of such things happening with other products - especially the cutting edge type stuff). Additionally, if you've downloaded their manual, and let's be real, it's not exactly written for an audience elementary school music teachers (PLEASE don't tell me you're an elementary school music teacher! :-) ) it's obviously been written for service people, IMHO.


Instead, what you might want to try is this, and it won't cost you money, but you will need admin access:


1. Open up terminal.app from the Utilities folder - you already know how to do this, I think.

2. Type in "cd /var/log" but you may need to type in "sudo cd /var/log" - you'll likely need admin privileges.

3. Type in the following command exactly as it's written:


grep "I/O error" *


What that does is tell all log files (*) to report occurrences of the string "I/O error". If there are I/O errors they'll likely identify either an entire disk (like disk0) or a volume (like disk1s2). If it's a volume, use Disk Utility to identify it. If no I/O errors exist, I would assume that there's either a software compatibilty problem of some sort or you've got irregularities.


One of the things I've found interesting is that SCSC typically releases a version of software for Scannerz within weeks of the release of any major OS version updates, but looking at their logos for Scannerz and FSE, they're STILL not saying "Mountain Lion Compatible." Maybe they're slow, or maybe they know something the rest of us don't.


You might also want to check other posts on this site to see if others are having similar problems with Mountain Lion.


I certainly hope this helps you out, and good luck.

Sep 26, 2012 5:49 AM in response to CaptH

I was getting so excited - but on my iMac I got this when I pasted both (one at a time) your lines:


Last login: Wed Sep 26 07:16:24 on console

MacBookPro-2:~ powerbook2$ "cd /var/log"

-bash: cd /var/log: No such file or directory

MacBookPro-2:~ powerbook2$ "sudo cd /var/log"

-bash: sudo cd /var/log: No such file or directory

MacBookPro-2:~ powerbook2$


The above is obv from my MBP which I tried it on, and got the same message. Any thoughts?

Read/Write to Disk - hyperactive. Why?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.