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.

What is lsd process and why does it keep writing data?

I noticed that there are two lsd processes (one root and one Home) that keep writing surprising amount of data and I was just curious what that might be? Between saturday night and tuesday morning, the root lsd had written almost 400 GB and at least to me it seems quite a big amount when I don't know what that data is. It also seems to happen in spikes because the graph in activity monitor made spikes even when there wasn't any other apps running.

Mac mini (M2, 2023)

Posted on Jul 18, 2023 9:39 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 13, 2024 5:29 PM

After suffering weeks of a slow new M2 Macbook Pro, I finally stopped the "lsd" process using 100% of my Mac CPU! Your first post on this page finally solved it! Thank you!


  • Rebooting my Mac in "Safe Mode" did NOT help. Didn't pick anything in "Recovery Mode." I just restarted my Mac again.


  • Then I typed your commands in my Terminal:


/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user


sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed -lint -r -f -v -dump -domain local -domain system -domain user -domain network


killall Dock


sudo mdutil -E /


sudo mdutil -i on /

______

Your Terminal commands finally solved it! Before, when I did


ps aux | grep lsd


It gave me


/usr/libexec/lsd runAsRoot


at 100% CPU usage. But now, the same "ps aux" command gives me 0% CPU usage for "lsd"!

9 replies
Question marked as Top-ranking reply

Jan 13, 2024 5:29 PM in response to BDAqua

After suffering weeks of a slow new M2 Macbook Pro, I finally stopped the "lsd" process using 100% of my Mac CPU! Your first post on this page finally solved it! Thank you!


  • Rebooting my Mac in "Safe Mode" did NOT help. Didn't pick anything in "Recovery Mode." I just restarted my Mac again.


  • Then I typed your commands in my Terminal:


/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user


sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed -lint -r -f -v -dump -domain local -domain system -domain user -domain network


killall Dock


sudo mdutil -E /


sudo mdutil -i on /

______

Your Terminal commands finally solved it! Before, when I did


ps aux | grep lsd


It gave me


/usr/libexec/lsd runAsRoot


at 100% CPU usage. But now, the same "ps aux" command gives me 0% CPU usage for "lsd"!

Jul 19, 2023 12:09 AM in response to Courtesy87

lsd in OS X is the LaunchServiceDaemon. launchd is a launch daemon manager!

support for launching apps and matching document types to apps. As a result, the keys recognized by Launch Services allow you to specify the desired execution environment for your bundled code.

https://apple.stackexchange.com/questions/220562/what-is-the-lsd-process-on-os-x-and-why-is-it-using-so-much-cpu-power#:~:text=lsd%20in%20OS%20X%20is,matching%20document%20types%20to%20apps.


If it continues...


Start with this of M1 or M2 Mac...


On your Mac, choose Apple menu  > Shut Down.

Wait for your Mac to shut down completely. A Mac is completely shut down when the screen is black and any lights (including in the Touch Bar) are off.

Press and hold the power button on your Mac until “Loading startup options” appears.

Select a volume.

Press and hold the Shift key, then click Continue in Safe Mode.

The computer restarts automatically. When the login window appears, you should see “Safe Boot” in the menu bar.


Restart normally.


Open Terminal and use the following command string to do so:


sudo mdutil -E /

This basically asks for temporary super user status, which is why Terminal may ask you for your password (it may not if you’ve used a sudo command recently or are already logged in as a super user or root. The command asks the unix tool mdutil to reindex the spotlight database for everything on the computer, including external drives, mounted disk images, etc. To re-index only for a specific drive, use the /Volumes path. For example, for an external drive named “MiniMe,” the command would look like this:


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.


If still need be…


Open Terminal and run each of these one at a time


/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user


sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -seed -lint -r -f -v -dump -domain local -domain system -domain user -domain network


killall Dock


sudo mdutil -E /


sudo mdutil -i on /


Rebuilding a drive index can take a long time, so be prepared to wait whether you do it through the System Preference panel or the command line.




Dec 7, 2023 1:43 AM in response to BDAqua

Thanks a lot! lsd takes 100% CPU on my macbook after upgrade to Sonoma 14.1.1, spent many days to fix it, until finally read your post. I am using intel Macbook, after run this command, the CPU usage of lsd dropped down from 100% to 45%


/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user


Then, after run the rest of commands, lsd CPU usage dropped down to 0%.


Thank you very much!

Jul 19, 2023 12:32 PM in response to BDAqua

Thanks for the help :) The first part unfortunately didn't work and I noticed with the latter part that I don't seems to have Frameworks folder at all, I might have messed up earlier with EtreCheck. Since I'm only a month in with this new mac, I might just start over with a clean install instead of restoring stuff from my earlier machine and see if that helps.

What is lsd process and why does it keep writing data?

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