Archive for the ‘Solaris’ Category

Another detour: short-circuiting cat(1)

What do you think happens when you do this: # cat vmcore.4 > /dev/null If you’ve used Unix systems before, you might expect this to read vmcore.4 into memory and do nothing with it, since cat(1) reads a file, and "> /dev/null" sends it to the null driver, which accepts data and does nothing. This [...]

Posted on September 9, 2010 at 7:29 am by dap · Permalink · Comments Closed
In: Solaris

Don’t forget about /dev/poll

A correction to my previous entry, this entry has benchmark results which include /dev/poll.

Posted on July 14, 2006 at 2:12 pm by dap · Permalink · One Comment
In: Solaris

Event ports and performance

So lots of people have been talking about event ports. They were designed to solve the problem with poll(2) and lots of file descriptors. The goal is to scale with the number of actual events of interest rather than the number of file descriptors one is listening on, since the former is often much less [...]

Posted on June 26, 2006 at 4:27 pm by dap · Permalink · 4 Comments
In: Solaris

libevent and Solaris event ports

For those who dwell in subterranean shelters, event ports (or the “event completion framework,” if you want) are the slick new way to deal with events from various sources, including file descriptors, asynchronous i/o, other user processes, etc. Adam Leventhal even thinks they’re the 20th best thing about Solaris 10. Okay, that’s not huge, but [...]

Posted on June 14, 2006 at 6:13 pm by dap · Permalink · One Comment
In: Solaris