netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Vincent Guittot <vincent.guittot@linaro.org>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] netfilter: conntrack: use power efficient workqueue
Date: Mon, 6 Nov 2017 16:25:33 +0100	[thread overview]
Message-ID: <20171106152533.GA27072@salvia> (raw)
In-Reply-To: <CAKfTPtDXb5x23UzapinOo=Wg8fPf0G-sJoD1Dpw15e0sMteLEQ@mail.gmail.com>

On Mon, Nov 06, 2017 at 04:15:42PM +0100, Vincent Guittot wrote:
> Hi Pablo,
> 
> On 6 November 2017 at 15:56, Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> > On Mon, Nov 06, 2017 at 03:31:55PM +0100, Pablo Neira Ayuso wrote:
> >> On Thu, 2 Nov 2017 15:16:07 +0100 Vincent Guittot <vincent.guittot@linaro.org> wrote:
> >> > conntrack uses the bounded system_long_wq workqueue for its works that
> >> > don't have to run on the cpu they have been queued.  Using bounded
> >> > workqueue prevents the scheduler to make smart decision about the best
> >> > place to schedule the work.
> >> >
> >> > This patch replaces system_long_wq with system_power_efficient_wq.
> >> > the work stays bounded to a cpu by default unless the
> >> > CONFIG_WQ_POWER_EFFICIENT is enable. In the latter case, the work can
> >> > be scheduled on the best cpu from a power or a performance point of
> >> > view.
> >>
> >> Applied, thanks.
> >
> > I'm stepping back. According to what I'm reading
> > system_power_efficient_wq becomes system_wq when disabled, which is
> > not semantically the same as system_long_wq that we have now.
> 
> When disabled, system_power_efficient_wq behaves like system_wq (and
> system_long_wq) as the worqueue are bounded to a cpu but It stays a
> different workqueue.
>
> > My concern is that the conntrack garbage collector may run for quite a
> > bit of time. Did you test this with a large conntrack table full of
> 
> No, I haven't done specific tests with a large conntrack table full of entries.
> 
> There is no system_power_efficient_long_wq. I was not convinced that
> we should create one that's why I have used system_power_efficient_wq

My concern is that this garbage collector may run intensively on busy
conntrack tables to get rid of expired entries, so my question is if
switching from system_long_wq to system_wq is a real issue.

Thanks.

  reply	other threads:[~2017-11-06 15:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-02 15:16 [PATCH] netfilter: conntrack: use power efficient workqueue Vincent Guittot
2017-11-06 14:31 ` Pablo Neira Ayuso
2017-11-06 14:56   ` Pablo Neira Ayuso
2017-11-06 15:15     ` Vincent Guittot
2017-11-06 15:25       ` Pablo Neira Ayuso [this message]
2017-11-06 16:33         ` Vincent Guittot
2017-11-07  0:02           ` Pablo Neira Ayuso

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=20171106152533.GA27072@salvia \
    --to=pablo@netfilter.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=vincent.guittot@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).