public inbox for pve-user@lists.proxmox.com
 help / color / mirror / Atom feed
* [PVE-User] swap maxed out when plenty of RAM available
@ 2022-03-22 14:56 Adam Weremczuk
  0 siblings, 0 replies; only message in thread
From: Adam Weremczuk @ 2022-03-22 14:56 UTC (permalink / raw)
  To: PVE User List

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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-22 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22 14:56 [PVE-User] swap maxed out when plenty of RAM available Adam Weremczuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal