Received: by 10.213.65.68 with SMTP id h4csp2978imn; Fri, 16 Mar 2018 15:14:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELvU4OFhB3MLgesl0Zbo0SsrHis7DU0OYh5etJA1Btb1xo4kWU46OpAQiwoaWwVG/7lGsOpw X-Received: by 10.167.129.195 with SMTP id c3mr2960253pfn.14.1521238488434; Fri, 16 Mar 2018 15:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521238488; cv=none; d=google.com; s=arc-20160816; b=Vig58WCXYUEEaQlpWqj0tuIJAfKhe0/S+Gr1+akJK0pH6q8y3xXjKWr1xjlhQQiEfK 17VYZYxaZGpF3VmYWHd3i8OleARmZvKIdj+xGjhhoFFL7rffINGzA12e4CfRhKyHSrMN 5g3Lo7M4+PT76iK/Hv6xKi4cVKJuXrTmx1KkmLbBTly6FVPeZWY+GUPmaIaohxLz8NQh 6+jJJ5uvgzELWsV6NzsJB23/g6Hths5qB8O/JTilcm5pfL9jDPZBecy0GqC1Mlc2ooli Jzb16GCI9cz84F9k/Yj+iL8ctv8ts2+j5fY0IiDfVxkTRcojh17RNCKYt3v+F1BDo7Qi jBDw== 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 :arc-authentication-results; bh=WF3KUwhuLYqK8laI1KhKhl29ZLrYgbhSqZwWq7o5Au0=; b=FiY61YNRLiRI21zpNfumng9HZugTwaaa/AAYQaDegV/JgDaoYOxQH0fTCmsZDtmA+r fA8EG3Wnk9vWaYufC3Pp0crY4QHpxgno+DI7k1IHdnz5yPVDSpx5GG8CcRmIzi6gOo+x V1V1dmDDB8kekhGvJBwT/NiHQAqIXAveBVdSsfyzjotC3WPbM9idVSd9UDFx3Df7Vj5c 9DNlKINcZPiPGl58f/M4ZZ6xbVW0hPndEaA69DCGXQP32bVwVPV/0aXQyAEp/eITkIP4 y5HfrhTtZH/fmgnONlJTnuWAaEziUpGDc7sauQ64IMttaUK6SZ4m/AVamMzy2Qvf6YUe dkRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WELoSDSU; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a68si4818143pfk.35.2018.03.16.15.14.34; Fri, 16 Mar 2018 15:14:48 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=WELoSDSU; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752409AbeCPWNd (ORCPT + 99 others); Fri, 16 Mar 2018 18:13:33 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:53675 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319AbeCPWNb (ORCPT ); Fri, 16 Mar 2018 18:13:31 -0400 Received: by mail-wm0-f66.google.com with SMTP id e194so5666254wmd.3 for ; Fri, 16 Mar 2018 15:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WF3KUwhuLYqK8laI1KhKhl29ZLrYgbhSqZwWq7o5Au0=; b=WELoSDSUSHfA3K0XinhlI8ms1w8DVNNtFManDbERyrtinUKiilu78LCCJA9GyptuII QA+5LjIbuBIKQ0iOup2vaAGfl0xjcU2KQhqWH5HGYNUTb8lpAQ2TmUH2bcXSHa9+Kc3a c8yq7TwgI2hUff8CEv5M0m7wXAhSMfwxndd5itESZx7g+sDZLwFnChpewhAWHUv/Nk2x 0NtOqDIFUVRbVKcay2HmsGcR5k/EyqDNbQrtfcZC7LY1AdPnX6hOqVj5fKVBiInwYtFx J4GhZ4r+BS2UgF7Qi7+J6BkI/Qcj5+4RmenG+0LEv9i1FExLjdGzNDyWEAk/q5956pQy H3UA== 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=WF3KUwhuLYqK8laI1KhKhl29ZLrYgbhSqZwWq7o5Au0=; b=BTyaVLhDtrebszS3hPzCWRwQ5JQa28cJLXR49qBC1hZ5EjjUP85PiGFrzyDUIRtKTI 5bvtX5zPJ7UcpKD1szkv/bgc5onzSSJHttmD45RpomX/7Q595qUsXDX9gfCD0fxU7tRy yKle1WNwSYb6pxJKw79ZZR4AF2A9/k2TkY1/vx0n2Xor8uvpv5jENAzjWecNehqUCLbl f1NCQvSbfNg/7t/wnpoKrw/RLV8O2xDVfZ8vA2EgOvM8GHZxfsY43AkBa4012rqN9ngI heDEfFLiduzbGJWF27M3pPKVbDztlQKLUAJqxmUVQSCE+eI03H8ol/YpLvTi7iKkZ+SU 1IKw== X-Gm-Message-State: AElRT7GfkKB9a01kddFcNagN3y8+lTM7WX+mgqV/eDAtZM5cs4JL5SAB yWda+DBw07y3YnTyHR8jpcXnyccPL8mfQik5DumaOA== X-Received: by 10.80.146.180 with SMTP id k49mr4171426eda.110.1521238410149; Fri, 16 Mar 2018 15:13:30 -0700 (PDT) MIME-Version: 1.0 References: <20180316182512.118361-1-wvw@google.com> <20180316143306.dd98055a170497e9535cc176@linux-foundation.org> <20180316145942.9e2d353ed10041fbac42e5a3@linux-foundation.org> In-Reply-To: <20180316145942.9e2d353ed10041fbac42e5a3@linux-foundation.org> From: Wei Wang Date: Fri, 16 Mar 2018 22:13:19 +0000 Message-ID: Subject: Re: [PATCH] mm: add config for readahead window To: Andrew Morton Cc: Wei Wang , gregkh@linuxfoundation.org, Todd Poynor , Dan Williams , Michal Hocko , "Kirill A. Shutemov" , Jan Kara , =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Hugh Dickins , Matthew Wilcox , Ingo Molnar , Sherry Cheung , "Oliver O'Halloran" , Andrey Ryabinin , Huang Ying , Dennis Zhou , Pavel Tatashin , linux-mm@kvack.org, linux-kernel@vger.kernel.org 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 Fri, Mar 16, 2018 at 2:59 PM Andrew Morton wrote: > On Fri, 16 Mar 2018 21:51:48 +0000 Wei Wang wrote: > > On Fri, Mar 16, 2018, 14:33 Andrew Morton wrote: > > > > > On Fri, 16 Mar 2018 11:25:08 -0700 Wei Wang wrote: > > > > > > > Change VM_MAX_READAHEAD value from the default 128KB to a configurable > > > > value. This will allow the readahead window to grow to a maximum size > > > > bigger than 128KB during boot, which could benefit to sequential read > > > > throughput and thus boot performance. > > > > > > You can presently run ioctl(BLKRASET) against the block device? > > > > > > > Yeah we are doing tuning in userland after init. But this is something we > > thought could help in very early stage. > > > "thought" and "could" are rather weak! Some impressive performance > numbers for real-world setups would help such a patch along. ~90ms savings from an Android device compared to setting the window later in userland. I was using 'week' words as I agree with Linus's point - it is all about the storage, so the savings are not universal indeed.