Ken (Chanoch) Bloom's Blog

25th September 2008

IIT Stipend Paydates

Since I can't seem to find this information anywhere else on the web, I might as well post it here so I can always find it when I need it.

Fall 2008

  • September 26, 2008 (Double payment)
  • October 10, 2008
  • October 24, 2008
  • November 7, 2008
  • November 21, 2008
  • December 5, 2008
  • December 19, 2008

Spring 2009

  • February 13, 2009 (tentative)
  • February 27, 2009
  • March 13, 2009
  • March 27, 2009
  • April 10, 2009
  • April 24, 2009
  • May 8, 2009
  • May 22, 2009

Summer 2009

  • July 3, 2009
  • July 17, 2009
  • July 31, 2009
  • August 14, 2009
  • August 28, 2009
Permalink | iit.
28th September 2008

posix_fadvise

Lucas Nussbaum gave me a tip that one can use the posix_fadvise(2) system call to let the Linux IO scheduler know what data you intend to use, so that it can fetch it before you have to block on the data. So I have written the fadvise RubyGem to make that system call accessible to Ruby.

File#fadvise(offset,len,advice) -> self

Advise the operating system how you intend to use the data in this file, starting from byte offset and counting len bytes, so that the kernel can schedule it to be fetched in the background while you do more processing. This call is intended to avoid blocking later when you actually read the data, but whether this actually happens is up to the the kernel's IO scheduler. Valid values for advice are:

  • :normal
  • :sequential
  • :random
  • :no_reuse
  • :will_need
  • :dont_need

This call does not block.

See the posix_fadvise(2) manpage for more information about these types of advice.

Permalink | linux.
My Website Archives

Tags