From: "normalperson (Eric Wong)" Date: 2013-08-17T06:40:32+09:00 Subject: [ruby-core:56666] [ruby-trunk - Feature #8788] use eventfd on newer Linux instead of pipe for timer thread Issue #8788 has been updated by normalperson (Eric Wong). File 0001-thread_pthread-use-eventfd-under-Linux-for-timer-thr.patch added [PATCH] thread_pthread: use eventfd under Linux for timer thread The timer thread is an ideal use case for eventfd because it is only used to signal wakeups and not transfer data. From eventfd(2) manpage: Applications can use an eventfd file descriptor instead of a pipe (see pipe(2)) in all cases where a pipe is used simply to signal events. The kernel overhead of an eventfd file descriptor is much lower than that of a pipe, and only one file descriptor is required (versus the two required for a pipe). ---------------------------------------- Feature #8788: use eventfd on newer Linux instead of pipe for timer thread https://bugs.ruby-lang.org/issues/8788#change-41201 Author: normalperson (Eric Wong) Status: Open Priority: Low Assignee: Category: core Target version: current: 2.1.0 eventfd is a cheaper alternative to pipe for self-notification (signals) on Linux I will submit patches in the next few days/weeks unless there are objections (or somebody else wants to do it sooner). I'd also like to cleanup some of the existing #ifdefs in that area while I'm at it. -- http://bugs.ruby-lang.org/