Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1400pxf; Wed, 24 Mar 2021 18:54:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8TL7tPgjmKIKG75XOs0ih/g3rnMV1mq13jzh6VRsujjoZl6+w5gwDH6aSoX8pDy9NN6UK X-Received: by 2002:a17:906:cb0a:: with SMTP id lk10mr6704728ejb.479.1616637261906; Wed, 24 Mar 2021 18:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616637261; cv=none; d=google.com; s=arc-20160816; b=NNvxlWabF18EaFzUudPJB8t0lw0bHPj28aeJ3+RgHgK25ilKCLfMW1QLYRFrDLvVbe q1AjcA40t85VKEuYka2cA7YdVXEAYk+nnOSIZsgz9QW81L0jPFJZnW7xfJFZ6n31njc6 5hg0GLQ3j+6pS62kz/v+Wm8wHOU59p4tJQCSckvrOIooHxOLy2fEAbBc7jkNJs/c437K ifp7+/KDYxEAeiTqEO9A1nV99GRrqbCEjwTn5wwQm1NV8AugmJRpoBta6s2pvrhtYanc d5vc4TqDMW2D6rWqE4iooIMg6WpjTokPc8EkFz20QjpOQeqqHYvchh7pQvR2RrUKy+iH pg8w== 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=MSeWI8SL/YcKLwp8y07WFlFzVGAJyujolNeghuzIIcE=; b=amiziDo54v8Gr04UgqbZT1VzzVmiJ0DrsYEKJ0wDojAsE8PjYQKCwIOpuR6SDmrjPJ YwQrd4wvhMG3cWDbrhKKL+UIsGxtZ3bfhv+fC64xJd4PNZzoN0tXbP+Ab+6aZc5OqDy7 0uAtLL614eBJOmD/H/vnt7wirzak00OIqtM71Ie5NxUO491gdoH7Vc6mSi6xUnJmMkfG c30AYphAURmYYWFQWcXNhaSbz2nuMe3NIfwePNd/ynv2uvkJlQAQKCU+Vwlh//taI0lJ QRCvxpbOo6besU8dI0HGPjROm+s6MWX5ZgBwbZW0lzTKMadxurMS6fNZ+Ld29amZAtkm 5eew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=anO1EMpB; 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 bx20si3106643edb.215.2021.03.24.18.53.58; Wed, 24 Mar 2021 18:54:21 -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=anO1EMpB; 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 S231219AbhCXIk7 (ORCPT + 99 others); Wed, 24 Mar 2021 04:40:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:41632 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233955AbhCXIkx (ORCPT ); Wed, 24 Mar 2021 04:40:53 -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=1616575252; 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=MSeWI8SL/YcKLwp8y07WFlFzVGAJyujolNeghuzIIcE=; b=anO1EMpBrzHoGfoq3gQgKvbkHisYvo012Mh6Sxx43scKdBFlm6O5Enp4KVWm/DKmvLS/fb KWDL1gLDIOn7BZQvdxwJ6zVTAWSh9K4xw31o+xU70RkgXQRk/y8YwkYnDkPvHPJWnTrwrF DU5Z2mfAANkmnNUMupNYsXmodpc0DZg= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 59ECEAB9B; Wed, 24 Mar 2021 08:40:52 +0000 (UTC) Date: Wed, 24 Mar 2021 09:40:49 +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 5/8] hugetlb: change free_pool_huge_page to remove_pool_huge_page Message-ID: References: <20210319224209.150047-1-mike.kravetz@oracle.com> <20210319224209.150047-6-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 Tue 23-03-21 18:03:07, Mike Kravetz wrote: [...] > Since you brought up cgroups ... what is your opinion on lock hold time > in hugetlb_cgroup_css_offline? We could potentially be calling > hugetlb_cgroup_move_parent for every hugetlb page while holding the lock > with interrupts disabled. I am not familiar with hugetlb cgroup code TBH. But from a quick look there is not much of heavy lifting there. If we find out that this is really visible we can do the lock dance with cond_resched and retry with the iteration again. Or is there any strong reason to process the list in a single go? -- Michal Hocko SUSE Labs