title: Why is launchd(8) writing to MySQL data files?
body: <p>I'm running a query in MySQL that's updating a table with about 20 M rows. While I watch the system with iosnoop, fs_usage, top and I see that launchd is writing to the table's MyISAM data file as well as mysqld.</p>
  
  <p>According to top, CPU activity alternates between launchd and mysqld. When launchd is active, mysqld is relatively inactive visa versa. And these periods of activity correspond to the launchd and mysqld write access to the MyISAM data file as reported by iosnoop and top.</p>
  
  <p>This strikes me as very odd. Any idea why launchd is involved in writing MySQL data files?</p>
  
  <hr>
  
  <p>ADDITIONAL INFO</p>
  
  <p>If I stop mysqld with launchctl unload and start it again without using launchd, i.e. with <code>mysqld_safe &amp;</code> I see the same weird behavior reported in iosnoop, fs_usage, and top.</p>