4 ms·
secd chews up CPU cycles and Watch battery life goes in the terlet (2022)
- Arnavion 3y agoWindows provides public debug symbols, so someone could potentially debug a process like this and get some idea of what it's doing based on the stacktrace, like Bruce Dawson is known to do [1]. Does OSX provide such debug symbols? A cursory internet search only finds information for developers compiling their own code for OSX, but maybe I'm searching for it wrong. [1]: https://randomascii.wordpress.com/2017/07/09/24-core-cpu-and-i-cant-move-my-mouse/ https://randomascii.wordpress.com/2017/07/09/24-core-cpu-and... for example.
- refulgentis 3y agogoing on 15 years of macOS/iOS dev: I'm not sure if this is 100% equivalent, but, you can use Sample Process in Activity Monitor to get a stacktrace. Generally, you expect Apple provides nothing, other than binary libraries you can link against and headers. Of course, from there, there's decompilation etc., but I'd wager 1 in 1000 used that, even in the iOS early days where you had to work around the framework if you were serious about solving a problem. Probably ~1 in 10,000 now Swift is predominant & harder to do runtime magic in, the platform API surfaces have stabilized relatively, and private API scanning is rigorous and serious.
- isodev 3y agoOn macOS we call it the "File a radar" tool.
- steve1977 3y agoAlso known as “bug reporting event horizon”
- iforgotpassword 3y agoApples version of the Microsoft feedback hub, aka network attached /dev/null
- pulvinar 3y agofs_usage will often tell you what's going on just by looking at process and file names. sudo fs_usage -w
- saagarjha 3y agoNope! We debug like real men, with a decompiler and elbow grease.
- macNchz 3y agoRandom daemons running amok and using 100% CPU is a tale as old as Mac OS X. I've encountered them from time to time on every Mac I've had since I first installed 10.1 "Puma" on my lime green iMac DV in 2001. Sometimes you can just kill it and it'll stay dead, other times it'll respawn and continue its misbehavior. Sometimes a restart will permanently fix it, other times it'll happen occasionally until it just doesn't anymore. Often there are people asking about it on forums like this post, but rarely does anyone have any insight into what's going on.
- pushedx 3y agoThere is a workaround described in the thread.
- thejosh 3y agoto every random daemon that macos 100% needs to run RIGHT NOW.
- kmeisthax 3y agoI don't get how the hell the company that is laser-focused on power efficiency - like to the point of having separate display scanout RAM just so they can ramp down system DRAM separately - also has a perpetual problem with out-of-control daemons eating the CPU. iOS and it's derivatives should have the same problems macOS has, but we can't see any of the performance data on an iPhone (unless you're jailbroken), so this probably just crops up as random complaints about hot iPhones with flat batteries.
- saagarjha 3y agoThis information is in a sysdiagnose fyi
- gubikmic 3y agoApple basically remote-bricked my 2yo Watch. Since December the battery drain is so bad that the Watch became useless. Lasts about 3 hours. There are several discussion threads [1,2] where many users have the same problem, even with the latest Ultra models. Apple's leadership is so hypocritical it's disgusting. They make a cringe video [3] about environmental efforts while they waste so much energy and deteriorate so many batteries with their broken software. [1] https://discussions.apple.com/thread/255347991 https://discussions.apple.com/thread/255347991 [2] https://discussions.apple.com/thread/255346006 https://discussions.apple.com/thread/255346006 [3] https://www.youtube.com/watch?v=QNv9PRDIhes https://www.youtube.com/watch?v=QNv9PRDIhes
- astrange 3y agoYou can report a bug by typing applefeedback:// into Safari on the phone. (Protip.) Or contact support or email the CEO, as you like.
- whaleofatw2022 3y ago1: it is a watch, not a phone. 2: they linked two issues, if Apple can't report that what makes you think your protip will help?
- zie 3y agoApple's discussions website(what was linked to) is not how you get Apple's attention. Apple makes it pretty clear they don't do anything with the discussions website other than make it available for users to support each other.
- callalex 3y agoIs it really “pretty clear” when people have been making the same mistake since the late 90’s/early 2000’s when the forum was launched?
- 3y ago
- mason55 3y agoWhoa, I just recently started having issues with my watch battery dying overnight when it used to last without any problems. Guessing it’s the same thing.
- kbf 3y agoI have the exact same watch model as the poster and I’ve recently had it die within hours on random days when it usually lasts more than a day. Hopefully it’s the same thing and not some unrelated obscure issue…
- tosh 3y agoI noticed this issue as well. secd consuming 20-60% of CPU all the time (how I noticed it in Activity Monitor) but even worse: writing GBs of data within seconds according to the "Disk" tab. One theory is that it can be caused by device activation going wrong at some point. The solution from the forum using cloudkit CLI did not work for me. Fix for me was deleting (scary) the directory that was named like a GUID and all the files within them which basically wipes your Keychain including local stuff like touch id config (and then fetches Keychain things again from iCloud but nothing which only existed locally like touch id). I don't know if there are other negative side-effects of removing the directory + contents though (!). That said: I only noticed because of Activity Monitor. I still had about a day of battery life which speaks for the efficiency of Apple Silicon I guess. That said 2: Now I notice "WindowServer" takes up about 15% CPU all the time. Is that usual behaviour? Or is it a side-effect of Activity Monitor updating its own window? Is there a way to get Activity Monitor like output on macOS via the CLI?
- saagarjha 3y agoSomewhat ironically, Activity Monitor is not particularly efficient about drawing itself. You can use top to get similar information from the command line if you'd like.
- deleted 3y ago[deleted]