I run a lot of command line scripts on my laptop - some of which can run for hours. I want to continue using the machine for reading mail, etc., but I don't want any other intensive task sucking up the cpu cycles. So I shut down iTunes, don't watch any videos, etc.
But sometimes I see some other process taking all my cycles. The odds are that it is either something to do with Flash or it is a process called mds.
mds is the indexing software that powers Spotlight - the built in Mac search facility.
I suspect that when I'm generating gigabytes of data and hundreds of files in one of my compute jobs, mds is responding by trying to index them at the same time.
I don't use spotlight at all, so let's turn it off and see if that helps.
This turns it off:
$ sudo mdutil -a -i off
This turns it back on:
$ sudo mdutil -a -i on
Turning it back on will presumably trigger a big mds run as it plays catch up, so run this command only when you can afford the cycles.
A collection of computer systems and programming tips that you may find useful.
Brought to you by Craic Computing LLC, a bioinformatics consulting company.
Subscribe to:
Post Comments (Atom)
Contributors
Archive of Tips
-
►
2011
(44)
-
►
November
(11)
- strsplit in R
- Running R scripts on the Command Line
- Deleting a File that starts with '-' on UNIX
- Plotting a simple bar plot in R
- Captain Beefheart Song Titles
- When jQuery $.ajax() keeps returning the same valu...
- Updating a DIV with jQuery and Sinatra
- Latest version of jQuery on Google APIs
- Sorting on multiple String keys in Ruby
- Manipulating Model/Table/Controller Names in Rails...
- Parsing 96 / 384 well Plate Maps
-
►
February
(14)
- Rails, UTF-8 and Heroku
- Tables named with reserved words in MySQL
- Setting up PostgreSQL on Mac OS X 10.6
- Problem with sqlite when installing the taps ruby ...
- Rails, Devise and custom User models
- Basic image rollover effect in jQuery
- Authentication in Mongo and Mongoid
- Always index columns that you want to sort on in M...
- Using Mongoid in Ruby applications outside of Rail...
- Using Twitter for System Notifications
- PATSY - a web service that makes patents easier to...
- JavaScript Bookmarklet that can create a New Windo...
- Running a Ruby 1.9 Sinatra app on Heroku
- Ruby 1.9 and incompatible character encodings
-
►
November
(11)
0 comments:
Post a Comment