Hacking Apple or Mac frequently crashes due to high mds resource usage

Shortly after turning it on, the fan spins wildly, the temperature rises, and then it freezes and shuts down.

1. Test your Mac with Apple Diagnostics

First look at whether there is a problem at the hardware level.

Test your Mac using Apple Diagnostics.

The Mac's processor is Intel, turn on the Mac, then press and hold the D key on the keyboard as soon as the Mac starts up.

After testing, no hardware problems were found on the Mac.

2. View Mac system logs

Then, see if there is a problem at the system level.

启动台 Found in  控制台you can see the system.log on the left side of the console, and found that a process was KILL.

com.apple.xpc.launchd[1] (com.apple.mdworker.shared.01000000-0300-0000-0000-000000000000[5605]): Service exited due to SIGKILL | sent by mds[151]

select all code

copy

3. View system resource usage

Check  活动监视器, found  mdsthat mds_stores the CPU usage is very high, check the data to know, this is the focus (spotlight) to create an index, so that you can quickly search for files, configurations and other information through it.

I don't know if there is a bug in the current version of the operating system, and the CPU usage is too high, causing the system to crash.

From this point of view, it is estimated that focusing on creating an index takes up a lot of resources, causing the system to crash.

To temporarily solve this problem, it is necessary to stop the process, make a trade-off, give up the focus function, and ensure that the system can be used. As for which version fixes this bug, we will look at it later.

4. disable mds

$ sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Password:
/System/Library/LaunchDaemons/com.apple.metadata.mds.plist: Operation now in progress

select all code

copy

If there is an error (Operation not permitted while System Integrity Protection is engaged), please disable the System Integrity Protection (SIP) of Mac OS X first.

How to close sip and restore sip system integrity on Mac computer

Method/step 1: Open the Mac terminal and enter the command: csrutil status It will display whether the English is on or off, I have already...

 Recommended 2021-12-17

OpenCore off and on macOS SIP

The full name of SIP is "System Integrity Protection", which is "System Integrity Protection".

 Recommended 2021-12-02

After restarting the operating system, the probability of system crashes is greatly reduced. It used to be several times a day, but now it happens once in a few weeks.

Guess you like

Origin blog.csdn.net/imacosx_cn/article/details/131182347