From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [RFC PATCH 08/13] net: sched: support skb_bad_tx with lockless qdisc Date: Wed, 17 Aug 2016 15:58:06 -0700 Message-ID: <1471474686.29842.53.camel@edumazet-glaptop3.roam.corp.google.com> References: <20160817193120.27032.20918.stgit@john-Precision-Tower-5810> <20160817193646.27032.75592.stgit@john-Precision-Tower-5810> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: xiyou.wangcong@gmail.com, jhs@mojatatu.com, alexei.starovoitov@gmail.com, brouer@redhat.com, john.r.fastabend@intel.com, netdev@vger.kernel.org, davem@davemloft.net To: John Fastabend Return-path: Received: from mail-pf0-f194.google.com ([209.85.192.194]:34977 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752435AbcHQW6I (ORCPT ); Wed, 17 Aug 2016 18:58:08 -0400 Received: by mail-pf0-f194.google.com with SMTP id h186so211250pfg.2 for ; Wed, 17 Aug 2016 15:58:07 -0700 (PDT) In-Reply-To: <20160817193646.27032.75592.stgit@john-Precision-Tower-5810> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 2016-08-17 at 12:36 -0700, John Fastabend wrote: > Similar to how gso is handled skb_bad_tx needs to be per cpu to handle > lockless qdisc with multiple writer/producers. \ > @@ -1021,6 +1026,7 @@ err_out4: > free_percpu(sch->cpu_bstats); > free_percpu(sch->cpu_qstats); > free_percpu(sch->gso_cpu_skb); > + free_percpu(sch->skb_bad_txq_cpu); This might be the time to group all these per cpu allocations to a single one, to help data locality and decrease overhead of having XX pointers.