とみたです。

On Tue, 28 Jun 2005 20:29:45 +0900
とみたまさひろ <tommy / tmtm.org> wrote:

> 例えば、Solaris で 1024 以上のファイルの待ち合わせを行なうことができる
> ようになります。Solaris では FD_SETSIZE 以上のファイルを処理するには 
> select(3C) ではなく poll(2) を使わないといけない…ということになってい
> るためです。

すいません、Solaris の select(3C) の最後に次のようにありました。

     The default value for FD_SETSIZE (currently 1024) is  larger
     than  the  default  limit  on  the  number of open files. To
     accommodate 32-bit applications that  wish to use  a  larger
     number  of  open  files  with  select(),  it  is possible to
     increase this size at compile time  by  providing  a  larger
     definition   of   FD_SETSIZE   before   the   inclusion   of
     <sys/types.h>. The maximum supported size for FD_SETSIZE  is
     65536.  The default value is already 65536 for 64-bit appli-
     cations.

なので、Ruby コンパイル時に FD_SETSIZE を 65536 にしておけば、select() 
でも実用上まず問題なくなりますね。

# メモリを無駄喰いするかな…?

-- 
とみたまさひろ <tommy / tmtm.org>
3469 42CC 4D32 F53C AD98  65A5 8C37 FF09 69C1 6040