From: Chris Wedgwood <cw@f00f.org>
To: Micah Gorrell <angelcode@myrealbox.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Poll and Select not scaling
Date: Thu, 11 Jan 2001 12:37:42 +1300 [thread overview]
Message-ID: <20010111123742.A12271@metastasis.f00f.org> (raw)
In-Reply-To: <000401c07b5c$08d924b0$9b2f4189@angelw2k>
In-Reply-To: <000401c07b5c$08d924b0$9b2f4189@angelw2k>; from angelcode@myrealbox.com on Wed, Jan 10, 2001 at 04:21:17PM -0700
On Wed, Jan 10, 2001 at 04:21:17PM -0700, Micah Gorrell wrote:
I have been trying to increase the scalabilty of an email server
that has been ported to Linux. It was originally written for
Netware, and there we are able to provide over 30,000 connections
at any given time. On Linux however select stops working after
the first 1024 connections. I have changed include/linux/fs.h
and updated NR_FILE to be 81920. In test applications I have
been able to create well over 30,000 connections but I am unable
to do either a select or a poll on them. Does any one know what
I can do to fix this?
Which verion of linux and what libc are you using? For some time now
linux has supported the ability to select and poll on more than 102
FDs and several applications do indeed use this (squid for example).
For large numbers of FDs you probably want poll, which shouldn't give
you any problems. As you point out with sleect you need to redefine
NR_FILE or somesuch -- but hacking the kernel headers shouldn't be
necessary and may not help as libc will stull potentially get the
wrong value.
See where libc gets it from, I think recent libc version may allow
you to do something like:
#define NR_FILE <large-number>
#include <blah.h>
#include <blem.h>
but I could be wrong. Using poll you you have no problems.
--cw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2001-01-10 23:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-10 23:21 Poll and Select not scaling Micah Gorrell
2001-01-10 23:37 ` Chris Wedgwood [this message]
2001-01-11 2:24 ` Bill Wendling
2001-01-11 22:41 ` David Schwartz
-- strict thread matches above, loose matches on Subject: below --
2001-01-10 23:46 Dan Kegel
2001-01-11 20:35 ` dean gaudet
2001-01-11 23:07 Micah Gorrell
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=20010111123742.A12271@metastasis.f00f.org \
--to=cw@f00f.org \
--cc=angelcode@myrealbox.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