From: Chris Wedgwood <cw@f00f.org>
To: Dag Wieers <dag@wieers.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: Should __FD_SETSIZE still be set to 1024 ?
Date: Sat, 23 Jun 2001 03:48:49 +1200 [thread overview]
Message-ID: <20010623034849.A3728@metastasis.f00f.org> (raw)
In-Reply-To: <Pine.LNX.4.33.0106221631500.27761-100000@horsea.3ti.be>
In-Reply-To: <Pine.LNX.4.33.0106221631500.27761-100000@horsea.3ti.be>; from dag@wieers.com on Fri, Jun 22, 2001 at 04:59:36PM +0200
On Fri, Jun 22, 2001 at 04:59:36PM +0200, Dag Wieers wrote:
Is there a reason for __FD_SETSIZE to be 1024 in
linux/posix_types.h and gnu/types.h ?
Why can't we increase this number by default ?
It might break stuff, like things that link with code that assumes it
is only 1024.
Shouldn't it be set to the real limit of the kernel ?
Nah... the kernel limit is 1024^2 --- you don't want to use select
anywhere near that.
(And let applications define their own limit if there is a need
for one ?)
Well, squid and friends do this anyhow.
Not only that, using a greatly increased value should be a run-time
decision, lest you want your code to break on early 2.2.x kernels and
before.
--cw
next prev parent reply other threads:[~2001-06-22 15:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-22 14:59 Dag Wieers
2001-06-22 15:48 ` Chris Wedgwood [this message]
2001-06-22 16:25 ` Dag Wieers
2001-06-23 6:01 ` Chris Wedgwood
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010623034849.A3728@metastasis.f00f.org \
--to=cw@f00f.org \
--cc=dag@wieers.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®