Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2452399ybz; Sun, 26 Apr 2020 19:54:32 -0700 (PDT) X-Google-Smtp-Source: APiQypINdqLqO/Mx2KA+zswvp6QOzYj961+/H81L7Qtq+91GSNuWoVXMSIjjqxSYdMmV+rZYfYKH X-Received: by 2002:a50:ed8f:: with SMTP id h15mr17372678edr.331.1587956071838; Sun, 26 Apr 2020 19:54:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587956071; cv=none; d=google.com; s=arc-20160816; b=Q7zapmWocn7oQxpk4D38kicLc5IjepSClahqu9mjnaB73crd+XDYHhWBE3yprySV4s p20oyp5TpXiOrJU7WdrXSUcG/PfOEBBtbg+vvsUereL7NrFs8Kom2w5GozCmjHJovD/r dIrf6eJ3MnrXWQsKknX1pie2QLD4tI0+lBgPZfc4mNayzsIYCgK50qNT5EQ5Z9XyRYR4 88fzzoVZqdctYL8xccGOBfYH5tpLjTZvg2HeevNrP6h3ZCltABJT9ZHNoBfa1Sj8lIro YsUzU+sQHl33hQ2VUEE+AJ89TgFK5Gyt+qc3w40/pprh98bDfm1QUTKUHX0e/AUkSXpn xPVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6areO0hRZKPHCG/vIEUys65Eg1IGVoIsPcw+jm2s1Eo=; b=AqlkhCuG08Vqtx9vL828iNo2SDA7D3Qz2fFBjvA2ljwBwVLgfxWD8jxPS9Lgauid3t aXuOzrDw8mQRFmBNcoGboVzi6q94D++B2MNJVQ3jnwU8qIErZx98a8czyr7Ke+BCZ7HP vflhgo4ggTyfNhXnvgEjNavHl/WOlHwLwrDjFZfmLjRHppDk5MGZngS4tXmEG5VYHBrQ yL569xonqFQUEdDyzmKayAiqRpPK5NCv0WdYiSkKD4dFC0d0bM2tX3xG+vi7Sd1fTpsj uKR6bcnT7ArnfuRg6vuzQGZrM3nLh1GPqenBaK3RGLUJ/yaDjgy+OScGGYxqke7uDpFb bacQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@qnap.com header.s=google header.b=C3QNF5GR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=qnap.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p21si7029420eja.160.2020.04.26.19.53.55; Sun, 26 Apr 2020 19:54:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@qnap.com header.s=google header.b=C3QNF5GR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=qnap.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726378AbgD0Ctw (ORCPT + 99 others); Sun, 26 Apr 2020 22:49:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725911AbgD0Ctw (ORCPT ); Sun, 26 Apr 2020 22:49:52 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13738C061A0F for ; Sun, 26 Apr 2020 19:49:51 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id k12so13181500qtm.4 for ; Sun, 26 Apr 2020 19:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qnap.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6areO0hRZKPHCG/vIEUys65Eg1IGVoIsPcw+jm2s1Eo=; b=C3QNF5GRtCMBC9Mlzcyc0ZPVn65I5g4rtLpBV+Fw5bTSS99nrnEakAyvu9IHv4v3SB agUXhz9plbouXJ1p25TCAhkKfrSc2Yf+WTXtE8juiZuYDzyUOfY/VrvFf6gouGusuGJq OkG4fNCI+X1sqND0HAfLNDTwZtOGYSOJvvchU= 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:content-transfer-encoding; bh=6areO0hRZKPHCG/vIEUys65Eg1IGVoIsPcw+jm2s1Eo=; b=DQLdr/dExQy8iV8N2s/nwL5ZU39b3fIv+KTHol6WWTmKOEgFAOhmS5vZlRq6Azpdom 7Drn80WCUS9+SdQnGWMsa9W9vTHsoBHpv6X7LgBGBwryuRVY2beSHKCEgTLeaC7tPqkW cspS5I3HZ5IHGkWEGuuD+jiSh31WhYDW9h1BsMclrZ8GGm7Vbc9zUGm5+rWgS4mNjdCa uTYGwLrkzKayNeJAOGuzER3HD7GSRFfJtKnrtqc+KKR7yJcukthFk1d49JWqigWR2FkA 1k8uJloVKg601anBk8JlolF6T0+OeenzfahtoaYX8L65hC8kIeISpAO3U+xw8Ojl81bR ZraA== X-Gm-Message-State: AGi0PuZKAwUuTd/vzMhF+sqti4odgHa7ysZwxfhHcOUFJ6KWsfCELeti OiC02MxMYZgzgHeGt6FfYAaORB3x8caqzg8I3kkqng== X-Received: by 2002:ac8:4650:: with SMTP id f16mr20992760qto.168.1587955789812; Sun, 26 Apr 2020 19:49:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jones Syue Date: Mon, 27 Apr 2020 10:49:37 +0800 Message-ID: Subject: Re: [PATCH] cifs: improve read performance for page size 64KB & cache=strict & vers=2.1+ To: linux-cifs Cc: Pavel Shilovsky , Steve French , Samba Technical , Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > And if anyone figures out how to configure an x86_64 Linux to use > > PAGE_SIZE of 64K or larger let me know... > I am using physical platform with arm cpu and aarch64 toolchain, > perhaps try qemu-system-aarch64 later. For reference using qemu-system-aarch64 + linux-5.6.4 + 64KB page to test cifs read, this patch can improve cifs read performance: with patch: read throughput 39 MB/s, SMB read IO size 4MB / # dd if=3D/mnt/cifs/1G.img of=3D/dev/null bs=3D4M count=3D256 256+0 records in 256+0 records out 1073741824 bytes (1.0GB) copied, 25.982352 seconds, 39.4MB/s [~] # strace -p 23934 sendfile(38, 32, [297795584] =3D> [301989888], 4194304) =3D 4194304 without patch: read throughput 18 MB/s, SMB read IO size 16KB / # dd if=3D/mnt/cifs/1G.img of=3D/dev/null bs=3D4M count=3D256G 256+0 records in 256+0 records out 1073741824 bytes (1.0GB) copied, 54.367686 seconds, 18.8MB/s [~] <0> strace -p 15786 sendfile(38, 32, [452984832] =3D> [453001216], 16384) =3D 16384 This link is a easy way to compile aarch64 linux kernel with page size 64KB , a simple rootfs with busybox, and run it on qemu-system-aarch64: https://docs.google.com/document/d/1NSVd-dib_asugCZHmZgohLZXHxV25ftzYtUDSpp= Y3hA/edit?usp=3Dsharing -- Regards, Jones Syue | =E8=96=9B=E6=87=B7=E5=AE=97 QNAP Systems, Inc.