Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp169001pxa; Wed, 26 Aug 2020 07:36:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVffGK1tfIF70aaFDcP0BY6VGKg7JHKUDVpEUmMYPqjeI9rSox6odvrKAef/rqZ/C7rqIP X-Received: by 2002:a17:906:19d5:: with SMTP id h21mr15717311ejd.505.1598452588988; Wed, 26 Aug 2020 07:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598452588; cv=none; d=google.com; s=arc-20160816; b=fYaBZH0vGtTGV7EuQREFSHq292FY1Y7ruuqz27MGxyBuUysng6F+G7Eg2IU6e/qbjL HDvov6k4YHaWz9flxITh1FCA1i7II/B6kKpvOvWczWK688/28aozFI3blAxNm+ikzT81 HE/8eR3U38fTwGUef6ageu39ymoYbBuyEDglizeHIvUPbi3vQ4oKp25OGeupAsu9fpjl 8i5AIhs58N9gdNuWj/hHjUAVOha9XiQd6BH3QZ/AYnvm9XTUYDG0yO5fbqf5JCPGHiK2 MaCjPJd2WFsO6yAg9eoMQvxGGYjkAyveJE4loKKQPQlWSyJXtlYdwZZ4DiFd/UrD6vk5 daGA== 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:dkim-signature; bh=07tvp8tVnrNw0e+tjr1QQnFIWOj/9N9xxnjDg1Dj00Y=; b=h9E/MUASjTXxsSumgjSmOIjFlMuzAMGI+EXJIq8JIMxB5NI1rrnvamzIFJkCLSyage s8ePaOkM1ApeY72dL4DVZu9W8Mxv7XYLvI71J54tiEIEdxzU4hUvCL3uguQ0ZgcW/WJY k7JF6+alru2+PQLb551llizACXFNi42K3wqm5VJRGHI0DSlypwpe642aiOdYfwdu/9NA pZkPcA7OBF061EWfaWAUJC4spxCFv9vQmJ5esAjY4GNNj9LbrZRh+IWs+D+YidOGNneD m6hRzZ4JOsREHUfZ+JvMmgi2yswfSIdTzrAAbVbTYNPWMrDYLADCVSseCIPtth6zqkNG z76w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=K6SqQUN8; 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=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec14si1640846ejb.320.2020.08.26.07.36.05; Wed, 26 Aug 2020 07:36:28 -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=@chrisdown.name header.s=google header.b=K6SqQUN8; 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=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730522AbgHZOKw (ORCPT + 99 others); Wed, 26 Aug 2020 10:10:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbgHZOKs (ORCPT ); Wed, 26 Aug 2020 10:10:48 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0A61C061756 for ; Wed, 26 Aug 2020 07:10:47 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id b14so1956967qkn.4 for ; Wed, 26 Aug 2020 07:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=07tvp8tVnrNw0e+tjr1QQnFIWOj/9N9xxnjDg1Dj00Y=; b=K6SqQUN8bdHK9sa+izhojjrbFpSuAwM1EM8gaAaK2UQZcDkd7jp4MSY9sWz+TgOC9q Ew/yxmU3JV0Qj/Wi0mw9w6VbwioBytFjVidB+UdF1T4c6UHFwcWGrBe4CT0q4M3aErez cVhOcHqjMFlaqBOXb9WKF666y6UVO1pGelyuA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=07tvp8tVnrNw0e+tjr1QQnFIWOj/9N9xxnjDg1Dj00Y=; b=Diqflc9nwOYlZV+88B6JZV3mDYfEAML26EgA0w0ZgehxkwC/SVDYGPpI91nDwjgjUz WEh9SaBPOHwDuYfOZw5+Cme5iQLWuMrEs87KhyXonrNlbgcT+JqTDgEkYfU8a4LSk+xR rOICBUbWkYL9A/2tvbxaRalXYGloOMT672YiCVMuDaInLOXsqW/FnM6f2Dcv3JDW3LaI 1J/Y2AHflyZBAg+eNMZFR/IB8ie1WOwbiPJct4O7RMp1oTGhUhXMB22TdYNqP72H/7Ot V3ZW8oLyiuXEiMVcEsIystoWwec7pVLbvvoMIRd7WDMvpSSXvB4HYfXArOjovcAsiRx0 YLlQ== X-Gm-Message-State: AOAM532qLPmlY6G/WVg3zqREEpeBBWV8JBOc5ZmIwofwu0/J1/m3rQWn Wjg89t4G8P3j856d1yO6RLmxEw== X-Received: by 2002:a37:7407:: with SMTP id p7mr14409179qkc.350.1598451047035; Wed, 26 Aug 2020 07:10:47 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::1:fd2b]) by smtp.gmail.com with ESMTPSA id b23sm2041262qtp.41.2020.08.26.07.10.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 07:10:46 -0700 (PDT) Date: Wed, 26 Aug 2020 15:10:44 +0100 From: Chris Down To: Xunlei Pang Cc: Johannes Weiner , Michal Hocko , Andrew Morton , Vladimir Davydov , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2] mm: memcg: Fix memcg reclaim soft lockup Message-ID: <20200826141044.GA831829@chrisdown.name> References: <1598449622-108748-1-git-send-email-xlpang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <1598449622-108748-1-git-send-email-xlpang@linux.alibaba.com> User-Agent: Mutt/1.14.6 (2020-07-11) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Xunlei, Xunlei Pang writes: >Add cond_resched() at the upper shrink_node_memcgs() to solve this >issue, and any other possible issue like meomry.min protection. I understand the general intent of the patch, but could you clarify your concern around memory protection?