Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1072635pxb; Fri, 22 Jan 2021 06:36:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIPqyryavp4Ntn/j1gX9zqIKDeux9OMHM77+Dowt/CefAonJ9wi7cFXwKM9QM8MU3NGI0/ X-Received: by 2002:a17:907:3e04:: with SMTP id hp4mr3312285ejc.188.1611326189329; Fri, 22 Jan 2021 06:36:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611326189; cv=none; d=google.com; s=arc-20160816; b=B6gXhqtWIkYqmWdOo6WXxKCzfx2FFRi5ryTaFgdOYmWl3wCXOwhfkJedBj/6nbT7jE OzVa1S/RlVIcoeSyOKsj1Sx6QWc2avNYGy9BEcW3wwkiDBYDe+TzzUdERsyjjaSVjAED 2grvGFxEBULooMcBx7nfghNHLrMthIKDYgm8n322aNxhyZHx3HhHQ79gTx0Uui6dJcN3 3YFaOoh57CRZu9dg4rtuOHiRkovxCaO85N4/5IAzH3LGvsNj3eROihU7u+nemASt+7T8 p4NZV47PH2YWwFKxpKTN9Z5I/PkOEFAfWrXVyDu8dcVhw3PG5vgMfLmrNKO3rDPsgTaT n7dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:date:from:dkim-signature; bh=lORbjL7NcGT/PStpr8zM4Wz5Tzho57XEv/tw4+222nQ=; b=viODyNiKVJuloTz0RTiX6jsKp8VcCMOE6Ua5W7/Qln583mXVe2OqdKpiZlniuL9YAQ rlIBmWWzhtZfQNWy8UybshhbuogAMBoDbMPQ8tkxd014MeNxalacr1oNLKjoBXI+8Pkd LvxPV++6nmUK+vRUvTBq89qvo5bLK+BYFJGJtiCnqWSptcetUygGtDxcdQNAM0pX6fDD zU4xiEx574e7pe90zAa5TyxxP3EjoTuUTFaVV6xbc2QV1nYJFXVx+S6UrioumghFwTOn DgqdQcoNvKY+NLda/xi/CIFvCNRuu91sjBkx4dhDTaWIlX3cRiDDB13KNXv8VJ9l9Esn 93Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lYghFhdW; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t9si3078458eji.322.2021.01.22.06.36.04; Fri, 22 Jan 2021 06:36:29 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=lYghFhdW; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728715AbhAVOf3 (ORCPT + 99 others); Fri, 22 Jan 2021 09:35:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728391AbhAVOcN (ORCPT ); Fri, 22 Jan 2021 09:32:13 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 394CEC061786; Fri, 22 Jan 2021 06:31:33 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id h7so7796178lfc.6; Fri, 22 Jan 2021 06:31:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=lORbjL7NcGT/PStpr8zM4Wz5Tzho57XEv/tw4+222nQ=; b=lYghFhdW3WyhRY0OQX6QvLVjSyF/tw8v9KGOVngfSJysoGEvuM8wKoMVUn2dtZ+SUM 5D5Ym0q/o9kQsqjzLUbHt6AEDgUVPznvX5Rc71IxP7MzdAKaiFMes1ELCfY0c0g7Ffln UWHFNr+W/NprXS8P40SUEHCAhEc/szw1VaWoCqOVSqDac9aulHPnCMX12Qr/xttajWCH vxkadgJ2JfEu1lwgubXOI76ASxmdvMahOqCcQAPZIriynCZ8kO3ojqRGz103CQk7zIWF GqnjIChdtuBqAmEctexUCTbzyRw8kqNKp1DETXQXSo2uyfEcjojZc7CV4yqITM1gB2tt RBEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=lORbjL7NcGT/PStpr8zM4Wz5Tzho57XEv/tw4+222nQ=; b=F2BNt69IS+1XM80qMPH7j9ZR8/OABwm5ft3qW1K8oWYkvjLuMPiIXNq6Wc3GjK/h8c uPoq1RTTvUGwAF+62X22hCAMf3h2hqIC4khesy5ExdU7/yCvXV4kBgmoSWs7f0NMehAY ZRjU90UwcClLG7DQ4rHvMNcvo0k/VirILctq6ydyYqYUhtKJN9pS1e6/fS0g+qeq++ta EIOUJl0Uua2jPtrkTVUUfZiPO0XMihesU8bvXR7n3CI2WUusNJys0PZp7re3KeOOzlWl aHg8qva025uzrtTOXzKp5hPbqBHk3KCdZB0WCc1bLPQpWThLVNYEkb48dIrrteVqdYkz nSHg== X-Gm-Message-State: AOAM530gLNEu42+XHga4yXpUt4243RcUtTBOdko9HwuJLvibukM+AhQg 5dJa6m91Pb8EMHcABeHITfsOkYqVYsD0ng== X-Received: by 2002:a05:6512:398a:: with SMTP id j10mr1199536lfu.167.1611325891745; Fri, 22 Jan 2021 06:31:31 -0800 (PST) Received: from pc638.lan (h5ef52e3d.seluork.dyn.perspektivbredband.net. [94.245.46.61]) by smtp.gmail.com with ESMTPSA id f23sm905859lfc.63.2021.01.22.06.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jan 2021 06:31:31 -0800 (PST) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Fri, 22 Jan 2021 15:31:29 +0100 To: "Zhang, Qiang" Cc: Uladzislau Rezki , "Paul E. McKenney" , "rcu@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: =?utf-8?B?5Zue5aSNOiBbUEFUQ0g=?= =?utf-8?Q?=5D?= rcu: Release per-cpu krcp page cache when CPU going offline Message-ID: <20210122143129.GB1873@pc638.lan> References: <20210121064949.16164-1-qiang.zhang@windriver.com> <20210121185615.GR2743@paulmck-ThinkPad-P72> <20210121202635.GB2454@pc638.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 22, 2021 at 01:44:36AM +0000, Zhang, Qiang wrote: > > > ________________________________________ > 发件人: Uladzislau Rezki > 发送时间: 2021年1月22日 4:26 > 收件人: Zhang, Qiang > 抄送: Paul E. McKenney; rcu@vger.kernel.org; linux-kernel@vger.kernel.org; urezki@gmail.com > 主题: Re: [PATCH] rcu: Release per-cpu krcp page cache when CPU going offline > >Hello, Qiang, > > > On Thu, Jan 21, 2021 at 02:49:49PM +0800, qiang.zhang@windriver.com wrote: > > > From: Zqiang > > > > > > If CPUs go offline, the corresponding krcp's page cache can > > > not be use util the CPU come back online, or maybe the CPU > > > will never go online again, this commit therefore free krcp's > > > page cache when CPUs go offline. > > > > > > Signed-off-by: Zqiang > > > >Do you consider it as an issue? We have 5 pages per CPU, that is 20480 bytes. > > > > Hello Rezki > > In a multi CPUs system, more than one CPUs may be offline, there are more than 5 pages, and these offline CPUs may never go online again or in the process of CPUs online, there are errors, which lead to the failure of online, these scenarios will lead to the per-cpu krc page cache will never be released. > Thanks for your answer. I was thinking more about if you knew some platforms which suffer from such extra page usage when CPU goes offline. Any issues your platforms or devices run into because of that. So i understand that if CPU goes offline the 5 pages associated with it are unused until it goes online back. -- Vlad Rezki