Re: Excessive threads in opendkim-2.2.2 on Solaris 10

From: Jose-Marcio Martins da Cruz <Jose-Marcio.Martins_at_mines-paristech.fr>
Date: Thu, 27 Jan 2011 19:24:08 +0100

ml+opendkim-dev_at_esmtp.org wrote:
> On Wed, Jan 26, 2011, Murray S. Kucherawy wrote:
>
>> Yep, I agree. Use of select() on Solaris might be a problem.
>> Historically FD_SETSIZE was 1024 or maybe less. On modern BSD
>
> Compile it as 64 bit application and you're done:
> select(3C):
>
> The maximum supported size for FD_SETSIZE is 65536. The
> default value is already 65536 for 64-bit applications.

Or redefine FD_SETSIZE (from the entire NOTES of man -s 3c select) :

NOTES
      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 any
      system-supplied header. The maximum supported size for
      FD_SETSIZE is 65536. The default value is already 65536 for
      64-bit applications.

>

-- 
  ---------------------------------------------------------------
  Jose Marcio MARTINS DA CRUZ           http://j-chkmail.ensmp.fr
  Ecole des Mines de Paris
  60, bd Saint Michel                      75272 - PARIS CEDEX 06
  mailto:Jose-Marcio.Martins_at_mines-paristech.fr
Received on Thu Jan 27 2011 - 18:25:01 PST

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thu Jan 27 2011 - 21:50:02 PST