From: Adam Weremczuk <adamw@matrixscience.com>
To: PVE User List <pve-user@pve.proxmox.com>
Subject: [PVE-User] swap maxed out when plenty of RAM available
Date: Tue, 22 Mar 2022 14:56:28 +0000 [thread overview]
Message-ID: <012c61c6-6e2b-7da0-7044-efaeafedbea6@matrixscience.com> (raw)
Hi all,
I run a tiny and lightweight Debian 9.9 LXC container on Proxmox 6.2-6.
It has 512 MB of memory and 512 MB of swap assigned and typically needs
50-100 MB to operate.
Last year I started seeing about half of swap being used with very
little use of RAM.
I then made the following changes:
/etc/sysctl.d/60-my-swappiness.conf
vm.swappiness=10
/etc/sysctl.conf
vm.swappiness=10
and rebooted.
The container was running like that for several months until this
morning when its core service (dhcp) started failing.
I logged in to investigate and noticed 100% of swap being used with
maybe 10-20% of RAM in use.
Before I had time to look into details the container crashed (powered off).
I'll probably try to get rid of swap entirely as an experiment to see
what happens.
Unless somebody has any better ideas and hints?
Regards,
Adam
reply other threads:[~2022-03-22 15:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=012c61c6-6e2b-7da0-7044-efaeafedbea6@matrixscience.com \
--to=adamw@matrixscience.com \
--cc=pve-user@pve.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox