From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18C5DC4829A for ; Tue, 13 Feb 2024 07:02:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4F8BC6B006E; Tue, 13 Feb 2024 02:01:59 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4A8B16B0071; Tue, 13 Feb 2024 02:01:59 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 397506B0072; Tue, 13 Feb 2024 02:01:59 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 284D46B006E for ; Tue, 13 Feb 2024 02:01:59 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id E6E99A08DE for ; Tue, 13 Feb 2024 07:01:58 +0000 (UTC) X-FDA: 81785885916.16.45CB873 Received: from mtdac.srv.somtecnologia.com (mtdac.srv.somtecnologia.com [94.23.87.168]) by imf24.hostedemail.com (Postfix) with ESMTP id 2A4DF180021 for ; Tue, 13 Feb 2024 07:01:55 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=actiu.net; spf=pass (imf24.hostedemail.com: domain of debianlists@actiu.net designates 94.23.87.168 as permitted sender) smtp.mailfrom=debianlists@actiu.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1707807717; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references; bh=EmBWOwhfNybGYdNQSYsAFH2SWN0jrIE7nSsejGHMmzY=; b=mbL2ZSuXm4CRX8TAQ/hkemInxMIG9AN9dejWlX8DMbLhwZ6XvtmkFQv9ruyDMcgn+gO87u ri0LZDz/hpp+nOZYFw9SEPUvo4UI2rnNJJKSkFxAGJ8SbhchkkW1nWpm1ZDWi9zBT3mb+S PaEUaOjG2llALRzgO3lGxo699G20q70= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=actiu.net; spf=pass (imf24.hostedemail.com: domain of debianlists@actiu.net designates 94.23.87.168 as permitted sender) smtp.mailfrom=debianlists@actiu.net ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1707807717; a=rsa-sha256; cv=none; b=Z+65XgY769FRYIJgXUMCvgXgKPpLOwKADDo2ZwGjOW8WfYI6LcwWf0Q6bhB8kvSm/vO7X8 Ap5C/Q6C9j/5fI/XsfK9oj462JbHb6GlzujK89G7bXtdgn8pSeEZyvzGKCasiRKgELIHLN XOdgPEy5j5f6GTdWLWFFseEu4N/W/ao= Message-ID: Date: Tue, 13 Feb 2024 08:01:37 +0100 MIME-Version: 1.0 Subject: Re: swapaccount= commandline option Content-Language: en-GB Cc: Johannes Weiner , Michal Hocko , Roman Gushchin From: Narcis Garcia To: linux-mm@kvack.org In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspam-User: X-Stat-Signature: n5ky6qmw64jae3mnpgie9nj548hxdhrc X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 2A4DF180021 X-HE-Tag: 1707807715-811004 X-HE-Meta: U2FsdGVkX18MIfDu7ec9xJflhgKn9Yp62ZgARM+eE8C7Hvo36F9D+kzif4dZW+H74USOyUbcbp8g5TKCksMnBOn9bSImMVfyvh6yeaVwvVtSrNN+ISd4qDZimucI/M7SixowQ3R2iEO7lTClEFQcgkwcflPhzMY0JHW3eH4SbjbRBOckIthmBHh4nuqlw06CbL1nuxIhensHJciwiv1GBULV9Pe2U9qSHfbC2NSkrhLyOWyG8e+De7k4QwDykZ8yMDigLdV1InQ5AGTJsRgdkWzHnT60dRadkEk1DQRs+B8LZV9OMg9CqJmy9xj1YYAtQtdMDa2SGWxOGHO/NEgBBR0YbiIuyrg+dempOuc8SBWkKb2mBuocw96EON4vmQvP1mWf+2IKsMMoQwWnhA5ZmFbToQUOayRLbPzvdVXSuUicqSklMJexmEcoUyEJaRja+Ebw3mGGuoZUh/ZK4W4hMq7IPCoJV0YXr2jzaWqFGHMc63iwzxKn3+SXAhjKACK5/XCA2hgny66hccNZyRVu5+ojAQV/QG3ZNfjLtZpTxTX9mJHN/ZpW5l3FlDA4IxTEL7zhpoijLUthumVFvxG21U4qFhp5QGRuZnqO/nLJeuc8+no7eqd0lEA/8Lpi4g8IrEGBSR7Vtud83FVx1Odawd+j3dPBHR2gMICpFynj87pnmCkop21ZdXov6XOO8OQFeaMOtCxpX9vYA11da7kaBJ5V2zhNzlSOc6eFVU2u7QoBY9Ku2Kzsd3Db+mmijotBMxY0L+7MUlUDldp9ibE5qDCvLwsb1BaiucdlXEzuiWZ+M8wyaJE18QrYNRE3JeKsdD8+79zh+bjfGcTnjBfetc8YgiMsFJjWCgw+bjN9i/xj/YKofKK2PntsG9JRCJEQFU3Mg1956SjZOynczYRUX0l5m50USbIK9MI6lZCRGVjh2vWAHDPgV37PjiOGApDTq2H0vhiEytk1oAyVFfq 02fxa64q cUHGteErDaKdQaKO70nSGK99kfuHw3yDLcIhpRVX9eeMYEZTDPHjYLYW7OijLW4B6eQWJtlWUOBvHvZSkzUzb9KoaoPnQ/XkDdTJGa248jqoVJdtuL0/Tugr3pMpNU/U/dOuXKgTeaST+tuXWeDRFUnOLMs125FyTgidE X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: El 12/2/24 a les 23:37, Yosry Ahmed ha escrit: > On Sun, Feb 11, 2024 at 1:33 AM Narcis Garcia wrote: >> >> Hello, >> >> I read this warning on Linux 6.1 boot: >> The swapaccount= commandline option is deprecated. Please report your >> usecase to linux-mm@kvack.org if you depend on this functionality. >> >> And I want to know if this impacts on LinuX Containers (LXC) swap >> accounting. > > swapaccount= was deprecated in the sense that it is always on now > (i.e. you cannot do swapaccount=0 anymore). I believe you are using > swapaccount=1 and want to make sure that swap accounting will still > work with v6.1, right? > > This is the second question we have had about this message [1]. I > think we need to clarify the warning (and perhaps backport to stable > kernels). > > [1]https://lore.kernel.org/linux-mm/2593755.Xrv9ptJ69j@sinistra.local/ Thank you for answering this question, and sure this clarification is needed both in documentation and warning message. I've found deprecation message was commited on 26 Sep 2022. From what Linux version release, this deprecation is included? I suggest this for setup_swap_account() code: pr_warn_once("The swapaccount= commandline option is deprecated. " "Swap accounting is always on. " "Please report your usecase to linux-mm@kvack.org if you " "depend on this functionality.\n"); -- Narcis Garcia __________ I'm using this dedicated address because personal addresses aren't masked enough at this mail public archive. Public archive administrator should remove and omit any @, dot and mailto combinations against automated addresses collectors.