You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Daemon recentsd using > 90% CPU and battery draining on iPhone 5s despite remedial efforts

Perhaps it's just a coincidence, but since upgrading to 9.3.x (not sure if it was 9.3.2 or 9.3.3), my iPhone 5s has been chewing through its battery like it was candy, forcing me to recharge the phone multiple times each day. Since we were traveling, there was little I could do at first save keeping my charger handy and turning off background processes, minimizing cellular data usage, and using the phone and its apps sparingly. After returning home it just seemed to get worse, and it seemed that the original (3 year old) battery might be past its prime. After two battery swaps, diagnostics, and countless remedial actions, I'm at wit's end. When actively using the phone, I'm likely to drain it from 100% to 20% in 2 hours. When simply in standby except for unavoidable background app activity, it might last as much as 3 or 4 hours. I can stretch it only a bit more in low-power mode. And the phone is very warm to the touch.

User uploaded file

Remedial actions (in addition to new batteries) include:

  • Reducing screen brightness
  • Turning off background app refresh except for two or three apps that absolutely need to be up-to-date
  • Turning off location services except while using apps and except for essential system services
  • Swiping off apps that are not needed and avoiding casual use. (Yes, I realize that swiping off apps risks reloading from disk, but I don't swipe off frequently used apps.)
  • Removing frivolous apps.
  • Turning off Bluetooth. The personal hotspot is off, too.

Probably a few other strategies that I don't remember.


Inspecting Settings/Battery offers few clues. The proportion of energy consumption is consistent with the apps that I am using -- NYTimes, WSJ, Mail, Safari, etc., with Home & Lock Screen consuming only 5% or less, and nothing


Still perplexed, I used the Xcode Instruments activity monitor to view ongoing system and app activity. I discovered that the recentsd daemon consistently uses 90% or more CPU (out of 200% -- there are two cores on the 5s), even when the phone is in standby. Only when other applications demand a big share of the CPU does recentsd throttle down, but only as necessary. Unless there is a major app in play, the next biggest CPU consumer is com.apple.dt.ins, at about 6-8%. Most of the other system processes use a small fraction of CPU power. The "System Status" app confirms the overall standby load, which runs consistently at about 60% (out of 100%).


Based on commentary on the web, I'd expect the CPU load during standby or with only "System Status" running to be about 5% or less of CPU, not what is observed.


Furthermore, there is some unknown process that regularly (every 10 seconds or so) appears to crash or warn of low memory when I monitor CPU load with Xcode or System Status, but I'm not sure if this is merely an artifact of the profiling.


I visited the Genius Bar, and Apple suggested I try...

  • Reset all settings. This had no effect.
  • Erase all content and settings. But not restore. Instead treat it as a new phone. I've not tried this yet. I'd rather not erase everything.


Any ideas? Just what does recentsd do? I've searched high and low for some answers. And why would it be running amok? What should I do next? Can avoid erasing everything?


Thanks.

iPhone 5s, iOS 10.1.1

Posted on Nov 27, 2016 12:25 AM

Reply
3 replies

Dec 1, 2016 4:44 PM in response to Kevin in Colorado

My problem sounds very much like Madalaa's report of a "Battery problem after update to IOS 9.3.1" except I noticed it for a later iOS version. (See https://discussions.apple.com/thread/7516885 ).


Add to the remedial actions above updating iOS to the latest version (now 10.1.1).


In addition to the observations reported in my original post, I notice that recentsd crashes every 10 to 20 seconds from an apparent memory leak or simply from allocating all the physical memory. This occurs whether or not the Xcode instrumentation is connected to the iPhone. Indeed, free memory drops to nearly zero, a low memory warning is registered, a new ReportCrash process is initiated, the old recentsd process is killed, the memory is recovered, and a new recentsd process is started. Then the process starts all over again. I'm not sure how long the phone had been on since it was last power-cycled, but when I last monitored it with Xcode instrumentation, there were 30,000 new UID's, suggesting this recentsd crash cycle had occurred at least 10,000 times!


Receiving no replies to my original post, I searched once again for something that might match my problem and found the above-mentioned report by Madalaa. The reply by garretn suggested turning off "Make calls on Mac". I tried it. Seemed to work. For a while. I have two Macs, an iMac and a MacBook Pro. Although FaceTime was turned off on my iPhone and on my Macs, "Calls From iPhone" was checked on each of the Macs. I unchecked it (as follows).

User uploaded file

I did so while instrumented, which noted that an unnamed background process was stopped. Almost immediately, the CPU usage dropped from about 60% to about 10%. The recentsd crash cycle continued, but not taking up much CPU time for some reason. I repowered the phone, and at least for a while the average CPU load ran about 5% to 10%, and the phone was cool for the first time in months!


Then I started opening up other apps. Not many. New York Times and Wall Street Journal and email. And Wunderground. Suddenly battery usage started plummeting. I reinstrumented and discovered that the CPU load was up to 60%, almost entirely due to recentsd and its crash cycle.


Can anyone help? Thanks. (I will post some additional information on Madalaa's thread.)

Dec 3, 2016 12:01 PM in response to Kevin in Colorado

First, what does recentsd do? Not finding anything else but guesses, let me hazard an educated guess. It reports and records the most recent iCloud transactions, including mail shared in the cloud, iMessage activity, photo activity, etc. There are recentsd daemons running in OS X. Go to ~/Library/Containers/com.apple.corerecents.recentsd/Data/Library/{Preferences,S yncedPreferences}/. There are plist's for Calendar, Map locations, locations, FaceTime, mail, messages, and the passbook. Your mileage may vary. Some of these are quite large.


While instrumenting my iPhone after a DFU restore new, recentsd woke up and ran a few percent after each iMessage and after other iCloud transactions.


So, that's my guess.

Daemon recentsd using > 90% CPU and battery draining on iPhone 5s despite remedial efforts

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