I wonder what secd
process does under OSX Yosemite. I am pretty sure I have seen this process running in earlier MacOS versions, but I don't remember it gobbling up all the available memory so boldly...
I have three computers running Yosemite, each with a different config. All three have been up for a duration of three days to one week. Here is a run down of what secd
has achieved:
- On MacBookAir 2011 with 4GB of memory, 700MB allocated to
secd
- On iMac 2008 with 6GB of memory, 2GB allocated to
secd
- On iMac 2011 with 12GB of memory, 4GB allocated to
secd
On all three computers secd
is the largest process in memory (larger than kernel task
) and I suspect it plays a role in the slowdown I have recently experienced with the arrival of Yosemite. I know for sure that the process expands in memory to inordinate sizes and frees up memory when I need it somewhere else. The only issue is that it is not as quick in freeing up memory and most of the time performance suffers before the process realizes it has to retreat.
My search around the web didn't come to a solid conclusion as for what the process is, and why it should be so huge. I guess I am not the only one experiencing this. Any tip is appreciated.
As suggested below secd
has to do with Apple Keychain. Here are the files and ports that the process keeps open when active (on MacBookAir):
/
/usr/libexec/secd
/Users/.../Library/Keychains/7285EFCF-9AF6-53DD-BE44-DA1F59F96620/keychain-2.db-shm
/usr/share/icu/icudt53l.dat
/usr/lib/dyld
/private/var/run/diagnosticd/dyld_shared_cache_x86_64
/dev/null
/dev/null
/dev/null
count=2, state=0x2
/Users/.../Library/Keychains/7285EFCF-9AF6-53DD-BE44-DA1F59F96620/keychain-2.db
/Users/.../Library/Keychains/7285EFCF-9AF6-53DD-BE44-DA1F59F96620/keychain-2.db-wal
/Users/.../Library/Keychains/7285EFCF-9AF6-53DD-BE44-DA1F59F96620/keychain-2.db-shm
/Users/.../Library/Keychains/7285EFCF-9AF6-53DD-BE44-DA1F59F96620/keychain-2.db
/Users/.../Library/Keychains/7285EFCF-9AF6-53DD-BE44-DA1F59F96620/keychain-2.db-wal
/dev/random
/dev/random
/private/var/folders/z_/806bzc396cxgp4s0q17tpfwc0000gn/T/etilqs_y5BDgkbGkBV9ybF
/private/var/folders/z_/806bzc396cxgp4s0q17tpfwc0000gn/T/etilqs_Aw6Q7JhPlil3QNX
/Users/.../Library/Keychains/7285EFCF-9AF6-53DD-BE44-DA1F59F96620/keychain-2.db
/Users/.../Library/Keychains/7285EFCF-9AF6-53DD-BE44-DA1F59F96620/keychain-2.db-wal
What is not clear is what the process does to all the memory it occupies, and why it inflates so much.
secd
runs on Mavericks. On fast analysis, this daemon isn't documented, this is bad, this might be a piece of crapware. This daemon is in/usr/libexec/secd
.secd
running, Messages asks me for a password every time.secd
has a VSZ = 2.4 GB, and a RSS = 3 MB.secd
ran for 84 s on a system which is up and running since 5 days.