Moving logs to RAM: what is better log2ram or folder2ram?

logui

Member
Feb 22, 2024
84
15
8
I am trying to reduce the log writes to consumer SSDs, any previous experience or recommendation on which tool to use for that (log2ram or folder2ram) that works fine with Proxmox + Ceph, and what folders have you moved to ram? Thanks
 
Logs is a negligible problem, the major "problem" in this respect is the PVE-internal database in /var/lib/pve-cluster and also all RRD graphs. Those write much, much more.

An used enterprise SSD for PVE itself costs on ebay roundabout 30 euros. Just buy one and save your time and effort on trying to optimize the writes on pve.
 
  • Like
Reactions: Johannes S
Logs is a negligible problem, the major "problem" in this respect is the PVE-internal database in /var/lib/pve-cluster and also all RRD graphs. Those write much, much more.

An used enterprise SSD for PVE itself costs on ebay roundabout 30 euros. Just buy one and save your time and effort on trying to optimize the writes on pve.
Thank you, I found that most of the writing to the disk is coming from the Ceph Monitors (ceph-mon) vs journald, now, I am trying to find a way to send them to memory or disable them or move them to RAM:

  • ceph-mon -f --cluster ceph --id N3 --setuser ceph --setgroup ceph [rocksdb:low]
  • ceph-mon -f --cluster ceph --id N3 --setuser ceph --setgroup ceph [ms_dispatch]
I see around 270-300KB/s written to the boot disk, mostly from ceph-mon, any idea how to address the Ceph logging? Thank you
 
Last edited:
  • Like
Reactions: Deepen Dhulla