From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 8C38172DFE for ; Wed, 26 May 2021 15:37:51 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 730AD12C97 for ; Wed, 26 May 2021 15:37:51 +0200 (CEST) Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 2416F12C84 for ; Wed, 26 May 2021 15:37:50 +0200 (CEST) Received: by mail-il1-x12f.google.com with SMTP id c2so268158ilo.11 for ; Wed, 26 May 2021 06:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=pyO2w8NCNrSWvwNsMvPucVQ1CswQg9ep9Ry9u8kbMRU=; b=oLuUVlHLAl3tgM6QHKU9ynX5agP0CksYZ6mmL2O2byIZYnuCm+uILf7V/c1tAnooX5 Ft+CitFwKNosu5QzMy5ctUjbgWmEaC4Ek08thxdBYqRW0tGSYEjG0C9Oy88kNSufyumm eEEEu5RTD+tOpJ5DE1DdGMA08qVwE/PopetpcdfPu12ofIwoGf9LvV1slou3gCdHGCg9 MEaEd6W9uCw+8taTLK3emqSixghE1NMh6AWzwMs2+NoyvjfM4+xx6cBToAH1ohwgOVsY 0HIaqYwv2b2bQ8KhJgeasK4nGEv5VaOCcFibL3M/h0rHVmCj2/ynPtgSuAEqPl9AblQr MaNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=pyO2w8NCNrSWvwNsMvPucVQ1CswQg9ep9Ry9u8kbMRU=; b=bpnbIHFOVkMbwQYN87+sHblwQJPq8G2cEYOHuyPlyxEK2smtuPOT9UsmT8bcufTCt0 nNKhoh/5vpw97AD1QWotlRc95fEvRG9jukzXSerPANbKEsKAP4isdQGTzMFy3nwtchP7 aPeZvOmMIKUZqqkiQWkzDS5o1efVdAOlYPtXnA0xhfgXBofcRApdcBYe2a8mCDRENMIP iBn/VvrP6sw2NFgFtRtFbXG5WHIvaGFf/zEcKvpF/Tp1sv4VowEOSxAnyhvYctZ8sDqU 2nYAaQ78qajytrIeDsCLp6H7OjAA3KDBlP9Xv1qpRC8bKPeuBjw6WxW+nqT7sOzyjc8a dZyg== X-Gm-Message-State: AOAM531buZZHFvcP05sO6gbMmu/aTkBjZ2sTbO+mwwPPGaD0zIv3MrkQ q50VoPEXeL2GWqM+D+AGNKYB2+o1M1ZldC2yDp7MQbNcqWA= X-Google-Smtp-Source: ABdhPJxlXWToaefUw7omBm7p8wgisWA010zg4AB5HFLOdH0SdNxIuVRBf9aQHl2SkhD3uGByhYaBy8ngoStZGXDpHWM= X-Received: by 2002:a92:c74b:: with SMTP id y11mr29262309ilp.302.1622036262905; Wed, 26 May 2021 06:37:42 -0700 (PDT) MIME-Version: 1.0 References: <07951a6a-bce5-6224-600c-25462b88334d@matrixscience.com> In-Reply-To: <07951a6a-bce5-6224-600c-25462b88334d@matrixscience.com> From: John Date: Wed, 26 May 2021 09:37:07 -0400 Message-ID: To: Proxmox VE user list X-SPAM-LEVEL: Spam detection results: 0 DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider HTML_MESSAGE 0.001 HTML included in message POISEN_SPAM_PILL_4 0.1 random spam to be learned in bayes RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_SBL_A 0.1 Contains URL's A record listed in the Spamhaus SBL blocklist [askubuntu.com] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [PVE-User] swappiness on Debian container X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 May 2021 13:37:51 -0000 Not sure this is a best practice, but when creating containers, I set the swap amount to 0. -John On Wed, May 26, 2021 at 7:51 AM Adam Weremczuk wrote: > Hi all, > > Proxmox 6.2-6, one of containers (Debian 9.9) is swapping memory even > though it has plenty of unused RAM left. > > I've tried suggestions from: > > > https://askubuntu.com/questions/157793/why-is-swap-being-used-even-though-i-have-plenty-of-free-ram > > https://askubuntu.com/questions/192304/changing-swappiness-in-sysctl-conf-doesnt-work-for-me > > to change the default 60 to 10, rebooted multiple times but none of them > is taking an effect. > > I've tried switching between privileged / unprivileged container as well > as enable nesting. Still no joy: > > $ sudo sysctl -p > sysctl: setting key "vm.swappiness": Read-only file system > > $ mount > ms-zfs-pool/subvol-101-disk-0 on / type zfs (rw,xattr,posixacl) > none on /dev type tmpfs (rw,relatime,size=492k,mode=755) > proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) > proc on /proc/sys/net type proc (rw,nosuid,nodev,noexec,relatime) > proc on /proc/sys type proc (ro,nosuid,nodev,noexec,relatime) > proc on /proc/sysrq-trigger type proc (ro,nosuid,nodev,noexec,relatime) > sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) > sysfs on /sys type sysfs (ro,nosuid,nodev,noexec,relatime) > sysfs on /sys/devices/virtual/net type sysfs (rw,relatime) > sysfs on /sys/devices/virtual/net type sysfs > (rw,nosuid,nodev,noexec,relatime) > fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime) > proc on /dev/.lxc/proc type proc (rw,relatime) > sys on /dev/.lxc/sys type sysfs (rw,relatime) > lxcfs on /proc/cpuinfo type fuse.lxcfs > (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other) > lxcfs on /proc/diskstats type fuse.lxcfs > (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other) > lxcfs on /proc/loadavg type fuse.lxcfs > (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other) > lxcfs on /proc/meminfo type fuse.lxcfs > (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other) > lxcfs on /proc/stat type fuse.lxcfs > (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other) > lxcfs on /proc/swaps type fuse.lxcfs > (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other) > lxcfs on /proc/uptime type fuse.lxcfs > (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other) > lxcfs on /sys/devices/system/cpu/online type fuse.lxcfs > (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other) > devpts on /dev/console type devpts > (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) > devpts on /dev/pts type devpts > (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1024) > devpts on /dev/ptmx type devpts > (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1024) > devpts on /dev/tty1 type devpts > (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1024) > devpts on /dev/tty2 type devpts > (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=666,max=1024) > tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) > tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755) > tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) > tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755) > cgroup on /sys/fs/cgroup/systemd type cgroup > (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd) > cgroup on /sys/fs/cgroup/blkio type cgroup > (rw,nosuid,nodev,noexec,relatime,blkio) > cgroup on /sys/fs/cgroup/memory type cgroup > (rw,nosuid,nodev,noexec,relatime,memory) > cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup > (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct) > cgroup on /sys/fs/cgroup/perf_event type cgroup > (rw,nosuid,nodev,noexec,relatime,perf_event) > cgroup on /sys/fs/cgroup/cpuset type cgroup > (rw,nosuid,nodev,noexec,relatime,cpuset) > cgroup on /sys/fs/cgroup/hugetlb type cgroup > (rw,nosuid,nodev,noexec,relatime,hugetlb) > cgroup on /sys/fs/cgroup/freezer type cgroup > (rw,nosuid,nodev,noexec,relatime,freezer) > cgroup on /sys/fs/cgroup/devices type cgroup > (rw,nosuid,nodev,noexec,relatime,devices) > cgroup on /sys/fs/cgroup/pids type cgroup > (rw,nosuid,nodev,noexec,relatime,pids) > cgroup on /sys/fs/cgroup/rdma type cgroup > (rw,nosuid,nodev,noexec,relatime,rdma) > cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup > (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio) > mqueue on /dev/mqueue type mqueue (rw,relatime) > hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) > > Any ideas? > > Regards, > Adam > > > _______________________________________________ > pve-user mailing list > pve-user@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-user > >