8

I'm observing regular and abnormal CPU usage on my macbook pro. quicklookd in par with revisiond are eating together over of 50%. It drains my battery significantly and makes the whole machine hot.

I'm not sure when exactly it started but I'm suspecting latest 10.10.3 upgrade as I didn't notice this before.

After reading some post on the net I cleared ~Libraries/Cache and /private/var/folders then rebooted. It looked like the problem was gone (those processes didn't show up), but only for a while. The next day I resumed from sleep, again - quicklookd and revisiond started to burn my CPU.

Any clues how to get rid of this? What's causing this problem? It looks like these two processes are somehow connected, because when I cleared the cache and restarted none of them used a lot of cpu. Today, both of them do (quicklookd 24-30% , revisiond ~15%).

[Update]

Running sudo opensnoop -n revisiond shows nothing.

Running sudo opensnoop -n quicklookd brings endless list of entries like these:

  UID    PID COMM          FD PATH                 
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /
  501   4783 quicklookd    21 /
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /                    
  501   4783 quicklookd    23 /

It goes on and on and on. It's just endless. FD column is always 23 except two or three 21.

[Update 2]

After few minutes I got some other entries besides 501 4783 quicklookd 23 / (not pasting theme here as they were irrelevant)

And then again, whole lot of 501 4967 quicklookd 23 /

[Update 3]

I've also noticed that diskarbitrationd and diskmanagementd scores quite high (~ 5%) and stay on top of the process list (sorted by CPU usage) just below quicklookd and revisiond. Looks like this also might have something to do with this issue.

I've closed (cmd + q all other apps to make sure nothing interferes the measurements).

[Update 4]

Found few interesting entries in console:

Failed to obtain sandbox extension for path=/Users/me/Library/Caches/com.apple.quicklook.satellite. Errno:1
CGSConnectionByID: 0 is not a valid connection ID.
[QL] Using too much memory (161 MB), hit critical threshold (120 MB), exiting immediately to clean up.
[QL] Unable to write memory cache on disk
In -[NSApplication(NSQuietSafeQuit) _updateCanQuitQuietlyAndSafely], _LSSetApplicationInformationItem(NSCanQuitQuietlyAndSafely) returned error -50

They repeat few regularly each day. Especially those about memory and invalid connection.

[Update 5]

sudo iosnoop -n quicklookd revealed this:

  UID   PID D    BLOCK   SIZE       COMM PATHNAME
  501  5656 W 56385320  32768 quicklookd ??/Quick Look/cloudthumbnails.db-journal
  501  5656 W 56385320   4096 quicklookd ??/Quick Look/cloudthumbnails.db-journal
  501  5656 W 48100696  12288 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 48100816   8192 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 48100840   8192 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 56385640  28672 quicklookd ??/T/etilqs_kYNR5XinU71bydh
  501  5656 W 56386736  32768 quicklookd ??/Quick Look/cloudthumbnails.db-journal
  501  5656 W 56386736   4096 quicklookd ??/Quick Look/cloudthumbnails.db-journal
  501  5656 W 48100696  12288 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 48100816   8192 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 48100840   8192 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 56387280  28672 quicklookd ??/T/etilqs_ejadCww3DunYuu3

cloudthumbnails.db and cloudthumbnails.db-journal repeats and repeats.

  • quicklookd has been thrashing and sucking up CPU for me for two days. iosnoop and opensnoop for me get errors. And I most certainly never edited their definitions. – WGroleau Mar 16 '17 at 13:16
  • For me this eventually got solved by itself. Just had to wait long enough for the process to end. – chiappa Oct 13 '18 at 10:57
11

This is how I fixed this problem. It might help you but from what I've seen so far, even thought there are similar issues, the source of problems are different.

I've ran sudo iosnoop -n quicklookd - it shown something like this:

  UID   PID D    BLOCK   SIZE       COMM PATHNAME
  501  5656 W 56385320  32768 quicklookd ??/Quick Look/cloudthumbnails.db-journal
  501  5656 W 56385320   4096 quicklookd ??/Quick Look/cloudthumbnails.db-journal
  501  5656 W 48100696  12288 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 48100816   8192 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 48100840   8192 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 56385640  28672 quicklookd ??/T/etilqs_kYNR5XinU71bydh
  501  5656 W 56386736  32768 quicklookd ??/Quick Look/cloudthumbnails.db-journal
  501  5656 W 56386736   4096 quicklookd ??/Quick Look/cloudthumbnails.db-journal
  501  5656 W 48100696  12288 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 48100816   8192 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 48100840   8192 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 56387280  28672 quicklookd ??/T/etilqs_ejadCww3DunYuu3
  501  5656 W 56474504  32768 quicklookd ??/Quick Look/cloudthumbnails.db-journal
  501  5656 W 56474504   4096 quicklookd ??/Quick Look/cloudthumbnails.db-journal
  501  5656 W 48100696  12288 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 48100816   8192 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 48100840   8192 quicklookd ??/Quick Look/cloudthumbnails.db
  501  5656 W 56474568  28672 quicklookd ??/T/etilqs_QzHS30kC4YT8ETi

I gave it a shot and looked for cloudthumbnails.db file. Bingo! Found it in /Users/me/Library/Application Support/Quick Look and the quicklookd was writing to cloudthumbnails.db-journal like crazy. But it was writing small chunks, then deleting the file and writing those small chunks again. Unfortunately this is a binary file, so it's not easy to read, but I gave it a shot and just did tail cloudthumbnails.db-journal. I got mostly gibberish, but I noticed repeated path /Users/me/Library/Mobile Documents/com~apple~CloudDocs/ and some files there.

This is iCloud folder and for some reason quicklookd was unable to process those files. I deleted them (moved to trash and emptied) and TADA! It solved the problem.

I have no idea why this happened, why quicklookd was unable to process those files. I've sent those files again to iCloud and everything was fine - no crazy behavior of quicklookd.

  • Well done on finding the culprits. :) – Alistair McMillan May 2 '15 at 13:57
  • What a great answer! This helped me immensely finding out what made my MacBook Air's fans spin. I deleted the Files from iCloudDrive but that didn't stop the generation of cloudthumbnails.db-journal. After a reeboot, however everything was fine again. Thanks a lot! – zıəs uɐɟəʇs Jul 3 '15 at 8:39
  • Worked on my El Cap MacPro. – BondedDust Aug 5 '16 at 21:17
