public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kuznet@ms2.inr.ac.ru
To: alan@lxorguk.ukuu.org.uk (Alan Cox)
Cc: samudrala@us.ibm.com, linux-kernel@vger.kernel.org,
	linux-net@vger.kernel.org, lartc@mailman.ds9a.nl,
	diffserv-general@lists.sourceforge.net, rusty@rustcorp.com.au
Subject: Re: [PATCH] Inbound Connection Control mechanism: Prioritized Accept
Date: Fri, 27 Jul 2001 22:04:13 +0400 (MSK DST)	[thread overview]
Message-ID: <200107271804.WAA22016@ms2.inr.ac.ru> (raw)
In-Reply-To: <E15QBMf-00066p-00@the-village.bc.nu> from "Alan Cox" at Jul 27, 1 06:25:29 pm

Hello!

> How is this different from having a single userspace thread in your
> application which accepts connections as they come in and then hands them
> out in an order it chooses, if need be erorring and closing some ?

Seems, I can answer. Because closing some would break the service.

The idea is that when kernel accept queue is full we stop to
move open requests to established state and hence spurious
aborts are not generated. So, accepting cannot be artificially
speed up and extension of accept queue to user space is impossible.
The similar problem was open with TUX, which relays requests
to slow path. I do not know how Ingo solved it, by the way,
but it looked terrible: either massive socket leak (no limit on accept queue)
or massive aborts. :-)


Another question to author: missing prioritization of drops.
"Low priority" connections will clog accept queue, so that no room
for high priority connections remains. It is not good.
Any scheme with priority reserves some room for each high priority band
or does dropping based on priority.

Alexey

  parent reply	other threads:[~2001-07-27 18:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-27 17:10 [PATCH] Inbound Connection Control mechanism: Prioritized Accept Queue Sridhar Samudrala
2001-07-27 17:25 ` [PATCH] Inbound Connection Control mechanism: Prioritized Accept Alan Cox
2001-07-27 18:01   ` Sridhar Samudrala
2001-07-27 18:07     ` Alan Cox
2001-07-27 18:04   ` kuznet [this message]
2001-07-27 19:55     ` Sridhar Samudrala
2001-07-28 19:12       ` kuznet
2001-07-28 20:01         ` Thiemo Voigt
2001-07-29 16:25           ` kuznet
2001-07-30  7:40             ` Sridhar Samudrala
2001-08-01 23:22               ` Alexey Kuznetsov
2001-08-02 17:17                 ` Sridhar Samudrala
2001-08-02 22:31                   ` Alexey Kuznetsov

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=200107271804.WAA22016@ms2.inr.ac.ru \
    --to=kuznet@ms2.inr.ac.ru \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=diffserv-general@lists.sourceforge.net \
    --cc=lartc@mailman.ds9a.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=samudrala@us.ibm.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