comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Re: Structure of the multitasking server
Date: Mon, 22 Sep 2008 06:05:36 -0700 (PDT)
Date: 2008-09-22T06:05:36-07:00	[thread overview]
Message-ID: <34752018-8305-42f2-ac98-2c3a0e8e482d@25g2000hsx.googlegroups.com> (raw)
In-Reply-To: LsDBk.232431$102.190903@bgtnsc05-news.ops.worldnet.att.net

On 22 Wrz, 04:32, a...@anon.org (anon) wrote:

>   Why use "GNAT.Sockets.Check_Selection"?

> [...] basically it has to do with limited
> system resources.

Of course, but as I've said, the intended (fixed) number of pipelines
is relatively small and the system resources do not seem to be any
limitation.

> Note: TCP/IP "Accept" can only monitor one connection port while the
> TCP/IP "Select" allows monitoring up to 32 at one time in one routine.
> which makes the TCP/IP "Select" a better utilization of system resources.

I don't understand this assertion. You cannot *replace* accept with
select, they serve completely different purposes, so you cannot state
that one is better than another.

> Why only 27 servers per TCP/IP "Select" routine  Well, the designers created
> the TCP/IP "Select" to use 3 32-bit word to detect or flag

This is an implementation detail that does not seem to be true any
longer. As I've already explained, on my system the default limit for
select(2) is 1024 descriptors and with a simple compiler option can be
actually unlimited.

The limit of 32 seems to be very impractical today. It is not uncommon
to have hundreds of clients connected at the same time to a single
server. They can be all handled without any partitioning.

> Plus, some system may have 1024 file descriptors, but the OS normally
> limit the number of assigned/open file descriptors to 32 or less.

Again, this is not true on any of the systems that I have access to.

--
Maciej Sobczak * www.msobczak.com * www.inspirel.com

Database Access Library for Ada: www.inspirel.com/soci-ada



  reply	other threads:[~2008-09-22 13:05 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-19 12:21 Structure of the multitasking server Maciej Sobczak
2008-09-19 13:34 ` Jean-Pierre Rosen
2008-09-19 17:02   ` Dmitry A. Kazakov
2008-09-21 17:30     ` Maciej Sobczak
2008-09-21 19:24       ` Dmitry A. Kazakov
2008-09-21 21:27         ` Maciej Sobczak
2008-09-22  8:12           ` Dmitry A. Kazakov
2008-09-22 12:47             ` Maciej Sobczak
2008-09-22 14:11               ` Dmitry A. Kazakov
2008-09-23  8:07                 ` Maciej Sobczak
2008-09-23  9:37                   ` Dmitry A. Kazakov
2008-09-23 10:47                   ` Jean-Pierre Rosen
2008-09-21 17:23   ` Maciej Sobczak
2008-09-22  8:23     ` Jean-Pierre Rosen
2015-03-12 16:07   ` gautier_niouzes
2015-03-12 21:38     ` Jacob Sparre Andersen
2015-03-12 22:39       ` gautier_niouzes
2015-03-13  8:15         ` Dmitry A. Kazakov
2015-03-13 20:16           ` gautier_niouzes
2015-03-13 20:47             ` Dmitry A. Kazakov
2015-03-15  7:43               ` gautier_niouzes
2015-03-15  8:35                 ` Simon Wright
2015-03-15  8:52                 ` J-P. Rosen
2015-03-15  9:21                   ` Jacob Sparre Andersen
2015-03-15 16:04                     ` Brad Moore
2015-03-13 23:04             ` Randy Brukardt
2015-03-14  8:22               ` Simon Wright
2008-09-19 23:01 ` anon
2008-09-21 17:37   ` Maciej Sobczak
2008-09-22  2:32     ` anon
2008-09-22 13:05       ` Maciej Sobczak [this message]
2008-09-23  9:25         ` anon
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox