mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mark Mielke <mark@mark.mielke.cc>
To: Chris Wedgwood <cw@f00f.org>
Cc: Steve <steve@primalhost.com>, linux-kernel@vger.kernel.org
Subject: Re: Using Poll
Date: Wed, 7 Aug 2002 09:39:44 -0400	[thread overview]
Message-ID: <20020807093944.A13594@mark.mielke.cc> (raw)
In-Reply-To: <20020807065458.GC11181@tapu.f00f.org>; from cw@f00f.org on Tue, Aug 06, 2002 at 11:54:58PM -0700

On Tue, Aug 06, 2002 at 11:54:58PM -0700, Chris Wedgwood wrote:
> On Wed, Aug 07, 2002 at 01:59:22PM +1000, Steve wrote:
> >   Hey,
> >           I recentally enquried about the FD Limit Size.. and how to
> >   enlarge it.. I was told to use the poll system instead.. How Do i
> >   use this Poll System?
> Can you explain a little more what you are trying to do here?  poll(2)
> is documented so I am not sure what you are asking...

He is probably talking about configuring the system to support more than
1024 file descriptors per process.

On Linux (POSIX?), fd_set is only 1024 bits long, making select() unusable,
or at least, not portably usable.

Since poll() uses an int to represent the file descriptor, poll() works
in situations that select() does not, although I would suspect that poll()
with this many active file descriptors (assuming one was actually waiting
for an event on 1024+ file descriptors) will probably kill sink quite a few
system seconds into the process over time.

Steve: As Chris mentions, poll(2) is documented. "man poll" will tell you
everything you need to know.

mark

-- 
mark@mielke.cc/markm@ncf.ca/markm@nortelnetworks.com __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | Neighbourhood Coder
|\/| |_| |_| |/    |_     |\/|  |  |_  |   |/  |_   | 
|  | | | | \ | \   |__ .  |  | .|. |__ |__ | \ |__  | Ottawa, Ontario, Canada

  One ring to rule them all, one ring to find them, one ring to bring them all
                       and in the darkness bind them...

                           http://mark.mielke.cc/


      reply	other threads:[~2002-08-07 13:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-07  3:59 Steve
2002-08-07  6:54 ` Chris Wedgwood
2002-08-07 13:39   ` Mark Mielke [this message]

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=20020807093944.A13594@mark.mielke.cc \
    --to=mark@mark.mielke.cc \
    --cc=cw@f00f.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=steve@primalhost.com \
    /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®