cmogstored dev/user discussion/issues/patches/etc
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: mogile@googlegroups.com
Cc: cmogstored-public@bogomips.org
Subject: Re: mogstored (and cmogstored) threads per device
Date: Tue, 16 Dec 2014 08:40:00 +0000	[thread overview]
Message-ID: <20141216084000.GB12182@dcvr.yhbt.net> (raw)
In-Reply-To: <alpine.DEB.2.10.1412152317540.11536@dtop>

dormando <dormando@rydia.net> wrote:
> Wonder if you could autotune it a bit? Start with a low default, then
> self-increase if the threads are starved too often. Self-tuning would
> disable if started at something other than the default or if 'SERVER
> aio_threads = XX' were issued

I've thought of autotuning, but then reliably detecting starvation in
userspace might be more trouble than it's worth (and expensive).
Probably the best way to leave things unchanged: give the kernel as
much work as possible and let the kernel scheduler decide what to do
with it.

Threads (even with 20K stack) are still pretty cheap and epoll interacts
well with the scheduler: extra/excess threads never get woken due to
FIFO ordering of threads in epoll_wait.

      reply	other threads:[~2014-12-16  8:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-02  9:57 mogstored (and cmogstored) threads per device Eric Wong
2014-12-16  7:18 ` dormando
2014-12-16  8:40   ` 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

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

  git send-email \
    --in-reply-to=20141216084000.GB12182@dcvr.yhbt.net \
    --to=e@80x24.org \
    --cc=cmogstored-public@bogomips.org \
    --cc=mogile@googlegroups.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.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/cmogstored.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).