How to: Get Spotlight processes back under control when CPU usage goes crazy
来源:互联网 发布:java 用户权限管理系统 编辑:程序博客网 时间:2024/06/03 13:07
手机游戏源码VIP金牌 一次购买全店免费!
If you’re finding that your Mac fans are running a lot more than they used to, you might want to check out whether a couple of Spotlight processes are consuming more than their fair share of CPU cycles.
Ever since the latest Mavericks update, I found that my MacBook Pro seemed to be running hot a lot of the time, with fans ramping up to high levels to cool it. Checking Activity Monitor didn’t seem to be shedding much light on things at first glance. The only two processes using an unusual amount of CPU were mds and mds_stores. These are two processes used by Spotlight when indexing, so I didn’t think too much of it – Spotlight has to do its indexing sometime, right?
But several checks later, these two processes seemed to be helping themselves to significant chunks of CPU on a regular basis, at which point I did some Googling.
I started by disabling Spotlight altogether to confirm that it was the culprit. To do this, I went into Terminal and entered:
sudo mdutil -a -i off
The fans spooled down and all was back to normal. Spotlight was indeed the culprit.
I briefly considered leaving Spotlight off until the next OS X update, but that proved too much of a pain. I keep my most-used apps in the dock, but everything else I habitually launch from Spotlight. CMD-space plus the first letter or two of the app is just too convenient to give up. So I did some more Googling – after switching Spotlight back on with:
sudo mdutil -a -i on
The first tip I found was here, where it suggested deleting the Spotlight database and forcing it to re-index. You can do this in Terminal again:
sudo rm -rf /.Spotlight-V100/*
Top tip: set this going overnight, as the re-indexing takes a while.
This helped quite a bit, but the mds process still seemed a little greedy. More Googling led me to a suggestion to remove from Spotlight’s indexing any directories with frequently-changing content, especially those used for online backup. You can do this by going into System Preferences, clicking the Privacy tab and then drag-and-dropping onto it any directories you don’t want it to index.
I added my CrashPlan, MobileSync and Dropbox folders – three specific suggestions I’d found – and then for good measure added some others with frequently-changing content.
This did the trick: my fans stayed on low, and Activity Monitor showed the mds processes consuming only tiny amounts of CPU.
I’m not sure how general an issue this – hence making this an aside – but if you’re finding your Mac running hot, it may be worth checking out.
- How to: Get Spotlight processes back under control when CPU usage goes crazy
- How to get CPU usage?
- How to get the available RAM and the cpu usage in percents?
- Amazon EC2 - how to get available ram and cpu usage via AWS API?
- how to calcus a process cpu usage
- Sample: Use cgroup cpu subsystem to control cpu usage
- How to disable Spotlight
- How to use .profile when logon by CDE under AIX
- Get CPU Usage
- How to get back your source insight context window?
- how to get the function back trace in php
- How to use IIS Manager to get Worker Processes (w3wp.exe) details information ?
- How to get control of your time and your life
- how to get the value of an control
- How to get control of your time and life
- HOW to get control your time and your life
- How to get control of your time and your life
- In RadGrid, How to get the control inside usercontrol
- 宜昌市住建委.宜昌市房管局举办房交会藏"猫腻”?
- poj3030
- Linux Oracle Database Environment Set sample
- Substring with Concatenation of All Words
- [MAC OS X] mds_stores 100% CPU usage
- How to: Get Spotlight processes back under control when CPU usage goes crazy
- Xsolla 解读中国手机游戏支付方式
- 系统架构学习日志2-Log structured vs Journaling File System
- CRecordset类
- AlphaDict 软件发布
- wo de c
- vs2010 编译 stlport 5.2.1
- 质因数的求法
- OpenGL里面生成几何变换的代码和功能原始得让人不能忍受