Problem beim starten von VM

pixelpeter

Well-Known Member
Aug 5, 2015
168
4
58
57
Chemnitz
Hallo,


Ich kann aktuell einem Cluster keine VM's mehr starten.
Fehlermeldung: "cannot allocate memory".
Das System hat 128GB RAM, davon sind etwa 40% von VM's belegt.
Allerdings ist die Cachegröße immens, so das nur noch zwei GB RAM frei sind!!!
Kann man irgendwie die Cachgröße limitieren?
echo 3 >/proc/sys/vm/drop_caches beseitigt das Problem, allerdings nur für wenige Tage dann ist der Cache wieder genau so groß.

Peter
 
hi!

probier mal:

Code:
sync; echo 3 > /proc/sys/vm/drop_caches

dies sollte pagecache, dentries und inodes löschen.

ich weiß nicht ob man ein limit setzen kann, aber du kannst einen cronjob einlegen, der dieses kommando automatisch ausführt.

z.b.:

Code:
0 * * *  * sync; echo 3 > /proc/sys/vm/drop_caches
 
  • Like
Reactions: oermolaev

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!