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 95D5DC678D4 for ; Thu, 2 Mar 2023 19:13:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2F5916B0071; Thu, 2 Mar 2023 14:13:24 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 27E7B6B0073; Thu, 2 Mar 2023 14:13:24 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 11FF66B0074; Thu, 2 Mar 2023 14:13:24 -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 F24C66B0071 for ; Thu, 2 Mar 2023 14:13:23 -0500 (EST) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id C0AC5AAE8C for ; Thu, 2 Mar 2023 19:13:23 +0000 (UTC) X-FDA: 80524906686.16.C081ECE Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) by imf02.hostedemail.com (Postfix) with ESMTP id D41A180007 for ; Thu, 2 Mar 2023 19:13:21 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=q0M3J1cU; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf02.hostedemail.com: domain of yosryahmed@google.com designates 209.85.208.54 as permitted sender) smtp.mailfrom=yosryahmed@google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1677784401; 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=i/or/2MLUXToJ87rZCL2G1/ayQWohPL5TZe7XQkmeGQ=; b=GIAftzFe+2mKvU6Kf5jXXOqfOlv3nU2K+7HMjG9q7wF0bmi9rD60qI4HNB7t5BlKJ7WE/1 6wjgWHoZhU7gTqqe5c6yqOeCy10LhcH2IvPAzXmC+Cy6CXUemAAFdspjXGthLUAbsR9ntP k0kn6zfe4h54u1cXDuGeADnTRrxlG1I= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=q0M3J1cU; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf02.hostedemail.com: domain of yosryahmed@google.com designates 209.85.208.54 as permitted sender) smtp.mailfrom=yosryahmed@google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1677784401; a=rsa-sha256; cv=none; b=BRvKgDKijiMOJhFlv0WQT1ezdF7FPe5HSsW0Hoz1w5d3MUuQX9eeZjOBbxTyYj2GL0C+Jv B4MkILBE7JWED/O8sZFnDMXBTQQroiioh4FD0Qfcvz8FqBbIEu35feiqdpHm9BU5iy/Uwd bXfaDsgBxRK3jwVb0PiYc+ooyAm33ws= Received: by mail-ed1-f54.google.com with SMTP id x3so1088585edb.10 for ; Thu, 02 Mar 2023 11:13:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1677784400; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=i/or/2MLUXToJ87rZCL2G1/ayQWohPL5TZe7XQkmeGQ=; b=q0M3J1cUiChpU9YBlkO7XGmzQX5Dy4w2+tvirV/397OrYNUIhfLJIcL8R6i/+ClMbp B7/idvVzxCYN9n5pobzwSDtJwujpPVB7Me5TDB4urk1Kr5S97ggxIhICvqzFUUs5lpJD aAUGvR+eUhMPM5NagDtVB2uBJy7ysGZEOkwk4DbxhRscz0uUqRqXQuf9VcFH8N6kPjBe wTKLuPqiwS2MUcmDrxfeAKMwHnFF4k1hhfdrtsfRuGp39kyxudgScJ7NM9KoR4YFUrXR Td/VjFnLVhjGLyChC5+WabyxnNlKtyz/pZp8YRQOQfhHEb6REoyimaSS5gzWYGdiPWQd J5EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677784400; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=i/or/2MLUXToJ87rZCL2G1/ayQWohPL5TZe7XQkmeGQ=; b=DEoZMO+TzGTuRzqGPimdW82NNjrpp2AwFFIHHOJU39JM0ogqdfUOXdOf5tkor04Aoo snk4RsJ0EA2ge1x2h6n4TonQZBVm6WME86dqCVx88n8IJ5znXbNtr0qcj+60OecJZNly 23mOO3W9Yf0+HUTAZnJ+2qWf1HBnph/7r5prUHDqM0Yl8MSzJAyHVjhBya6oEC+tKMM3 GTevxldLDwnWLTx6FnNHklvoYM12zQiZIpBDuGjool6ZIw+TXV5un498sYnuZvWvKcvl M6pXVimQHbarMIwUeczQDd6hjkHM78hpmBAvm8/KOk2S1MrdDnmh7hLq3hK0i3tLKrsI i8PQ== X-Gm-Message-State: AO0yUKViSNkB/RnJC4Dck+DeB9TflDwObNE6MmVM8blez7kGa/qEy52F aVV2GLFAlokinvvS3IHoYET5v98SnnY5pyY4/9kgqg== X-Google-Smtp-Source: AK7set/rAxvegrtKdwziPy9NvNwku2UJvrBRQbioEONz6ioanqQrQenjiwSMkFSGMaFTRFukuaYwjzQfp2tW2mRe4CI= X-Received: by 2002:a50:a69c:0:b0:4c1:1555:152f with SMTP id e28-20020a50a69c000000b004c11555152fmr1332401edc.5.1677784399909; Thu, 02 Mar 2023 11:13:19 -0800 (PST) MIME-Version: 1.0 References: <2593755.Xrv9ptJ69j@sinistra.local> In-Reply-To: <2593755.Xrv9ptJ69j@sinistra.local> From: Yosry Ahmed Date: Thu, 2 Mar 2023 11:12:43 -0800 Message-ID: Subject: Re: About swapaccount= To: =?UTF-8?Q?Jonas_Sch=C3=A4fer?= Cc: linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: D41A180007 X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 5p64i5peigi1snte65upenac5cs61ddy X-HE-Tag: 1677784401-582071 X-HE-Meta: U2FsdGVkX1+Xh4LeNy6T1GPG7KEB4W6kOVA9lsR3yxhP1lp4WmILBA46vZoph3whugx2BAB+NX4ME5PhpsR7RyrOZ4cua/lDZrV3SUv1hLDKsmvf3Nh3mYGlAIy/t4UShAN7v7LfArpClnJWuRuIpdAzXjxDiZxGJon4i4ENcM5mpcSWOf1S0DzAAI8aZScffH79V3yMeX95w9x1d3SOjE573I9aWh9RqE1DiySBs0ju3BhgPMf1nwr64uyw05B12XyitMT1nnUck21279cDdn0MU8vziJtJqC5jfx4T//8kVG1l/P3uzM/kj+tNzVEVIvKLVsuhz41F/mmKj/SYl+A2QI0SlQHAnzfl+3fBjWWZrMzK6CiTbjXGfgB/Kjw9aVNLpuPZTKKT0KWdZ9TzpA6mHZ0TqL2tyc5pRNUH0Z87jNSt3ehwmkPgtgT8c052Y8joYWo1L/ABW1aTw/D9/OK8ASpUKsCWRaufm149HMjx5xiJy2DkW1s5QhpGZPmMRSnhoQEI2uG+3e6DyepZ9Txh6BLOriuF111V+QNX13Lv6P9dPcWAJ+bjOOcejUbfIPi6clp4VVw4FU42wMjlFkdsomXOGNpPVOlj91c0QSIaIhAKg3O7EPSjtnD61pW9NvLJtECkw0+9cQd+rPp6W1nzTBBRsn0ahfFRM9WOYd1UKCvgnHMbAL2pIv+k6SH5ZNShN9dNjt3oHDyTSjqJXcMZCJsSbLal1FIQiWVBMceq/2cOqROPm5iwgqlZJTVjqtzDXz7wu2GzVCkXNHJqgmbiFySqKeU4jmCT3nFyoQfWKPUfDT+HByXR/RH3IU0nq/UhnFdqXkBEqmFHJp32kFzEifiMg4Tau+Y4bZlSVrFn1L8+8FJ9EkpnUrtgK0VK81gOTX6byti/TiL5Lbcby+GWoWFiIFfjUlwgI6QhgGA8hHcKrYr0f157sKY51JO0Bc50etm+ZQ6BYhkSB9n zBTVayQY w07EiWcaJBOIPL+SHOY3YyuvkIRuRMWcXTuG7XD+mzSxr1BiY5cXBo3P0OBdXnapN/Z8W/Lv+PpIgaFR1/qXStnaUCo1Iqvv7S3P67ntMJWWenBTcfsvwJJmU1bz8m2wxHmswHIt8rvKCaWz87F5baHQZJzCQ0fgR2FP3OaB2fzDVYP1qCb5RKYN+VOoz5vwS4ISZcnSwvMxKwCj3gKf6EWhwlB9rK4ggjuTT78M6SZK/0XKcpYd5bUfhs/JAFBgxzEl61qKsmwYTEP1iAd/NCGwdlhK1hx4U+l3leWuOhZ7755o= 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: On Thu, Mar 2, 2023 at 11:01 AM Jonas Sch=C3=A4fer wr= ote: > > Hi there, > > By coincidence, I found this log message in my kernel logs: > > M=C3=A4r 02 17:23:19 sinistra kernel: The swapaccount=3D commandline opti= on is > deprecated. Please report your usecase to linux-mm@kvack.org if you depen= d on > this functionality. > > My usecase does depend on this in the following way: > > I use LXC extensively to isolate workloads from one another. Kind of like > docker, but with full operating systems inside. > > Before I found out about swapaccount, I often ran into the issue that one > 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. > > 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 OO= M > killer before any significant slowdown happens. > > The alternative would be to turn off swap for the system entirely, but it= is > running fairly efficiently thanks to swapping stuff out. > > I'd be interested to hear about alternatives. > > Thanks for hearing me, anyway. If I understand correctly you were setting swapaccount=3D1, right? IIRC, swapaccount=3D was deprecated in the sense that it is always on now (i.e you cannot set swapaccount=3D0). > > kind regards, > Jonas Sch=C3=A4fer