Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3497336pxf; Mon, 22 Mar 2021 07:48:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrO6YXBMS8HJOTHkIFYjAwMv1P0W0QDs9ddnpXQpeJaWQDDT5k5CE1uIHgfry8EnvPm58l X-Received: by 2002:aa7:de8b:: with SMTP id j11mr26272026edv.363.1616424507965; Mon, 22 Mar 2021 07:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616424507; cv=none; d=google.com; s=arc-20160816; b=yESvTecs2ZIvr57pvUxYN6gFk9mmOFKgAv5KNsdSEqO1/i5fDNYoHBZrIcOKIJWWlx t95qwkNytEqTSsPRxazrCsQ5gn5bnS2ksKuuV5fu/ox12vE/VXHGHOHd7KTz/oyIZ92c 6D0vzbtl4qsiNhQlF3IfYq7ZDXDIQVyzjyVinGDawkOSm9FqnGemgttQEYaUyDNBN4Zl jvAjjl2z3tmwgvAMnB3Ih0T2DO0GF/ys5+oij2UeeaoqdFIU4a0ET6hrnvBriM+7ojJH gZyMKn4hw9O5BZ04EbjVI0KoZvSY8c2GFZ2ioKnCaQe1MgoxpklFGt+mCPnEprEaqf+5 rZyg== 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=Icvrunq7s47g5UuOx3C1ykL1/UQNOPaopN5BLnKRXPs=; b=eA00ef0kXGqeMhsooujcGykBZfY2K/TsHAC0cNPGqJe4WNx78JAFLj29aUHVbqasxR /t8VTMseHKZyhF2HwR4hdJYBBG5gzC8/K2XU1HTprQeaJeY7LzU2ydeAN8mpXcFO0jM9 +AvVHQS3C88RknCS8zZv+jE0gGQwlKWCgRuiBrpnLSugK5UKr/bTo9Xl1fsC7OuhGe2Y qanAFlRwj2e8Xi2brHD0loT778D3asTA1nGrNGqOyhEDpZ4zdtZs1UqguBeoF/YT+LyG 4iPF+KQzJRu85II0RGrJ6Uxv25Va5V0zhT9FLxy0DXL/a/vwUTGXzF6yt+1cOs9h6M4i d/Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=kmtnnvMk; 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=QUARANTINE 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 v17si11137779eds.386.2021.03.22.07.48.06; Mon, 22 Mar 2021 07:48:27 -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=kmtnnvMk; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230220AbhCVOqk (ORCPT + 99 others); Mon, 22 Mar 2021 10:46:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:48104 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230139AbhCVOq1 (ORCPT ); Mon, 22 Mar 2021 10:46:27 -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=1616424386; h=from:from:reply-to: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=Icvrunq7s47g5UuOx3C1ykL1/UQNOPaopN5BLnKRXPs=; b=kmtnnvMkJ8AWU2nH5OpmmbR+C/wd6mZIE+1qW7VfAkrjeffS1DtbbwRtgNc/msHHnaFcoI JAjpo8Tt2kccfF+GHA/8PToU4TLpURCzaSIwT/Fc3LzteK7qXCvlMaEbbWFIIAGMxRLstT dToveiO9mjjsJTGvlsxIMzds5dOWeoQ= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 462A5ACFC; Mon, 22 Mar 2021 14:46:26 +0000 (UTC) Date: Mon, 22 Mar 2021 15:46:25 +0100 From: Michal Hocko To: Mike Kravetz Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Shakeel Butt , Oscar Salvador , David Hildenbrand , Muchun Song , David Rientjes , Miaohe Lin , Peter Zijlstra , Matthew Wilcox , HORIGUCHI NAOYA , "Aneesh Kumar K . V" , Waiman Long , Peter Xu , Mina Almasry , Andrew Morton Subject: Re: [RFC PATCH 7/8] hugetlb: add update_and_free_page_no_sleep for irq context Message-ID: References: <20210319224209.150047-1-mike.kravetz@oracle.com> <20210319224209.150047-8-mike.kravetz@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 22-03-21 15:42:27, Michal Hocko wrote: [...] > Besides that the changelog doesn't really say anything about changed > user visible behavior change. Now if somebody decreases the GB huge pool > from the userspace the real effect on the freed up memory will be > postponed to some later time. That "later" is unpredictable as it > depends on WQ utilization. We definitely need some sort of > wait_for_inflight pages. One way to do that would be to have a dedicated > WQ and schedule a sync work item after the pool has been shrunk and wait > for that item. Scratch that. It is not really clear from the patch context but after looking at the resulting code set_max_huge_pages will use the blockable update_and_free_page so we should be fine. Sorry about the noise! -- Michal Hocko SUSE Labs