advertisement
Forums

The Forum is sponsored by 
 

AAPL stock: Click Here

You are currently viewing the Tips and Deals forum
mds, mds_stores, and lsd taking up WAY too much memory
Posted by: PeterB
Date: September 23, 2021 01:51PM
Hi all,

On my Mac Pro (2012) running Mojave, all of a sudden I've noticed that I'm getting slowdowns and the major culprits are the three processes above, with one of them taking > 20 GB of memory. I end up force quitting these, the problem then goes away, but later recurs.

So far, I've tried running Onyx to get it to rebuild the launch directory and Spotlight index, but this hasn't solved it through a reboot.

Any ideas? I'm wondering if one of the recent system updates is to blame.

TiA




Freya says, 'Hello from NOLA, baby!' (Laissez bon temps rouler!)
Options:  Reply • Quote
Re: mds, mds_stores, and lsd taking up WAY too much memory
Posted by: anonymouse1
Date: September 23, 2021 02:57PM
Doesn't mds memory use go up in indexing? Did you add a bunch of files, clone a drive, something like that?
Options:  Reply • Quote
Re: mds, mds_stores, and lsd taking up WAY too much memory
Posted by: Speedy
Date: September 23, 2021 04:26PM
Or even reconnect a drive.



Saint Cloud, Minnesota, where the weather is wonderful even when it isn't.
Options:  Reply • Quote
Re: mds, mds_stores, and lsd taking up WAY too much memory
Posted by: PeterB
Date: September 23, 2021 07:36PM
Quote
anonymouse1
Doesn't mds memory use go up in indexing? Did you add a bunch of files, clone a drive, something like that?

Yes, I thought it's some insane Spotlight indexing, but I didn't add a bunch of files or clone a drive or anything like that, beyond the usual (I do nightly clones).




Freya says, 'Hello from NOLA, baby!' (Laissez bon temps rouler!)
Options:  Reply • Quote
Re: mds, mds_stores, and lsd taking up WAY too much memory
Posted by: Sarcany
Date: September 23, 2021 08:23PM
Could try completely clearing the Spotlight indexes.

Mojave is the last OS you can really do it on.

In the Terminal...

sudo mdutil -a -i off
sudo rm -rf /.Spotlight-V100


Reboot your Mac, then run...

sudo mdutil -a -i on


Give it a few hours to rebuild indexes. Maybe overnight.

Do some searches to confirm that Spotlight is working.

And then check the Memory and CPU usage again.







Edited 1 time(s). Last edit at 09/23/2021 08:54PM by Sarcany.
Options:  Reply • Quote
Re: mds, mds_stores, and lsd taking up WAY too much memory
Posted by: PeterB
Date: September 24, 2021 09:19AM
Quote
Sarcany
Could try completely clearing the Spotlight indexes.

Mojave is the last OS you can really do it on.

In the Terminal...

sudo mdutil -a -i off
sudo rm -rf /.Spotlight-V100


Reboot your Mac, then run...

sudo mdutil -a -i on


Give it a few hours to rebuild indexes. Maybe overnight.

Do some searches to confirm that Spotlight is working.

And then check the Memory and CPU usage again.

I can't get past your second command (sudo rm -rf /.Spotlight-V100) ... it gives me an "operation not permitted" error.

Edit: but if the purpose of the second command is to delete the Spotlight index, I'm using Onyx now to cause it to rebuild the index... we'll see if that works.




Freya says, 'Hello from NOLA, baby!' (Laissez bon temps rouler!)



Edited 1 time(s). Last edit at 09/24/2021 09:26AM by PeterB.
Options:  Reply • Quote
Re: mds, mds_stores, and lsd taking up WAY too much memory
Posted by: Sarcany
Date: September 24, 2021 04:29PM
Ahh fudge!

I forgot that SIP was extended to protect the V100 directory in Mojave.

Have to disable System Integrity Protection or boot to an external HD to wipe it. (Can enable SIP again afterwards.)

[osxdaily.com]

Thing about "resetting" Spotlight indexes through other means like the Privacy tab of the Spotlight pref's window or ticking the box in Onyx is that you are only deleting cells in tables and rebuilding the tables. You're not deleting the database and supporting files themselves so it's not a complete reset. If the problem is just that your Spotlight search results are incomplete, an ordinary rebuild is a fairly reliable fix. If the Spotlight process/daemon seems to be misbehaving, nuke the V100 folder.

Anyway, that's my approach. smiling smiley

Please let us know if the rebuild fixed the problem.



Options:  Reply • Quote
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 186 on February 20, 2020
Record Number of Guests: 5122 on October 03, 2020