Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1181980 > unrolled thread

Re: [PATCH v2] nohz: prevent tilegx network driver interrupts

Started byJosh Cartwright <joshc@ni.com>
First post2015-07-11 00:50 +0200
Last post2015-07-11 01:20 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2] nohz: prevent tilegx network driver interrupts Josh Cartwright <joshc@ni.com> - 2015-07-11 00:50 +0200
    Re: [PATCH v2] nohz: prevent tilegx network driver interrupts Chris Metcalf <cmetcalf@ezchip.com> - 2015-07-11 01:10 +0200
      Re: [PATCH v2] nohz: prevent tilegx network driver interrupts Josh Cartwright <joshc@ni.com> - 2015-07-11 01:20 +0200

#1181980 — Re: [PATCH v2] nohz: prevent tilegx network driver interrupts

FromJosh Cartwright <joshc@ni.com>
Date2015-07-11 00:50 +0200
SubjectRe: [PATCH v2] nohz: prevent tilegx network driver interrupts
Message-ID<pKPhg-3mu-17@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

On Fri, Jul 10, 2015 at 03:37:25PM -0400, Chris Metcalf wrote:
> Normally the tilegx networking shim sends irqs to all the cores
> to distribute the load of processing incoming-packet interrupts,
> so that you can get to multiple Gb's of traffic inbound.
> 
> However, in nohz_full mode we don't want to interrupt the
> nohz_full cores by default, so we limit the set of cores we use
> to only the online housekeeping cores.
> 
> To make client code easier to read, we introduce a new nohz_full
> accessor, housekeeping_cpumask(), which returns a pointer to the
> housekeeping_mask if nohz_full is enabled, and otherwise returns
> the cpu_possible_mask.
> 
> Signed-off-by: Chris Metcalf <cmetcalf@ezchip.com>
> ---
[..]
> +static inline const struct cpumask *housekeeping_cpumask(void)
> +{
> +#ifdef CONFIG_NO_HZ_FULL
> +	if (tick_nohz_full_enabled())
> +		return housekeeping_mask;
> +#endif

Just a small comment:

We can take these checks out from under a #ifdef CONFIG_NO_HZ_FULL
check, given that are stubbed tick_nohz_full_enabled() defined above.

  Josh

[toc] | [next] | [standalone]


#1181985

FromChris Metcalf <cmetcalf@ezchip.com>
Date2015-07-11 01:10 +0200
Message-ID<pKPAB-3Im-1@gated-at.bofh.it>
In reply to#1181980
On 7/10/2015 6:45 PM, Josh Cartwright wrote:
>> +static inline const struct cpumask *housekeeping_cpumask(void)
>> >+{
>> >+#ifdef CONFIG_NO_HZ_FULL
>> >+	if (tick_nohz_full_enabled())
>> >+		return housekeeping_mask;
>> >+#endif
> Just a small comment:
>
> We can take these checks out from under a #ifdef CONFIG_NO_HZ_FULL
> check, given that are stubbed tick_nohz_full_enabled() defined above.

True for the "if" clause, but the "housekeeping_mask" variable is only defined
under CONFIG_NO_HZ_FULL.

-- 
Chris Metcalf, EZChip Semiconductor
http://www.ezchip.com

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1181995

FromJosh Cartwright <joshc@ni.com>
Date2015-07-11 01:20 +0200
Message-ID<pKPKi-3Ly-5@gated-at.bofh.it>
In reply to#1181985

[Multipart message — attachments visible in raw view] — view raw

On Fri, Jul 10, 2015 at 07:06:23PM -0400, Chris Metcalf wrote:
> On 7/10/2015 6:45 PM, Josh Cartwright wrote:
> >>+static inline const struct cpumask *housekeeping_cpumask(void)
> >>>+{
> >>>+#ifdef CONFIG_NO_HZ_FULL
> >>>+	if (tick_nohz_full_enabled())
> >>>+		return housekeeping_mask;
> >>>+#endif
> >Just a small comment:
> >
> >We can take these checks out from under a #ifdef CONFIG_NO_HZ_FULL
> >check, given that are stubbed tick_nohz_full_enabled() defined above.
> 
> True for the "if" clause, but the "housekeeping_mask" variable is only defined
> under CONFIG_NO_HZ_FULL.

Indeed!  I should have read more carefully.

Sorry for the noise.

  Josh

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web