Big Sur keep consuming cpu(secd, cloudd, cdpd, Mail.app)

Glad to hear Big Sur became available today.

Be honestly I have a little hesitation upgrading it because some bad experiences upgrading Catalina.

Some issues hit me after that upgrading including several issues really affected me much on working.

Most of them came to be fixed in 10.15.4 maybe but some lasted. Especially Mail.app would run with mass of memory (growing continuously). That even made me writing a cron job to check its memory consumption every 5 minutes to decide whether it was necessary to kill it.


With the idea "Apple should learn the lesson and has moved on" I decided to upgrade to Big Sur finally.

But I made a wrong decision again. Things really can be worse.


I have found abnormal cpu consumption after upgrading. After several times of trying to reboot, log in/out, uninstall Xcode, kill some processes for testing I have a basic conclusion now.


First, as figure 1 shows there seems to be abnormal consumption of CPU:


Figure 1: Abnormal CPU consumption



Second, I terminated the Mail.app because it seems to contribute some to the consumption. And hardly to say things go better(Figure 2):


Figure 2: Maybe better?


Third, as we all know "secd" is quite an ordinary daemon but "cloudd" and "cdpd" are not familiar to me. So I try to kill them and got Figure 3:


Figure 3: Have we reached the point?


Amazing CPU load dropped down to normal while the two processes ("cdpd" and "cloudd") have come back together. Maybe they are still there so it didn't last long(Figure 4):


Figure 4: Consumption lasts


**** it.

Indeed I have tried many other ways to figure out if there was a way to bring them back to the right way.

The only useful evidence is the console logs in Figure 5:


Figure 5: Evidences prove they three have some relationship


It shows that they may not work correctly as expected.

Have any guys suffered this? Or is there any known solution or workaround?


Thank you.

MacBook Pro 15″, macOS 11.0

Posted on Nov 17, 2020 5:53 AM

Reply

Similar questions

4 replies

Nov 17, 2020 6:21 AM in response to Blueskypalm

The core concept here is multi cores.

The percentage consumptions of CPU in process list is based on SINGLE core. So if the process supported multi threads (which is common now) it could use several cores together. So 80% means the TOTAL of actual working time divide by the time real world elapses. So 200% can be treated as TWO cores, 100% each. (But not exactly. Just as an assumption.)


And the percentages in the bottom of "Activity Monitor.app" are calculated combining all cores. So it shows the summary consumption of the whole platform.

Nov 17, 2020 9:25 PM in response to JasonJoo

UPDATE:


After some efforts contacting with technical support issues are almost resolved(I will update again if it continued).


I will go deeper later and make a brief first:


1. Reboot to safe mode (by holding shift when booting) and let it run for a while (typically 15 minutes) and try to use it normally. Issue may still continue under safe mode though.

2. Reboot normally and cdpd/cloudd may go back to normal.


For Mail.app I know the issue may be caused by two IMAP accounts(provided by 163.com) of all my accounts. So I managed to recreate them in POP mode (not IMAP) and it turns to be all right now.


DETAILS:


First I reached to technical support of Apple this morning. I should say thanks to Apple at this point (By selecting "Buy Mac OSX Recently" and you can get support even you run out of warranty). And I really suggest everyone should have a try if you really suffer issues because community is for users only.


I described the issues technically. Beyond my expectations the advisor (Her name is Angeli and Kevin in later case) could really understood them. We talked much and she did her best and used all the resources she could use helping to locate the cause or solutions. Finally she suggested to boot in safe mode to see whether issues continued.


When I came into safe mode I found things were the same or even worse(Figure 1). I tried to contact support again but I found there was no chat option any more. Also I forgot to keep the previous case number before I cannot use it to reenter. After about 15 minutes' struggling I rebooted back to normal.


Figure 1: Issues continued in safe mode


So miracle happened. "cdpd" and "cloudd" looked reasonable. I continued to work for a few hours and they didn't become insane again. So weird!

Anyway I had moved forward a lot.


So I still have a Mail.app issue(Figure 2). But at this time things were different from that under Catalina it seemed like it wouldn't exhaust the memory anymore. (So is "accountd")


Figure 2: Mail.app issue


And I had made some research on it before and concluded it was related to my two IMAP accounts(from 163.com). I didn't know why. Maybe there were some compatible issues between Mail.app and appleimap.163.com. Though 163 mail provides POP3 service Mail.app has integrated 163 already. I just can't create the account manually(Mail.app will automatically integrate it internally after you enter the informations, thus, using IMAP).

After some struggles I found a solution on it finally.

When I entered the information manually I use a wrong password. Then Mail.app will complain it and ask me to complete the service address, type, username manually which enables me to customize them. So I can force it adding as a POP3 account.

After I have done that I brought Mail.app back to normal finally.


Time to celebrate!


Figure 3: Everything work correctly

Nov 18, 2020 6:44 AM in response to JasonJoo

Oh I have a bad news. Things came back.

But the solution for Mail.app still works.


I spend more time on it and found an easy but ugly workaround. If you suffered this it makes it possible to wait for a new release of Big Sur with less pain.


The approach is based on the root cause process: cloudd.

We can kill it periodically if it was running. So I wrote a shell script and invoke it periodically by CRON service.


The script is like:


#!/bin/sh

PID=$(pgrep ^cloudd$)

if [ "no$PID" = "no" ]; then

exit

fi

kill $PID


Put it where you like and edit cron rule by running "crontab -e" in terminal:


* * * * * /Users/[path-to-it]/check_cloudd


Not perfect solution but better.



Surely a more better result you can get if you run it more frequently (eg. every 30 seconds). But you must turn to use other schedulers. Not necessarily I think.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Big Sur keep consuming cpu(secd, cloudd, cdpd, Mail.app)

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