Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2111085ybc; Wed, 13 Nov 2019 09:08:40 -0800 (PST) X-Google-Smtp-Source: APXvYqx1T+Wx+hJ6rqMLuB5PQQh1vJVPMVRAm4wLCFUlRskd5SAGDca9TKg0T+Bq9+zIjEer49Ae X-Received: by 2002:aa7:c7c1:: with SMTP id o1mr4832487eds.123.1573664920073; Wed, 13 Nov 2019 09:08:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573664920; cv=none; d=google.com; s=arc-20160816; b=dEc+uxpIitTONp9D6m8wC3pKe/KBa90hsfycG/JgPHWyxGAAFk4NjKZVcj9vrocXr+ uMfR0PgZp7mrlRZIprQPCw3Z9GhjxQGrpFJLnx9dy3hmkIHHPUcuPhnJXYnpnYZVhDey JS0jxLSBvDyRjA9llblh4a3AMsz+hJ6/eVtEAbceQB4HboqgEUq5JUuK6cL2gmZ1nlLs OIYX7U2dLckCuzjwkNweBmFZeEitf5ST3atJRkPyPWx7yz27WPkYYXJ8zwZz9N4VL3HK 7ZyWr4IhBRD8TQLYnIzBDBgCVoZO5cxeKC6aTBaEshO1TscJB8XcGYBK2SOYCp5as5SX CI+w== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=6hfGGGDewgP0/l0Gbd5vBFdgn7uq1He07VgVIn11pFA=; b=zDpbaP5lYvkRqoq9YHMRaXcj585UAydDtVyRqL75+lOabF1A00NhbztrqBPeNTC1VC 2gzY8CJLEo3eSyGZt8exbjwE2ZMNSr4Otqvax2v1FNS3iP68EH96qHFDj202O9W5xnIm OZGS2HCMBvM+tTSY4h4Sac7+CylUi2YrU9Tnr+/QFzZ2SBavFZw1A2qlxo7qYGEm4WRP CMh+bzc9pDSXsTKkm3TFFQNnqpVAkvsa8L5o6GtwJWEpxcKKxywyRJLhO+jdiwQW5WqT 9xS+VnvTw5TfX8yuzDnkZrEADQjmmrX7szJYVgCx7yO5KDs7M1dIN9wt706HT9UqpiRY Prbw== 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 h23si1816395ede.355.2019.11.13.09.08.14; Wed, 13 Nov 2019 09:08:40 -0800 (PST) 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 S1728269AbfKMQMY (ORCPT + 99 others); Wed, 13 Nov 2019 11:12:24 -0500 Received: from mga07.intel.com ([134.134.136.100]:56589 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbfKMQMX (ORCPT ); Wed, 13 Nov 2019 11:12:23 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2019 08:12:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,300,1569308400"; d="scan'208";a="229792339" Received: from shbuild999.sh.intel.com (HELO localhost) ([10.239.147.113]) by fmsmga004.fm.intel.com with ESMTP; 13 Nov 2019 08:12:20 -0800 Date: Thu, 14 Nov 2019 00:12:20 +0800 From: Feng Tang To: Eric Dumazet Cc: kernel test robot , "David S. Miller" , Willy Tarreau , Yue Cao , LKML , Linus Torvalds , lkp@lists.01.org Subject: Re: [LKP] [net] 19f92a030c: apachebench.requests_per_second -37.9% regression Message-ID: <20191113161220.GE65640@shbuild999.sh.intel.com> References: <20191108083513.GB29418@shao2-debian> <20191113103501.GD65640@shbuild999.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eric, On Wed, Nov 13, 2019 at 06:33:44AM -0800, Eric Dumazet wrote: > On Wed, Nov 13, 2019 at 2:35 AM Feng Tang wrote: > > > > Hi Eric, > > > > On Fri, Nov 08, 2019 at 04:35:13PM +0800, kernel test robot wrote: > > > Greeting, > > > > > > FYI, we noticed a -37.9% regression of apachebench.requests_per_second due to commit: > > > > > > commit: 19f92a030ca6d772ab44b22ee6a01378a8cb32d4 ("net: increase SOMAXCONN to 4096") > > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > > > Any thought on this? The test is actually: > > > > sysctl -w net.ipv4.tcp_syncookies=0 > > > I have no plan trying to understand why anyone would disable syncookies . > This is a non starter really, since this makes a server vulnerable to > a trivial DOS attack. > Thanks for the prompt response. This sysctl change was added to work around one old error when running the apachebench. The error was "apr_socket_recv: Connection reset by peer (104)" I just removed the sysctl setting of "ipv4.tcp_synccookies" and re-run the same benchmark in 0day, the regression is still there. Thanks, Feng > > Since the test changes a sysctl, you also can change other sysctls if > you really need to show a ' number of transactions' for a particular > benchmark. > > The change on SOMAXCONN was driven by a security issue, and security > comes first. > > > > enable_apache_mod auth_basic authn_core authn_file authz_core authz_host authz_user access_compat > > systemctl restart apache2 > > ab -k -q -t 300 -n 1000000 -c 4000 127.0.0.1/ > > > > And some info about apachebench result is: > > > > w/o patch: > > > > Connection Times (ms) > > min mean[+/-sd] median max > > Connect: 0 0 19.5 0 7145 > > Processing: 0 4 110.0 3 21647 > > Waiting: 0 2 92.4 1 21646 > > Total: 0 4 121.1 3 24762 > > > > w/ patch: > > > > Connection Times (ms) > > min mean[+/-sd] median max > > Connect: 0 0 43.2 0 7143 > > Processing: 0 19 640.4 3 38708 > > Waiting: 0 24 796.5 1 38708 > > Total: 0 19 657.5 3 39725 > > > > > > Thanks, > > Feng > > > > > > > > in testcase: apachebench > > > on test machine: 16 threads Intel(R) Xeon(R) CPU D-1541 @ 2.10GHz with 48G memory > > > with following parameters: > > > > > > runtime: 300s > > > concurrency: 4000 > > > cluster: cs-localhost > > > cpufreq_governor: performance > > > ucode: 0x7000019 > > > > > > test-description: apachebench is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. > > > test-url: https://httpd.apache.org/docs/2.4/programs/ab.html > > > > > > In addition to that, the commit also has significant impact on the following tests: > > > > > > +------------------+------------------------------------------------------------------+ > > > | testcase: change | apachebench: apachebench.requests_per_second -37.5% regression | > > > | test machine | 16 threads Intel(R) Xeon(R) CPU D-1541 @ 2.10GHz with 48G memory | > > > | test parameters | cluster=cs-localhost | > > > | | concurrency=8000 | > > > | | cpufreq_governor=performance | > > > | | runtime=300s | > > > | | ucode=0x7000019 | > > > +------------------+------------------------------------------------------------------+ > > > > > > > > > If you fix the issue, kindly add following tag > > > Reported-by: kernel test robot > > > > > > > > > Details are as below: > > > --------------------------------------------------------------------------------------------------> > > > > > > > > > To reproduce: > > > > > > git clone https://github.com/intel/lkp-tests.git > > > cd lkp-tests > > > bin/lkp install job.yaml # job file is attached in this email > > > bin/lkp run job.yaml > > > > > > ========================================================================================= > > > cluster/compiler/concurrency/cpufreq_governor/kconfig/rootfs/runtime/tbox_group/testcase/ucode: > > > cs-localhost/gcc-7/4000/performance/x86_64-rhel-7.6/debian-x86_64-2019-09-23.cgz/300s/lkp-bdw-de1/apachebench/0x7000019 > > > > > > commit: > > > 6d6f0383b6 ("netdevsim: Fix use-after-free during device dismantle") > > > 19f92a030c ("net: increase SOMAXCONN to 4096") > > > > > > 6d6f0383b697f004 19f92a030ca6d772ab44b22ee6a > > > ---------------- --------------------------- > > > %stddev %change %stddev > > > \ | \ > > > 22640 ± 4% +71.1% 38734 apachebench.connection_time.processing.max > > > 24701 +60.9% 39743 apachebench.connection_time.total.max > > > 22639 ± 4% +71.1% 38734 apachebench.connection_time.waiting.max > > > 24701 +15042.0 39743 apachebench.max_latency.100% > > > 40454 -37.9% 25128 apachebench.requests_per_second > > > 25.69 +58.8% 40.79 apachebench.time.elapsed_time > > > 25.69 +58.8% 40.79 apachebench.time.elapsed_time.max > > > 79.00 -37.0% 49.75 apachebench.time.percent_of_cpu_this_job_got > > > 98.88 +61.0% 159.18 apachebench.time_per_request > > > 434631 -37.9% 269889 apachebench.transfer_rate > > > 1.5e+08 ± 18% +109.5% 3.141e+08 ± 27% cpuidle.C3.time > > > 578957 ± 7% +64.1% 949934 ± 12% cpuidle.C3.usage > > > 79085 ± 4% +24.8% 98720 meminfo.AnonHugePages > > > 41176 +14.2% 47013 meminfo.PageTables > > > 69429 -34.9% 45222 meminfo.max_used_kB > > > 63.48 +12.7 76.15 mpstat.cpu.all.idle% > > > 2.42 ± 2% -0.9 1.56 mpstat.cpu.all.soft% > > > 15.30 -5.2 10.13 mpstat.cpu.all.sys% > > > 18.80 -6.6 12.16 mpstat.cpu.all.usr% > > > 65.00 +17.7% 76.50 vmstat.cpu.id > > > 17.00 -35.3% 11.00 vmstat.cpu.us > > > 7.00 ± 24% -50.0% 3.50 ± 14% vmstat.procs.r > > > 62957 -33.3% 42012 vmstat.system.cs > > > 33174 -1.4% 32693 vmstat.system.in