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 1679DC678D4 for ; Fri, 3 Mar 2023 09:46:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 73A526B0072; Fri, 3 Mar 2023 04:46:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6C3836B0073; Fri, 3 Mar 2023 04:46:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 564686B0074; Fri, 3 Mar 2023 04:46:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 40D226B0072 for ; Fri, 3 Mar 2023 04:46:16 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 063181608D2 for ; Fri, 3 Mar 2023 09:46:16 +0000 (UTC) X-FDA: 80527106352.02.AF4F9C8 Received: from up2.h.sotecware.net (up2.h.sotecware.net [217.115.1.86]) by imf19.hostedemail.com (Postfix) with ESMTP id BB0A91A000B for ; Fri, 3 Mar 2023 09:46:12 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=wielicki.name header.s=seq2-up2 header.b=fiRUU8dj; spf=pass (imf19.hostedemail.com: domain of jonas@wielicki.name designates 217.115.1.86 as permitted sender) smtp.mailfrom=jonas@wielicki.name; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1677836773; 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:references:dkim-signature; bh=bgOyfcXkGgCl0DNrGSPYMZ9BPK/bWKHO85eYgNkLinc=; b=RKIfJ7Vkle/R8pLMKLWMIszX6kY5ZHG9KKwJw1xJi61Y19gdQ35L/YfjjwoJ5T4RAefGKx B8qXxJnNfdc7SRgeH/tuj/ga4ceAZv0s3IpjlnCtxg27wdkWzMteyabezIyIK2LEHVs23R uy2eXPYDamNqMSSnlfZN87dJDXE8/gA= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=wielicki.name header.s=seq2-up2 header.b=fiRUU8dj; spf=pass (imf19.hostedemail.com: domain of jonas@wielicki.name designates 217.115.1.86 as permitted sender) smtp.mailfrom=jonas@wielicki.name; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1677836773; a=rsa-sha256; cv=none; b=C6+7IvrcU/ECifdFlvy6qeQZwxoo8VIJRkqkm1PXggXdW5VqCQPZzWxFeYALgmVVOnwJ6T udvYzGRTMIs17XQF8Gs+mKn5wTIG5JBcHJvbcQ9CCAmGXcP81q26/ojWZz4xoUsg/DNG83 tyM4RekPfz5f8HvtlfHX7JuhZcscHmQ= Received: from sinistra.localnet (p200300c27f2ef200527b9dfffecf344f.dip0.t-ipconnect.de [IPv6:2003:c2:7f2e:f200:527b:9dff:fecf:344f]) by up2.h.sotecware.net (Postfix) with ESMTPSA id E057E2400BA; Fri, 3 Mar 2023 09:46:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wielicki.name; s=seq2-up2; t=1677836769; bh=bgOyfcXkGgCl0DNrGSPYMZ9BPK/bWKHO85eYgNkLinc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=fiRUU8djhXykKKQosu1CMEK8P1J1nudwjjyzauOXhQsNXVWsqB/TjlpoUbeHxvWRO wbojDJmrwBgudwDdHcUzAMltuEAUHC4AhepQhnwYl1D2ee3sevR7Zgv9jCg0uGoJPO gdYMha4dMfyoK0bFRdy+QXzamXQixFbtmm76ZUCGaacscXabIt/i948iuZNXn/5pdh v0jf9LHySERgKRm8W7t+sZ7WHT9+ZbAKGVREda5cqNweK3ZknDXskfEiZI3+n82UQ/ K95nHk/QlHmS6+QGFTlCNY8GOOcRfeymJqC5k0CNoCvmsgXhtAdBLQbz3zEItInjKq Tqey+0JN25qwA== From: Jonas =?ISO-8859-1?Q?Sch=E4fer?= To: Yosry Ahmed Cc: linux-mm@kvack.org Subject: Re: About swapaccount= Date: Fri, 03 Mar 2023 10:46:08 +0100 Message-ID: <19747829.DQDqLukfaF@sinistra.local> In-Reply-To: References: <2593755.Xrv9ptJ69j@sinistra.local> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Clacks-Overhead: GNU Terry Pratchett X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: BB0A91A000B X-Rspam-User: X-Stat-Signature: sxheqx986bzcifyatwfzabx33t4iwnmx X-HE-Tag: 1677836772-759506 X-HE-Meta: U2FsdGVkX1+H3Whq3IEEvtNJI2o2EicZnD8TVAOrjT0a0IY870Yh6x+ksfL8K4D1Fh8nkw3xYrjx9g4tQaqMV7LGvpIm105zYYnho/mR5Zgm1RZxwQzsnH0miiq3El792aEkw/eHMNRNS4rd/HH3lYJz+cefde/WDzjjM+/tKt5qIOQCtj6bZdgzacH6YwhIa/8a/zovKkOx+eFmhO1eUcDPyjSvRR3ouS4LHk39XBTY67+0n2s5s/lCpaJpGKSZiEfxPbvid59OkYDi94+Gj4OTX0XkUIPBwbf3rCp0yU5PyIt9oLoxfxaD3PS0QfBMoNui6+1RP0Crff70I+tt/1sm0fJtOYecAekB8Zorh/yfRersEbx5XpkAzEoZCVEstCG/2tE198y4nELPsdaA2U9V83QFid9kCH297gxHr/+irOvzOPfNDx3vFK59vhhxkfYsQWdkgLlcFJhsrMJRCA010dbfnzZ0AHqCgZENyQOyKmRXOYCIQP66Nz1ulsujTmSJQgtBcjiQ3pGPQF4UPG81HpEssX04tCBlvPJc7zD/LzZ4V8WIgEZkuRwioo1sRICad2r+rUBYFw2v4VPf5+uBOxZbFrMlCm7dwMXlL5oq4nsoTJ1bUPv7rNqj2V5TB8Y4CqyOCJ0FZCGXjHZicCm04KtP7J1JgQmjpktDP+ZwuBli4hKRd/Hl0g4V/41kywuW12Q8rW5NZ3YrIDvfhUN0tT8yRr1Pwz5FoCgnbE8fqYWftGj7BHVCEQpep9GcpgjVk2G7omfLMuctlecUyZBx09/YXj2JBTd8/dRkBEYhb4kuahuHwLi7C9D/W+9b5aGpSCaY0zLA8M0c0wwmIPv/5AvbH0PmGmPKOW03CkqqFuby3ryK82B2l2GwrS8g0ZIq8+Lq9Srt9ebtYhBMl+YT/7+1msdXzrWOO3Urex2FdmxmcFa56zpe9UVCrMe3nkiKCHRAxbKsJPdTyhz lLXBCfGR 6vC/hsz6RcXc696WrbNGFLOWh5heaFcZ5z2rVYCXrOuT6tIT2M1F6c5kjmrzk0Xa71pbczSgclk6Q1ljn9yWfXy7wrDRVf6jB40k7jhGqSaql8aPm+lOHdRhoV1K61HLbciRJ1v2GS8poTFFTO9mdhq/lK9xlVSYQStxOWNyRFitw/+NloARM0K7nclWrpDugSWwJmw5L9PACUtheODk9j/ALfWWyQIgmzKw0HX+3hPetBmBYRnOaipOyN57UACRhhxXT3g5WSumzZ3qM07gJAiMLWHgbSrtZZNAqFv/C9X45fUq3kWl9ckM2n3V+O7aZgLSOlAVBMzqUEhRj9fxh2iPEwT45zcJwW0r5aI6Z5/YXTwqLgvJkMMLxr35oQK38qD+0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000684, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Yosry, On Donnerstag, 2. M=C3=A4rz 2023 20:12:43 CET Yosry Ahmed wrote: > On Thu, Mar 2, 2023 at 11:01 AM Jonas Sch=C3=A4fer = wrote: > > Hi there, > >=20 > > By coincidence, I found this log message in my kernel logs: > >=20 > > M=C3=A4r 02 17:23:19 sinistra kernel: The swapaccount=3D commandline op= tion is > > deprecated. Please report your usecase to linux-mm@kvack.org if you dep= end > > on this functionality. > >=20 > > My usecase does depend on this in the following way: > >=20 > > I use LXC extensively to isolate workloads from one another. Kind of li= ke > > docker, but with full operating systems inside. > >=20 > > Before I found out about swapaccount, I often ran into the issue that o= ne > > misbehaving workload from one of those containers would bring the entire > > machine to a halt because it occupied lots of swap, and thus triggered > > significant slowdown. > >=20 > > With swapaccount, I limit swap to about 10% of the RAM assigned to the > > containers. This allows them to swap out unused stuff, but invokes the = OOM > > killer before any significant slowdown happens. > >=20 > > The alternative would be to turn off swap for the system entirely, but = it > > is running fairly efficiently thanks to swapping stuff out. > >=20 > > I'd be interested to hear about alternatives. > >=20 > > Thanks for hearing me, anyway. >=20 > If I understand correctly you were setting swapaccount=3D1, right? >=20 > IIRC, swapaccount=3D was deprecated in the sense that it is always on > now (i.e you cannot set swapaccount=3D0). Thank you for the swift reply. Indeed, I am using swapaccount=3D1, so I ass= umed=20 the deprecation warning was related to =3D1. If =3D1 continues to work as d= efault,=20 that just means I have one less thing to carry around in the grub config an= d=20 is not a problem at all! Thanks! kind regards, Jonas