Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5866928imu; Tue, 13 Nov 2018 13:02:28 -0800 (PST) X-Google-Smtp-Source: AJdET5etamG3inyXQnyAvDcLrBEH75gip/XItXJB7VAh1RvaEunoQcwni9KC5iWKh/tHf2td2Un6 X-Received: by 2002:a17:902:7207:: with SMTP id ba7-v6mr6642592plb.79.1542142948770; Tue, 13 Nov 2018 13:02:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542142948; cv=none; d=google.com; s=arc-20160816; b=xyPOntrT9R3MvR5ltB9M+Ry9tLl1XkWySbxrJTM/Jpev2elkPY79t5Sct+gZDrCVC5 /gqQ8qUD28EPQZsj63Lt3utCjv2NzersG8cj7qBVC6mlIlnWIIsqxiYjHrup8Bj5DMBR jXSUb/zpQdG5KmZlkvEL5ih1FUDpg04IijN5dxJQngHyBODXtyulyj8pFBLJB9UegqLm f9zHkHtCbsQDwhjgv+noTd69tX2kTjYWeZQJPCNOZ+V+ta9YarKc2AgFaW0ZeiwB3rQg RpJTAn+p0a0zl31ErKh2IBoXE9mpf4mNnZ6041xKtJqoz9NHuG4cXvuQuIzqbmDB9/0N 0D5g== 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:dkim-signature; bh=3WnkMHSNat4oWUsF9dtHuQz5tPbWd14SxmeYpeNsT2s=; b=SXjYt70sM8RLhNI9nzBh6S1faaYEU0gfBp1Enf3WilWys8jWYoKHdDk3jPpNGPcI2E yeQELJxa2e29X+zia7yUNWYTFiVafBdNecQ0LGiPP6tYkQOVUOQSb4o8sYi90gChhe6+ XcfQbtX+OK2NmkeOHW0B6t46Cc30ruZkh45NABrd/D9ICBLaPB7B7zf7Iksmi8U4+W+C Swdv5eliRs7moSeoTDs7S6getH33FKxYR3IF3T9uJrfgtdmamEJoQ+FG4cNheF88LVJV BB7hR2AxNlZv8N6vYVGMl6jCpN0W/tD8btRXUra+qKR6j8B+TE1yP0kD5we4N6JJ3zLy nASg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=YgGVBir4; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3-v6si4369381pld.106.2018.11.13.13.02.02; Tue, 13 Nov 2018 13:02:28 -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=@cisco.com header.s=iport header.b=YgGVBir4; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726565AbeKNHBZ (ORCPT + 99 others); Wed, 14 Nov 2018 02:01:25 -0500 Received: from alln-iport-6.cisco.com ([173.37.142.93]:39539 "EHLO alln-iport-6.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725748AbeKNHBY (ORCPT ); Wed, 14 Nov 2018 02:01:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3096; q=dns/txt; s=iport; t=1542142888; x=1543352488; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=kyRjHx5mYTu5pImYMjGBwrhVEf1Td1jzhmC2oc7cZjo=; b=YgGVBir4zJXL2GDv4yJIkZw3oQUqnkiXJGOXaz6UFzH5n4Ab1c0iYgCJ fcsZPyxZ1L2dCkuPoXWR7wfrD9yCjFPmwNJ/mb+7uP0+p2FVT+De07vtz Ulli/57o8PZ+5LVNhuD4eMUGGnvY8GvgHVcqS1kqP/Bx7rqyZRpFJKhfu g=; X-IronPort-AV: E=Sophos;i="5.56,229,1539648000"; d="scan'208";a="200773530" Received: from alln-core-11.cisco.com ([173.36.13.133]) by alln-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2018 21:01:27 +0000 Received: from zorba ([10.24.107.234]) by alln-core-11.cisco.com (8.15.2/8.15.2) with ESMTPS id wADL1PXk030277 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 13 Nov 2018 21:01:26 GMT Date: Tue, 13 Nov 2018 13:01:26 -0800 From: Daniel Walker To: David Woodhouse Cc: "Nikunj Kela (nkela)" , Richard Weinberger , "linux-mtd @ lists . infradead . org" , LKML , "xe-linux-external(mailer list)" Subject: Re: [PATCH] jffs2: implement mount option to configure endianness Message-ID: <20181113210126.7cupw5gt3vpnyotq@zorba> References: <591D4732-BC3E-4F85-9277-25E049FFF4BA@cisco.com> <01b82f6eb37b674effc6c8b0fa4a014deb401a85.camel@infradead.org> <897867ec09af82ca76c642b48ad23a7f08838dcf.camel@infradead.org> <20181112214333.lplffcc722hta43v@zorba> <20181112225015.jyuro3z3ygavnvrp@zorba> <20181112234022.r3gyu633ln3bp774@zorba> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-Auto-Response-Suppress: DR, OOF, AutoReply X-Outbound-SMTP-Client: 10.24.107.234, [10.24.107.234] X-Outbound-Node: alln-core-11.cisco.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 12, 2018 at 03:43:37PM -0800, David Woodhouse wrote: > > That can't hurt. We should probably look at the time elapsed before you > can *write* to it (when the background scan and crc checking is > complete) rather than just reading. > Here are more data points. This is again with 100meg mtdram size. I made a script which does the mount and umount, then perf ran that 100 times over and averaged the results. Baseline, Performance counter stats for 'bash test.sh' (100 runs): 111.414863 task-clock # 0.637 CPUs utilized ( +- 0.07% ) 41 context-switches # 0.371 K/sec ( +- 0.50% ) 3 cpu-migrations # 0.023 K/sec ( +- 2.44% ) 405 page-faults # 0.004 M/sec ( +- 0.05% ) 147235193 cycles # 1.322 GHz ( +- 0.47% ) [53.76%] 53688988 stalled-cycles-frontend # 36.46% frontend cycles idle ( +- 2.59% ) [45.13%] 21691444 stalled-cycles-backend # 14.73% backend cycles idle ( +- 5.81% ) [68.50%] 138433181 instructions # 0.94 insns per cycle # 0.39 stalled cycles per insn ( +- 0.88% ) [88.11%] 25882823 branches # 232.310 M/sec ( +- 1.42% ) [85.33%] 644457 branch-misses # 2.49% of all branches ( +- 5.19% ) [74.30%] 0.175012976 seconds time elapsed ( +- 0.58% ) With Nikunj's patch, Performance counter stats for 'bash test.sh' (100 runs): 110.436715 task-clock # 0.625 CPUs utilized ( +- 0.07% ) 41 context-switches # 0.373 K/sec ( +- 0.58% ) 3 cpu-migrations # 0.024 K/sec ( +- 2.18% ) 405 page-faults # 0.004 M/sec ( +- 0.05% ) 145964351 cycles # 1.322 GHz ( +- 0.49% ) [53.68%] 47504491 stalled-cycles-frontend # 32.55% frontend cycles idle ( +- 2.96% ) [55.47%] 20481138 stalled-cycles-backend # 14.03% backend cycles idle ( +- 6.18% ) [71.19%] 134947645 instructions # 0.92 insns per cycle # 0.35 stalled cycles per insn ( +- 1.18% ) [82.19%] 25343960 branches # 229.489 M/sec ( +- 1.65% ) [82.50%] 693642 branch-misses # 2.74% of all branches ( +- 5.29% ) [70.06%] 0.176606850 seconds time elapsed ( +- 0.50% ) This seems to show an 0.91% speed elapsed time difference. Most of the rest of it seems very similar. Daniel