All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Graf <tgraf@suug.ch>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: Kim N <spam1@norring.dk>, Daniel Borkmann <dborkman@redhat.com>,
	netfilter-devel@vger.kernel.org
Subject: Re: [Kernel Bug 86261] Ipset add/restore slowed to a crawl in kernel 3.17 (and 3.17.1)
Date: Sun, 26 Oct 2014 20:11:49 +0000	[thread overview]
Message-ID: <20141026201149.GA16147@casper.infradead.org> (raw)
In-Reply-To: <alpine.DEB.2.10.1410261755280.528@blackhole.kfki.hu>

On 10/26/14 at 06:12pm, Jozsef Kadlecsik wrote:
> Hi Thomas,
> 
> According to my tests the slowdown in ipset (netlink) is caused by the 
> patch:
> 
> commit e341694e3eb57fcda9f1adc7bfea42fe080d8d7a
> Author: Thomas Graf <tgraf@suug.ch>
> Date:   Sat Aug 2 11:47:45 2014 +0200
> 
>     netlink: Convert netlink_lookup() to use RCU protected hash table
>     
> Running the test provided in the report below in a KVM guest, the times 
> spent in adding ~430 entries, saving, then restoring those

Hi Jozsef,

Thanks for tracking this down. I would assume that the following fix
addresses the ipset regression as well:

commit 78fd1d0ab072d4d9b5f0b7c14a1516665170b565
Author: Thomas Graf <tgraf@suug.ch>
Date:   Tue Oct 21 22:05:38 2014 +0200

    netlink: Re-add locking to netlink_lookup() and seq walker

    The synchronize_rcu() in netlink_release() introduces unacceptable
    latency. Reintroduce minimal lookup so we can drop the
    synchronize_rcu() until socket destruction has been RCUfied.

    Cc: David S. Miller <davem@davemloft.net>
    Cc: Eric Dumazet <eric.dumazet@gmail.com>
    Reported-by: Steinar H. Gunderson <sgunderson@bigfoot.com>
    Reported-and-tested-by: Heiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: Thomas Graf <tgraf@suug.ch>
    Signed-off-by: David S. Miller <davem@davemloft.net>

  reply	other threads:[~2014-10-26 20:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <5446AB11.1000807@redhat.com>
2014-10-25 20:01 ` [Kernel Bug 86261] Ipset add/restore slowed to a crawl in kernel 3.17 (and 3.17.1) Kim N
2014-10-26 17:12   ` Jozsef Kadlecsik
2014-10-26 20:11     ` Thomas Graf [this message]
2014-10-26 20:48       ` Jozsef Kadlecsik
2014-10-27 19:31         ` Jozsef Kadlecsik

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=20141026201149.GA16147@casper.infradead.org \
    --to=tgraf@suug.ch \
    --cc=dborkman@redhat.com \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=spam1@norring.dk \
    /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.