Received: by 10.213.65.68 with SMTP id h4csp707986imn; Tue, 20 Mar 2018 13:18:45 -0700 (PDT) X-Google-Smtp-Source: AG47ELvopTyWbLriVMEVvTbOTwGRf900gwMUiIB1X5oS7yUxyGHkya/TdV7Inbsq6Wk6vuWCDEJQ X-Received: by 2002:a17:902:7201:: with SMTP id ba1-v6mr6062116plb.0.1521577125570; Tue, 20 Mar 2018 13:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521577125; cv=none; d=google.com; s=arc-20160816; b=xiRJ3gGL1dMhqD1MoQtNx5PNSQgcTuKeql0giP8yE6sQqiuA85F6LpohDSb6e1z9j+ kBy4tnuMSvqFjrSOWYrz7T6BYWPrNEhpg41IzAeQOn82XO6cwplzi/3TJRvZQRJRz8po 8qfkDcRltLy6DgIc185wkJB4ci/KH+9/kMyBA2aivvuBwJk+GJO5qX5xHOnwfm5KsMb8 Eqa6YsbiCopxJudOpsuyutiW+GRAxZAS4jGwKdxifqyrfengrRN1XZZmeDMm9lQ63WRf jHOtsf1vHgMuPQHwnzTY7KRUwPVceG13034nWeeucDfGpCFDCqGKCOha8jOx6tcBtkCe /oyA== 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:arc-authentication-results; bh=B6RwOF1O1GvwZxBxx4aKn10fdudaOwfzwSFl60ngLek=; b=JzUZxeFDzEmLJJzZsbg3xHxpxU7uo3a7Rc5TAP/rQ+S7U9Swgf5lM8LpVF/mQYAuwN amky6SZjdQeO6bqfEOoJJPmusT97KBgS/PPh0ksET9b+HZVSz9GZ751Yf/yLp+K6FVjY WAFpeOygudswJNojvEXLFhDwpvv4Ca/efblXL7xVjDBrOtz2Hpf9FPR2qEVSwzsaV5iU qiaOlaX3Pe5EeCQClbHf8/AwxkXfyGoDwB1Tt4N3Qvy3RSJOjQij+jurnkzT6h7jzXYp lgkty2vZwRfK1lLlzwETxQNEd4n3Q5a5TRUrD919D6heMTiGIPe8NVL3lK3ab/2xmcNE LPWg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5-v6si2355481plk.139.2018.03.20.13.18.30; Tue, 20 Mar 2018 13:18:45 -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; 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 S1751505AbeCTURh (ORCPT + 99 others); Tue, 20 Mar 2018 16:17:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:59823 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396AbeCTURe (ORCPT ); Tue, 20 Mar 2018 16:17:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E1DFBAFC1; Tue, 20 Mar 2018 20:17:32 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id D3AAB1E04D9; Tue, 20 Mar 2018 21:17:30 +0100 (CET) Date: Tue, 20 Mar 2018 21:17:30 +0100 From: Jan Kara To: Wei Wang Cc: gregkh@linuxfoundation.org, Todd Poynor , Wei Wang , Andrew Morton , Dan Williams , Michal Hocko , "Kirill A. Shutemov" , Jan Kara , =?iso-8859-1?B?Suly9G1l?= Glisse , 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, mgorman@suse.de Subject: Re: [PATCH] mm: add config for readahead window Message-ID: <20180320201730.xvvpc4gptqrn47ba@quack2.suse.cz> References: <20180316182512.118361-1-wvw@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 16-03-18 18:49:08, Wei Wang wrote: > Android devices boot time benefits by bigger readahead window setting from > init. This patch will make readahead window a config so early boot can benefit > by it as well. > > > On Fri, Mar 16, 2018 at 11:25 AM Wei Wang wrote: > > From: Wei Wang > > 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. > > Signed-off-by: Wei Wang Just for record we had VM_MAX_READAHEAD changed to 512 in all SUSE distributions for quite some years. But just recently we were re-evaluating it and we are finding less and less reasons to keep this setting to 512 - with newer storage benefits become marginal and the overhead of reading more unnecessarily in some other corner cases is visible as well (I still have somewhere reports from 0-day robot that complained to me about two performance regressions coming from increased default readahead window). So for your specific case it might make sense to increase the window when you have a control of both the HW and the kernel but in general I tend to currently agree with Linus & co. that the current default is probably fine. I don't have a strong opinion on whether your ~90ms of boot time are good enough justification for a kernel config option... Honza -- Jan Kara SUSE Labs, CR