Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5210524ybi; Tue, 4 Jun 2019 03:09:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDVFNmY1TLzrvGYya206213e4fE1oyZy0rqlLKG3cRmPMkIL5DL9N454kMHSqlY5PO4L5B X-Received: by 2002:a62:582:: with SMTP id 124mr37512814pff.209.1559642960196; Tue, 04 Jun 2019 03:09:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559642960; cv=none; d=google.com; s=arc-20160816; b=srxNLPHu4lEEs684aPnrehDn3C8aHei/53FC6yW48XjO8BahTTSzkfGr4h595A3wm+ sxkhf+iQ1wvwkyJ4f09JCXFIz9b+1AsWp11986u2ra2UnjRzqgTgOu/63YwS/BbLLlVl eB0M/f0+P/QY6kFixPZE+9peV3GvVl7CHwpyOnYljEUCuj5tAKtsq+HdvbLLgMdDVBb9 fNU6ySVQKIv0+qn62Ws1ojHOk5ra0Y0XnYSJu7j3pTDQOMGcb95yHXJaM0PjGbP051YJ vNBKbDatd91zPXB6MWFCNsPL2A+Hl7zAOdWe9fHml4xQsClQJzNSxohWxrVUTYLw+rnt fYGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8wsjFDhwrxmnE9dapfvy+h5aZ4Qnjn5mQ8/hJRBvBzI=; b=S88vWYxzj03wPNP2TlYpp+on5IfxQvkKbkCAb/AFwSVJqvfSHfxNeF05oeIQAdEnxB LDLJJn06YqR8CL/uUpmAFIgoLB6S/oUAZRKmZKiwzWcPXV1lrExg/wT1FFZ11wKLlvU6 YlietH84N4Kqu7PwgLfoKeSbc2hkNG/IpIPVJTytAGvE43aJ5tmzIRtIsPiuM/rLeXZO 7bIvV1eoEyPJZq5CZVYplLbFJXlOdGKXnUrjUlhZAATCmCRhpxUVifVhzkVn5yE62ZaW SR9ZIeHtgPrXLMIHdGjAHTpVLc0/JuGO0tpxHIVyX7Ajag/4kDpAXTUAAY/p8Ku7K43A 3c6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az12si7950042plb.165.2019.06.04.03.09.02; Tue, 04 Jun 2019 03:09:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727118AbfFDKHv (ORCPT + 99 others); Tue, 4 Jun 2019 06:07:51 -0400 Received: from mga07.intel.com ([134.134.136.100]:59677 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726982AbfFDKHv (ORCPT ); Tue, 4 Jun 2019 06:07:51 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jun 2019 03:07:50 -0700 X-ExtLoop1: 1 Received: from shbuild888.sh.intel.com (HELO localhost) ([10.239.147.114]) by FMSMGA003.fm.intel.com with ESMTP; 04 Jun 2019 03:07:49 -0700 Date: Tue, 4 Jun 2019 18:07:35 +0800 From: Feng Tang To: Eric Dumazet Cc: kernel test robot , Stephen Rothwell , Willem de Bruijn , Soheil Hassas Yeganeh , LKML , "lkp@01.org" , "David S. Miller" , ying.huang@intel.com Subject: Re: [LKP] [tcp] 8b27dae5a2: netperf.Throughput_Mbps -25.7% regression Message-ID: <20190604100735.s2g3tc35ofybimek@shbuild888> References: <20190403063436.GG20952@shao2-debian> <20190530103048.hfld4t4m37jsg4yo@shbuild888> <20190530152314.ise5ycz6sdwfygph@shbuild888> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190530152314.ise5ycz6sdwfygph@shbuild888> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 30, 2019 at 11:23:14PM +0800, Feng Tang wrote: > Hi Eric, > > On Thu, May 30, 2019 at 05:21:40AM -0700, Eric Dumazet wrote: > > On Thu, May 30, 2019 at 3:31 AM Feng Tang wrote: > > > > > > On Wed, Apr 03, 2019 at 02:34:36PM +0800, kernel test robot wrote: > > > > Greeting, > > > > > > > > FYI, we noticed a -25.7% regression of netperf.Throughput_Mbps due to commit: > > > > > > > > > > > > commit: 8b27dae5a2e89a61c46c6dbc76c040c0e6d0ed4c ("tcp: add one skb cache for rx") > > > > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master > > > > > > Hi Eric, > > > > > > Could you help to check this? thanks, > > > > > > > Hmmm... patch is old and had some bugs that have been fixed. > > > > What numbers do you have with more recent kernels ? > > > I just run the test with 5.2-rc2, and the regression is still there. Hi Eric, Any hint on this? From the perf data, the spinlock contention has an obvious increase: 9.28 +7.6 16.91 perf-profile.calltrace.cycles-pp.native_queued_spin_lock_slowpath._raw_spin_lock.free_one_page.__free_pages_ok.___pskb_trim 18.55 +8.6 27.14 perf-profile.calltrace.cycles-pp.native_queued_spin_lock_slowpath._raw_spin_lock_irqsave.get_page_from_freelist.__alloc_pages_nodemask.skb_page_frag_refill And for commit 8b27dae5a2 ("tcp: add one skb cache for rx"), IIUC, it is not a real cache like the "tx skb cache" patch, and kind of a delayed freeing. Thanks, Feng