Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1043266ybl; Wed, 4 Dec 2019 15:47:12 -0800 (PST) X-Google-Smtp-Source: APXvYqy2xgP6eswnXpE50wLYR5GaVIqdjJ9nE5GaHiC7Cig6kQLVz3f6T1d50F+ebdFQL+CvuZLG X-Received: by 2002:aca:3755:: with SMTP id e82mr5147703oia.19.1575503232177; Wed, 04 Dec 2019 15:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575503232; cv=none; d=google.com; s=arc-20160816; b=ElWjvnN8o8fhi1z96Xl3d+cVux6jR1Z73Zu1C8VCPgHFxhdlOIWqcog5k0UUAWhOa0 oNDPQWNhn9LWpE/HdAqesUPEDUW5LVH3WCcDRT2hVah0ew7OfayTwxYnySF0+87c3Qil W7/BYdK11rp7tSoC2ITZ8diLI4ZvMN3SwrLm5SQ8GwkZtZxXCxQGjQTAx7TnPuv+fbu4 Wz2M2x3rojymouR5/2MMg+UTK3UwOdZ5+VNcGpuivc3VAraZ9HdcLe/NmZ7VygWbqOB6 I9AbDOBbDcHHuUW2SMUwQN7qDjADJ+VQvhfg8ZP8WSYF4tScHnLz1s5k1FLLbNFOo71I P4kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LyGjF/rkwWS2ExVqCvEb3Z2JEo92ZJuKNi25eoJBxHc=; b=EvSpiVSAIjOdjQbqdIMxxs9hTtupN1pBW1zBQr7cJmM+gSYhNAEJJq+Z5rFTe2PLuU qiGtch8CbSy2fcPwIKuS7Ur9t+yz7ajwd98+mgyI8UjN6QWdII1cfqQnkiQGVXByuo/X 7kPgmNdz2Gxg48PUEYXfZ/xEGt4J+Xp+ZKGHv9Z7gtCbte3bL0LVg/1+hvstaMPeLeNc TkImAzIItsg9vmYMl8bUsmNRN+/DC91bygTzyfLmSMlqY+KEYLYSdG03kndpTzjGCPtX ERfTJBfGBffcIbLtAaCNC5Ax+aaFbRD0DmwH7WY7xp/fnRYKWgQyq0utdSHwLALs8c1h 5y1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=xAwbsMb9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l23si3764393oie.271.2019.12.04.15.46.59; Wed, 04 Dec 2019 15:47:12 -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; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=xAwbsMb9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728436AbfLDXqP (ORCPT + 99 others); Wed, 4 Dec 2019 18:46:15 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43160 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728053AbfLDXqO (ORCPT ); Wed, 4 Dec 2019 18:46:14 -0500 Received: by mail-wr1-f68.google.com with SMTP id d16so1243394wre.10 for ; Wed, 04 Dec 2019 15:46:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LyGjF/rkwWS2ExVqCvEb3Z2JEo92ZJuKNi25eoJBxHc=; b=xAwbsMb9aGoP+r+OnPfZiWzavaYkWeAUkslEMZ5t8lulO827ECG9YLZf/4V0X+QTEq +fcAR+I+bFz4gn4MgmF6Yjcmar85AxQ34GcwUGYxKDUcJtIJSkrmVANDtIOAhqkp8oMD Umbje+bIHdpMhEoASH2A34tyT6xaMolpvsghDsXwE1Sxj2C4j9hwo8wYDws8fYkzbgt/ Wsj9pB2I7lqJgzBJfRp7L+wIx5B6zNkNVMIUU8tE97/hdKBFnWBBw4VYnojJ011/3+P0 wG+y3keXvprViGb2tt+aM5E/QqCDAxI/NachcjtP/whXFNEH+qBqGeZHsTbvUUdl5Aq2 cxjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LyGjF/rkwWS2ExVqCvEb3Z2JEo92ZJuKNi25eoJBxHc=; b=WZXNrBxB36u023kP9W0UC7RrspGdrp3c4UVYYe/VaEUiGtJZzIiRcSxR5+FFF/gIo7 EP+8VqkWsDImev+9JoK3gLw68sQi9uIIjkwpZEarvPhwRT1FO4md9AgrIa6dJSsfED1J WjiLqR2NOSoxQKTSMl2fK06bSU3ZPy+y9KY0T0BGuwuhMscp1L53P14VhUCDAQsVMnxl ghu1rQoPplEsnOpdKJ5W5cdygEHl+X3TAAkozdfaS8Y269FjeZK38g0j5BHlAOWmln6/ JhT7OXY3+k+0DdFzk7JWvCzulTL72aF5saCAOnDiU1MVYl0jKF0CcYVneJgYXiWp92Hd s0ZA== X-Gm-Message-State: APjAAAUyREYRA6/g/aRduNOt7n8voInQw4hBuFDOUUCimYyzaq9GCrP/ Pzuq68wf0aeGY7wf27anZJamumVpgsCTsat8pYUkyw== X-Received: by 2002:adf:d850:: with SMTP id k16mr6450667wrl.96.1575503172158; Wed, 04 Dec 2019 15:46:12 -0800 (PST) MIME-Version: 1.0 References: <9044bad02aa6553cdb2523294500b50fccf3fd2a.camel@wdc.com> <81530734312456aab8b9625d7e9bb071c43db1c5.camel@wdc.com> In-Reply-To: <81530734312456aab8b9625d7e9bb071c43db1c5.camel@wdc.com> From: Anup Patel Date: Thu, 5 Dec 2019 05:16:00 +0530 Message-ID: Subject: Re: [GIT PULL] Second set of RISC-V updates for v5.5-rc1 To: Alistair Francis Cc: "paul.walmsley@sifive.com" , "torvalds@linux-foundation.org" , "linux-riscv@lists.infradead.org" , Atish Patra , "linux-kernel@vger.kernel.org" , "hch@lst.de" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 5, 2019 at 1:20 AM Alistair Francis wrote: > > On Wed, 2019-12-04 at 11:38 -0800, Paul Walmsley wrote: > > Alistair, Anup, > > > > On Wed, 4 Dec 2019, Alistair Francis wrote: > > > > > On Wed, 2019-12-04 at 18:22 +0530, Anup Patel wrote: > > > > > > > I had commented on your patch but my comments are still > > > > not addressed. > > > > > > > > Various debug options enabled by this patch have performance > > > > impact. Instead of enabling these debug options in primary > > > > defconfigs, I suggest to have separate debug defconfigs with > > > > these options enabled. > > > > > > +1 > > > > > > OE uses the defconfig (as I'm sure other distros do) and slowing > > > down > > > users seems like a bad idea. > > > > While I respect your points of view, our defconfigs are oriented > > towards > > kernel developers. This is particularly important when right now the > > only > > That is just not what happens though. > > It is too much to expect every distro to maintain a defconfig for RISC- > V. There are constantly new features that need to be enabled/disabled > in the configs and it isn't always clear to outsiders. Which is why we > currently use the defconfig as a base and apply extra features that > distro want on top. > > Expecting every distro to have a kernel developers level of knowledge > about configuring Kconfigs is just unrealistic. > > > RISC-V hardware on the market are test chips. Our expectation is > > that > > Treating RISC-V as a test architecture seems like a good way to make > sure that is all it ever is. > > > distros and benchmarkers will create their own Kconfigs for their > > needs. > > Like I said, that isn't true. After this patch is applied (and it makes > it to a release) all OE users will now have a slower RISC-V kernel. > This also applies to buildroot and probably other distos. > > Now image some company wants to investigate using a RISC-V chip for > their embedded project. They use OE/buildroot to build a quick test > setup and boot Linux. It now runs significantly slower then some other > architecture and they don't choose RISC-V. > > Slowing down all users to help kernel developers debug seems like the > wrong direction. Kernel developers should know enough to be able to > turn on the required configs, why does this need to be the default? I quickly tried hackbench on SiFive Unleashed board with latest Linus tree master branch (having your patch) and I am seeing 12% slowdown. I am sure if I try more heavier benchmarks (such as stress-ng) then the slowdown will be even more. Here are the detailed numbers: Command: ./hackbench 32 Number of Tasks: 32*40 (== 1280) Average Time (without debug options): 3.10525 Average Time (with debug options): 3.471 (11.78% slower) Command: ./hackbench 64 Number of Tasks: 64*40 (== 2560) Average Time (without debug options): 6.3015 Average Time (with debug options): 7.05875 (12.017% slower) Command: ./hackbench 128 Number of Tasks: 128*40 (== 5120) Average Time (without debug options): 12.6275 Average Time (with debug options): 14.1455 (12.0214% slower) It is this performance impact due to which other architectures (such as x86 and ARM64) don't have these debug options enabled in their defconfigs. I will send a patch to move these debug options to separate debug defconfigs so that people have a way to build a debug kernel. Regards, Anup