jeffr_tech (jeffr_tech) wrote,


I refactored FreeBSD's disksort on the plane ride back from Israel. The old one had provisions for ordered transactions which you couldn't sort in the queue. We ripped out the top level support some time ago but never simplified the elevator algorithm. The patch is here. Now it's basically a simple hinted insertion sort. Unfortunately, most devices now have deep queues and software sorting is often ineffective although it can have a huge impact on performance. This is most notably a problem with FreeBSD's scsi layer which often takes advantage of 256 entry deep controller queues.

Many years ago I implemented a real-time disk queueing mechanism for Midstream. It was essentially a time bounded disk sort. I also had IO prioritization, which is more difficult than it may first seem. I was thinking about reintroducing these diffs to help improve background fsck performance. I'm sad that FreeBSD fell behind the disk scheduling curve. Years ago the anticipatory disk scheduling research as well as the opportunistic scheduling (free block scheduling) was all done on FreeBSD, but we never integrated it. The linux developers were quick to adopt it, however, and saw some gains. Hopefully we can play catch up now.

  • Asynchronous partial truncation

    I have spent a month of my life on partial truncation. Softupdates asynchronously handles the case where you were completely truncating a file, such…

  • Performance problems in SUJ

    SUJ has been around for a year now and 9.0 will release with it this summer. In preparation I am working on the few known performance problems. The…

  • Interactivity score in ULE

    I sometimes speak with Con Kolvis who is known for several Linux schedulers. Con is an interesting fellow because his background is not CS and he is…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.