Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp868274rdd; Wed, 10 Jan 2024 01:48:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFEUmnQ0jIiN5XfDqmzlianKKMnrpPd7xEVCZC5ZM0aXuG/sscUSofXypZ4srBj8RvqgQ0R X-Received: by 2002:a17:902:f552:b0:1d4:fd84:be12 with SMTP id h18-20020a170902f55200b001d4fd84be12mr849910plf.25.1704880110689; Wed, 10 Jan 2024 01:48:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704880110; cv=none; d=google.com; s=arc-20160816; b=SShdbGxkEIpx56DH0TGyw3zCmt7gEY4uX6eaDP+GGXEllFmsjEcasqvn2UPxVCXK5a Rr5/qC3JK8CM52NVpePTsfa2mT0VnLNFDhcZwYkKVOGxb7vBD86+ttmU96PeZKYwojEE Jw72pfCqGB65TeZ4c8QBLHiojLQ4EW/vhUmGXQI7ACLQeFFs2nt/D9soD10RxZS4fwat 2ZLGSuxbJW+EdBO+L9Lq89k/QAiP4pZxSKb/iRIUeJhCfxVSJUN11/nA1K1cv0RCaKpt LicEOLAdQ+wjg5u1UViKDWEW64sujz7yIluN4flCpbVmP+Abf7NnvucmQbHuF3mX1BZ1 jrsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=tJsZ/45+uAvVZwa9gjKjzt7QmK3wv/qQ6nRTX+VFOAQ=; fh=2K0alcEh4ygEggdm7zt5JZ+cLbdvrgIZSUPeM2WJ+yU=; b=kMoHKzgmKJpO9EZZ6O66sRRyIqh44HswN0wq7rtaysBVlVKp3mBTy9UuAJoH9gieN0 df7xkJG+68M4ezKHMdNpuFodCw08RBNnh6XAkSMXB9Yt5+iXmKn/KzD8XnwxSdaVX7iR cmF1FwsR6x8SxvKR2nK0rkPJLdvrssYvUc7LV1J7RaOQpVyfR/NxQTJvK1Im3lD69yb8 TiST3ZlD5gJ/EGHJt+n0023LDdD6P3iWiTnFLigNJHwr5SrL7rNHJeVCtB7NFMaYlrao OK0JCUgmu6uPWFInPHFlsZ9FiEhD7JV6ENDqeH19z4kTKF8pZKjHUhr7Hq+Y/ndilcsq 68lw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-21915-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v24-20020a1709028d9800b001d4e285217dsi3281108plo.78.2024.01.10.01.48.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 01:48:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21915-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-21915-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5CEE0288EDD for ; Wed, 10 Jan 2024 09:48:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02182446D9; Wed, 10 Jan 2024 09:46:17 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7A334121F; Wed, 10 Jan 2024 09:46:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4T92vg1s0fzvTnG; Wed, 10 Jan 2024 17:44:47 +0800 (CST) Received: from dggpemm500005.china.huawei.com (unknown [7.185.36.74]) by mail.maildlp.com (Postfix) with ESMTPS id 559EC1408FC; Wed, 10 Jan 2024 17:46:04 +0800 (CST) Received: from [10.69.30.204] (10.69.30.204) by dggpemm500005.china.huawei.com (7.185.36.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 10 Jan 2024 17:46:03 +0800 Subject: Re: [PATCH net-next v2] page_pool: Rename frag_users to pagecnt_bias To: Ilias Apalodimas , Jakub Kicinski CC: , Jesper Dangaard Brouer , "David S. Miller" , Eric Dumazet , Paolo Abeni , References: <20231220080147.740134-1-ilias.apalodimas@linaro.org> <20240102153547.58b23d35@kernel.org> From: Yunsheng Lin Message-ID: Date: Wed, 10 Jan 2024 17:46:03 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500005.china.huawei.com (7.185.36.74) On 2024/1/9 15:02, Ilias Apalodimas wrote: > Hi Jakub, > > On Wed, 3 Jan 2024 at 01:35, Jakub Kicinski wrote: >> >> On Wed, 20 Dec 2023 10:01:46 +0200 Ilias Apalodimas wrote: >>> - long frag_users; >>> + long pagecnt_bias; >> >> IDK :( >> >> pagecnt to mean suggests this is related to page refcount, >> not page pool specific refcount. >> >> More importantly bias is the large number by which we increment. >> This counter counts how many of the bias references we actually >> consumed. So how about bias_consumed? bias_used? bias_issued? >> frags_alloced? > > I had similar concerns, that's why v1 used 'frag_cnt'. > I am fine with either frags_alloced or frag_cnt I would suggest that we stick with the *_bias version, and invert the logic of draining, so that: 1. Aovid one subtraction operation in the data path. 2. Align with other frag implementation. I guess I can do the above if that is ok with Ilias. > > Thanks > /Ilias > . >