All of lore.kernel.org
 help / color / mirror / Atom feed
From: Javier Guerra <javier@guerrag.com>
To: Lars Ellenberg <lars.ellenberg@linbit.com>
Cc: Michael Tokarev <mjt@tls.msk.ru>, KVM list <kvm@vger.kernel.org>,
	drbd-user@lists.linbit.com
Subject: Re: [DRBD-user] kvm, drbd, elevator, rotational - quite an interesting co-operation
Date: Fri, 3 Jul 2009 08:06:07 -0500	[thread overview]
Message-ID: <200907030806.07624.javier@guerrag.com> (raw)
In-Reply-To: <20090703084503.GC9150@soda.linbit>

Lars Ellenberg wrote:
> On Thu, Jul 02, 2009 at 11:55:05PM +0400, Michael Tokarev wrote:
> > drbd: what's the difference in write pattern on secondary and
> >   primary nodes?  Why `rotational' flag makes very big difference
> >   on secondary and no difference whatsoever on primary?
> 
> not much.
> disk IO on Primary is usually submitted in the context of the
> submitter (vm subsystem, filesystem or the process itself)
> whereas on Secondary, IO is naturally submitted just by the
> DRBD receiver and worker threads.

just like with KVM itself, using several worker threads against a single IO device makes performance heavily dependent on a sensible elevator algorithm.  ideally, there should be only one worker thread for each thread/process originating the initial write.  unfortunately DRBD, being a block/level protocol, might have a hard time unraveling which writes belong to which process.  maybe just merging adjacent (in block address space, not in time) write operations would keep most of the relationships.

-- 
Javier

  reply	other threads:[~2009-07-03 13:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-02 19:55 kvm, drbd, elevator, rotational - quite an interesting co-operation Michael Tokarev
2009-07-02 20:14 ` Javier Guerra
2009-07-06 13:28   ` Michael Tokarev
2009-07-06 14:07     ` Javier Guerra
2009-07-06 20:00     ` [DRBD-user] " Carson Gaspar
     [not found] ` <4A4D1099.8050709-Gdu+ltImwkhes2APU0mLOQ@public.gmane.org>
2009-07-03  8:45   ` Lars Ellenberg
2009-07-03 13:06     ` Javier Guerra [this message]
     [not found]       ` <200907030806.07624.javier-796Irmz5ZkZBDgjK7y7TUQ@public.gmane.org>
2009-07-03 14:00         ` Lars Ellenberg
2009-07-03 22:59           ` [DRBD-user] " Javier Guerra
     [not found]             ` <90eb1dc70907031559y47c97667s7a38fcb133a42c6d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-06  9:42               ` Lars Ellenberg

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=200907030806.07624.javier@guerrag.com \
    --to=javier@guerrag.com \
    --cc=drbd-user@lists.linbit.com \
    --cc=kvm@vger.kernel.org \
    --cc=lars.ellenberg@linbit.com \
    --cc=mjt@tls.msk.ru \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.