yahns Ruby server user/dev discussion
 help / color / Atom feed
From: Eric Wong <e@80x24.org>
To: yahns-public@yhbt.net
Subject: Re: [RFC/WIP] support non-blocking listeners, too
Date: Mon, 13 May 2019 01:51:33 +0000
Message-ID: <20190513015133.jtknn3gdp6gydl7g@dcvr> (raw)
In-Reply-To: <20190511121045.maebjf2wc4h4ljrs@dcvr>

Eric Wong <e@80x24.org> wrote:
> While a major design factor of this server was based
> load-balancing with blocking accept() in a dedicated thread,
> non-blocking accept() has become fairer with EPOLLEXCLUSIVE in
> Linux 4.5+.

Actually... not sure if it matters, even.  EPOLLEXCLUSIVE still
seems worse off than a blocking accept4() thread.  The process
which gets woken from epoll_wait can still be stuck dealing with
application processing or other I/O (the kernel has no way of
knowing that).

Blocking on accept4() is fairer in that regard since it
round-robins the processes.

On a related note, having a multi_accept parameter (like nginx)
should be beneficial to single-process deployments.

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-11 12:10 Eric Wong
2019-05-13  1:51 ` Eric Wong [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:

  List information: https://yhbt.net/yahns/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190513015133.jtknn3gdp6gydl7g@dcvr \
    --to=e@80x24.org \
    --cc=yahns-public@yhbt.net \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

yahns Ruby server user/dev discussion

Archives are clonable:
	git clone --mirror https://yhbt.net/yahns-public
	git clone --mirror http://ou63pmih66umazou.onion/yahns-public

Example config snippet for mirrors

Newsgroups are available over NNTP:

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git