From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 854F8C55179 for ; Fri, 23 Oct 2020 08:50:01 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A83D024641 for ; Fri, 23 Oct 2020 08:50:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="exr/3/1d" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A83D024641 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D5ABD6B005D; Fri, 23 Oct 2020 04:49:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D31B26B0062; Fri, 23 Oct 2020 04:49:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C21096B0068; Fri, 23 Oct 2020 04:49:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0093.hostedemail.com [216.40.44.93]) by kanga.kvack.org (Postfix) with ESMTP id 942F86B005D for ; Fri, 23 Oct 2020 04:49:59 -0400 (EDT) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 2D52D40FE for ; Fri, 23 Oct 2020 08:49:59 +0000 (UTC) X-FDA: 77402567718.13.birth90_5f069d127258 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin13.hostedemail.com (Postfix) with ESMTP id 0CF9218140B60 for ; Fri, 23 Oct 2020 08:49:59 +0000 (UTC) X-HE-Tag: birth90_5f069d127258 X-Filterd-Recvd-Size: 2861 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf32.hostedemail.com (Postfix) with ESMTP for ; Fri, 23 Oct 2020 08:49:58 +0000 (UTC) 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> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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