Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp334825pxu; Fri, 23 Oct 2020 01:51:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0qaa44h0IxgbJ68UPh5073nXeVCWkZ9AUrLe9hk7ZiZEifdNkTcmvDkyedjPMpCk+ixtb X-Received: by 2002:aa7:d65a:: with SMTP id v26mr1226113edr.82.1603443079512; Fri, 23 Oct 2020 01:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603443079; cv=none; d=google.com; s=arc-20160816; b=FiRT58RaN9YKGNnu4XBxhmuhSJ2b4a+lteJj4LBWrk0wP+jRbsNKJVkq9DEIt58/MZ hI/YAVDj7VSSFKKJb38Rcjt3sbZ/e+OXBhkJRD3B9+TkZk2OBDgfoaDw9C64n31qwJ2p bPlFyF9CjJR4vU//MNb+t3I9/aeYDbUS7P4rLjaOTH0SHImvIApxyqjxNKoNcpHSWx5T kY4PZ/YusCnejx1BYsC9DFu/g3ipSJbTrCP8935ZNYbhzLl+x0WR+DJ3fDQfcsEAZqDE MaW6mWX3hx83SS2tCbsNMXLRgvMg4t10Y5IbNWH5kSccXeQLsSyWJEs7GVDmaaogO1e/ 7l3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oQP6q9oOL6uHfyK9NBVdOP6qfH69+lrFj32xF4uY3+M=; b=Jik3CUBUM/D4VC7Ujk34p1SecuwwgRM/gKbndQhU/6QAx4HInS7R8jWe8Y6kheTgmv GWSUcF9OotfR0SZ3gf24rshtEW72l7MZ+NPH+V9WCIFsz0qazw8fqQBhkhr8cFFdMtE4 a3YxmiLUrLpru++a4WtvnOVTSoyUXMO6RxlXFkJ17RRkYjokJXFw1y0a6uipyohcfyov JmR35rtJEnqK6GiZM0Tn2/Q/WoxdtqNywMgeKuzLYGCiSQ+7RboKXs9n+PlW/7zjAL6U sx6aXxgnHlgpFMe2ySarxB4LxjvagfRINtsuy64q6CBgpmCfNauFyv69UHESiuV1RRY4 SY4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="exr/3/1d"; 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=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay1si371506edb.3.2020.10.23.01.50.56; Fri, 23 Oct 2020 01:51:19 -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=@suse.com header.s=susede1 header.b="exr/3/1d"; 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=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S460761AbgJWIt6 (ORCPT + 99 others); Fri, 23 Oct 2020 04:49:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:57998 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S460744AbgJWIt6 (ORCPT ); Fri, 23 Oct 2020 04:49:58 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1603442997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oQP6q9oOL6uHfyK9NBVdOP6qfH69+lrFj32xF4uY3+M=; b=exr/3/1dyO9JUS8nm3bM+htiQ1H5aNJRxDvfHIiVNsNvBu/QT5WFkha7DEbOtUpQorEdT6 lr77P3p2w848RX5M+rtV1EkNIUd+bPoGFhtbxD2QNPJMIff+Y6ZdnN5nbnqg3J9CnLe/OI SKad5xidwVb0n2XUxle+sC/0W0AAvXI= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 49E9AABF4; Fri, 23 Oct 2020 08:49:57 +0000 (UTC) Date: Fri, 23 Oct 2020 10:49:56 +0200 From: Michal Hocko To: Rik van Riel Cc: Hugh Dickins , Yu Xu , Andrew Morton , Mel Gorman , Andrea Arcangeli , Matthew Wilcox , Vlastimil Babka , "Kirill A. Shutemov" , linux-mm@kvack.org, kernel-team@fb.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm,thp,shmem: limit shmem THP alloc gfp_mask Message-ID: <20201023084956.GS23790@dhcp22.suse.cz> References: <20201022124511.72448a5f@imladris.surriel.com> <932f5931911e5ad7d730127b0784b0913045639c.camel@surriel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <932f5931911e5ad7d730127b0784b0913045639c.camel@surriel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 22-10-20 23:40:53, Rik van Riel wrote: > On Thu, 2020-10-22 at 19:54 -0700, Hugh Dickins wrote: [...] > > But it's likely that they have accumulated some defrag wisdom, which > > tmpfs can take on board - but please accept that in using a huge > > mount, > > the preference for huge has already been expressed, so I don't expect > > anon THP alloc_hugepage_direct_gfpmask() choices will map one to one. > > In my mind, the huge= mount options for tmpfs corresponded > to the "enabled" anon THP options, denoting a desired end > state, not necessarily how much we will stall allocations > to get there immediately. It is really unfortunate that our configuration space is so huge and messy but we have to live with that now. Anyway, I would tend to agree that with an absense of per-mount defrag configuration it makes sense to use the global one. Is anybody aware of usecases where a mount specific configuration would make sense? -- Michal Hocko SUSE Labs