From: Marcelo Ricardo Leitner <mleitner@redhat.com>
To: davem@davemloft.net
Cc: hannes@redhat.com, netdev@vger.kernel.org, eric.dumazet@gmail.com
Subject: Re: [PATCH stable 3.4 v2 1/2] ipv4: move route garbage collector to work queue
Date: Tue, 19 Aug 2014 17:31:50 -0300 [thread overview]
Message-ID: <53F3B436.8050407@redhat.com> (raw)
In-Reply-To: <547688b69ee9a258cc04e4dad17a90ca6ab182d0.1408045325.git.mleitner@redhat.com>
Em 14-08-2014 16:44, Marcelo Ricardo Leitner escreveu:
> Currently the route garbage collector gets called by dst_alloc() if it
> have more entries than the threshold. But it's an expensive call, that
> don't really need to be done by then.
>
> Another issue with current way is that it allows running the garbage
> collector with the same start parameters on multiple CPUs at once, which
> is not optimal. A system may even soft lockup if the cache is big enough
> as the garbage collectors will be fighting over the hash lock entries.
>
> This patch thus moves the garbage collector to run asynchronously on a
> work queue, much similar to how rt_expire_check runs.
>
> There is one condition left that allows multiple executions, which is
> handled by the next patch.
>
> Signed-off-by: Marcelo Ricardo Leitner <mleitner@redhat.com>
> Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
> ---
>
> Notes:
> Hi,
>
> This set is needed for stables <= 3.4, as the IPv4 route cache was
> removed after that.
>
> v1->v2: addressed indentation issue noticed by David Miller
>
> Thanks!
>
Hi Dave,
Sorry to bother you but WDYT, is this patchset more appropriate?
Thanks,
Marcelo
next prev parent reply other threads:[~2014-08-19 20:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-14 19:44 [PATCH stable 3.4 v2 1/2] ipv4: move route garbage collector to work queue Marcelo Ricardo Leitner
2014-08-14 19:44 ` [PATCH stable 3.4 v2 2/2] ipv4: avoid parallel route cache gc executions Marcelo Ricardo Leitner
2014-08-19 20:31 ` Marcelo Ricardo Leitner [this message]
2014-08-19 20:34 ` [PATCH stable 3.4 v2 1/2] ipv4: move route garbage collector to work queue David Miller
2014-08-19 20:38 ` Marcelo Ricardo Leitner
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=53F3B436.8050407@redhat.com \
--to=mleitner@redhat.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=hannes@redhat.com \
--cc=netdev@vger.kernel.org \
/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.