All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <mchristi@redhat.com>
To: Ilya Dryomov <idryomov@gmail.com>, ceph-devel@vger.kernel.org
Cc: Mike Christie <michaelc@cs.wisc.edu>,
	Mel Gorman <mgorman@suse.de>, Sage Weil <sage@redhat.com>
Subject: Re: [PATCH] Revert "libceph: use memalloc flags for net IO"
Date: Tue, 07 Apr 2015 10:41:53 -0500	[thread overview]
Message-ID: <5523FAC1.9050403@redhat.com> (raw)
In-Reply-To: <1428414024-47769-1-git-send-email-idryomov@gmail.com>

On 04/07/2015 08:40 AM, Ilya Dryomov wrote:
> This reverts commit 89baaa570ab0b476db09408d209578cfed700e9f.
> 
> Dirty page throttling should be sufficient for us in the general case
> so there is no need to use __GFP_MEMALLOC - it would be needed only in
> the swap-over-rbd case, which we currently don't support.  (It would
> probably take approximately the commit that is being reverted to add
> that support, but we would also need the "swap" option to distinguish
> from the general case and make sure swap ceph_client-s aren't shared
> with anything else.)  See ceph-devel threads [1] and [2] for the
> details of why enabling pfmemalloc reserves for all cases is a bad
> thing.
> 
> On top of potential system lockups related to drained emergency
> reserves, this turned out to cause ceph lockups in case peers are on
> the same host and communicating via loopback due to sk_filter()
> dropping pfmemalloc skbs on the receiving side because the receiving
> loopback socket is not tagged with SOCK_MEMALLOC.
> 
> [1] "SOCK_MEMALLOC vs loopback"
>     http://www.spinics.net/lists/ceph-devel/msg22998.html
> [2] "[PATCH] libceph: don't set memalloc flags in loopback case"
>     http://www.spinics.net/lists/ceph-devel/msg23392.html
> 
> Conflicts:
> 	net/ceph/messenger.c [ context: tcp_nodelay option ]
> 
> Cc: Mike Christie <michaelc@cs.wisc.edu>
> Cc: Mel Gorman <mgorman@suse.de>
> Cc: Sage Weil <sage@redhat.com>
> Cc: stable@vger.kernel.org # 3.18+, needs backporting
> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

Yeah, I misunderstood the memalloc flag use.

Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>


      parent reply	other threads:[~2015-04-07 15:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-07 13:40 [PATCH] Revert "libceph: use memalloc flags for net IO" Ilya Dryomov
2015-04-07 15:41 ` Mel Gorman
2015-04-07 15:41 ` Mike Christie [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

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

  git send-email \
    --in-reply-to=5523FAC1.9050403@redhat.com \
    --to=mchristi@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=idryomov@gmail.com \
    --cc=mgorman@suse.de \
    --cc=michaelc@cs.wisc.edu \
    --cc=sage@redhat.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.