Skip navigation

Yesterday dietrich was telling me he was seeing a lot of writes to places.sqlite and places.sqlite-journal. I wanted to get good, hard data to see what was writing, and how often we were doing it. I figured this was a good option for DTrace, but I've had mixed experiences with it in the past. I first turned to Instruments on OS X, but that can't give you stacks for calls, so I had to dump it.

I talked to dolske, who happens to be the resident DTrace expert around here. With his help, I was able to put together this little D script to track writes to the files in question, and give me user stack traces so we know who is writing and when. With this, we've figured out what was writing, and are working on how to make it write less as we speak.

DTrace really is an awesome tool, even if it can be a bit awkward to use from time to time.


    • mmc
    • Posted October 17, 2008 at 04:30 (4:30 am)
    • Permalink

    bug number?

  1. @mmc
    bug number for what?

  2. Oh the memories. DTrace is pretty cool and I’m glad you got to play with it a bit. Maybe when I come back out I’ll continue my DTrace Treemaps project.

One Trackback/Pingback

  1. By More fsync and write Reduction : Shawn Wilsher on 03 Mar 2009 at 3:30 pm

    […] I couldn’t measure any real-world performance gains with my DTrace scripts – in fact I saw no change during several different runs of Tp3 with various places.sqlite files. […]

Comments are closed.