2

I would try using opensnoop to see what files quicklookd is looking at. There might be a particular files that it is either having trouble reading or writing to.

While they are using excessive CPU, open a Terminal window and type the following command. You'll be prompted for your password.

 sudo opensnoop -n quicklookd

This should show you all the files that quicklookd is reading or writing to, and might help you identify if one particular file or folder of files is causing the issue.

Try the same thing for revisiond.

  • Thanks, I've ran the commands. Updated my question as the result does not say anything to me :( – SiliconMind Apr 26 '15 at 17:48
  • You can also see open files in Activity Monitor. – Josh Caswell Jul 17 '18 at 21:40
1

I couldn't figure out how to log in to Terminal, so I just killed quicklookd, which was hogging so much memory that nothing else would run. Instant relief! I suppose it will start up again once I reboot, though.

  • Update: I was already logged in to Terminal when I next looked at it -- apparently it didn't go through before because of the memory shortage. – Deirdre Dec 30 '18 at 22:35
0

I had the exact same thing but none of the suggestions had shed any light on the situation. After an hour of searching I decided to apply an old trick, which resolved the issue completely:

  • repaired all disk permissions with Disk Utility
  • rebooted in Safe Mode (holding shift while rebooting)
  • rebooted again in Normal Mode

Hope that helps anyone.

  • I think that this is what most people tried anyway (including me). In my case, this helped only temporarily. – SiliconMind Jun 6 '15 at 18:32
  • And Repair Permissions no longer exists in Sierra – WGroleau Mar 16 '17 at 13:13
0

I had the same problem after updating to macOS Mojave. I've removed ~/Library/Caches/com.apple.QuickLookDaemon and then restarted my computer. It solved the problem.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .