All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kyle Moffett <mrmacman_g4@mac.com>
To: Roy Keene <rkeene@psislidell.com>
Cc: Erik Slagter <erik@slagter.name>, Pavel Machek <pavel@ucw.cz>,
	linux-kernel@vger.kernel.org
Subject: Re: Problem with 2.6 kernel and lots of I/O
Date: Mon, 20 Jun 2005 19:18:35 -0400	[thread overview]
Message-ID: <6DCC9CC1-2B5C-430F-96AC-F36477AC8290@mac.com> (raw)
In-Reply-To: <Pine.LNX.4.62.0506201711090.3592@hammer.psislidell.com>

On Jun 20, 2005, at 18:19:19, Roy Keene wrote:
> On Mon, 6 Jun 2005, Kyle Moffett wrote:
>>> IIRC, because of the way the loopback delivers packets from the
>>> same context as they are sent, it is possible (and quite easy)
>>> to either deadlock or peg the CPU and make everything hang and
>>> be unuseable.  DRBD likewise used to have problems with testing
>>> over the loopback until they added a special configuration
>>> option to be extra careful and yield CPU.
>
> Actually, the problem I have isn't specific to the using it over
> the local device.  Quite often I have the problem where the
> secondary node goes down and comes back up after some time and
> needs to be resyncd.  This is done on the master (raid1_resync) by
> hot-removing /dev/nbd1 and then hot-adding it back.

No, see, when you hot-add /dev/nbd1, the kernel md resync thread
begins processing the resync.  The resync operation on two nbds
involves:
   1) Send data request packet from nbd0
   2) Wait for response
   3) Send data packet to nbd1
   4) Wait for response
   5) Repeat until done

On a normal net device, the "Send data request packet" causes the
system to drop the packet on the wire and go away to do other stuff
for a while, whereas on the loopback, it can schedule immediately
to the process receiving the packet, which is the kernel itself.
The kernel then processes the packet and returns the result, over
the loopback.  It then sends the response to the other server over
a real net connection.  During most of this time, the kernel is
taking big locks and turning interrupts off and on and such, causing
massive hangs until resync finishes.  Since you mentioned bad write
performance with your RAID controller, I suspect its driver may also
turn off interrupts, take excessive locks, or do other madness,
further worsening system responsiveness.

Cheers,
Kyle Moffett

--
There are two ways of constructing a software design. One way is to  
make it so simple that there are obviously no deficiencies. And the  
other way is to make it so complicated that there are no obvious  
deficiencies.
  -- C.A.R. Hoare


  reply	other threads:[~2005-06-20 23:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-31 15:55 Problem with 2.6 kernel and lots of I/O Roy Keene
     [not found] ` <200505312040.30812.bernd-schubert@web.de>
2005-05-31 19:00   ` Roy Keene
2005-06-01  1:16     ` Kyle Moffett
2005-06-01 19:59 ` Pavel Machek
2005-06-05 10:11   ` Erik Slagter
2005-06-06  5:46     ` Kyle Moffett
2005-06-20 22:19       ` Roy Keene
2005-06-20 23:18         ` Kyle Moffett [this message]
2005-06-20 23:54           ` Roy Keene
2005-06-21  2:47             ` Kyle Moffett
2005-06-21  7:41             ` Pavel Machek
2005-06-21 14:23               ` Roy Keene
2005-05-31 16:12 Parag Warudkar

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=6DCC9CC1-2B5C-430F-96AC-F36477AC8290@mac.com \
    --to=mrmacman_g4@mac.com \
    --cc=erik@slagter.name \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=rkeene@psislidell.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 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.