how to stop mdworker on mac?
Stop Spotlight The solution, although not a perfect one, is to turn off Spotlight because Spotlight runs the mdworker process to index the contents of disk drives. Go to System Preferences and open Spotlight. Select the Privacy tab. Click the plus button at the bottom and add each of your disk drives and partitions.