All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Greear <greearb@candelatech.com>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: netdev <netdev@vger.kernel.org>
Subject: Re: question on pktgen shutdown logic.
Date: Wed, 22 May 2013 16:52:22 -0700	[thread overview]
Message-ID: <519D5A36.6030000@candelatech.com> (raw)
In-Reply-To: <1369265749.3301.372.camel@edumazet-glaptop>

On 05/22/2013 04:35 PM, Eric Dumazet wrote:
> On Wed, 2013-05-22 at 16:28 -0700, Ben Greear wrote:
>
>> Ahh, so it waits for the pktgen_thread_worker method to return?
>>
>> Why do we bother with the pktgen_exiting flag at all...it
>> would seem that just checking kthread_should_stop() would
>> do the trick?
>
> If you have 4096 cpus, setting pktgen_exiting permits all pktgen exiting
> faster.
>
> Otherwise you wait about 400 seconds (4096 * HZ/10)

Ok, I think I understand now.

Thanks,
Ben

>
>


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com

      reply	other threads:[~2013-05-22 23:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-22 23:15 question on pktgen shutdown logic Ben Greear
2013-05-22 23:22 ` Eric Dumazet
2013-05-22 23:28   ` Ben Greear
2013-05-22 23:35     ` Eric Dumazet
2013-05-22 23:52       ` Ben Greear [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=519D5A36.6030000@candelatech.com \
    --to=greearb@candelatech.com \
    --cc=eric.dumazet@gmail.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.