Reduce writes on main drive(SSD), how?

b0n3v

New Member
Sep 15, 2019
3
0
1
26
Bulgaria
Hello to all, first thank to all of you for this excellent product!

I have clean install of Proxmox VE 6.0 without any VM and CT, with 2 ZFS mirror pools.
I run "iotop -Pao" and i see something strange to me, two procees write on my SSD every 3-6 seconds.
kworker and jbd2/dm-1-8 . Yes the writes isn't much in size but is frequency, and my SSD will wear to fast.
I already disabled this two procces: "pve-ha-crm" and "pve-ha-lrm", made cron for trim task every week, and reduced swap to 10%.
I want to optimize everything about writing on the SSD. I am opend for any opinions and guide.
Im looking for production state for my home lab.
Capture.PNG
I already see this link - LINK - but i don't know it's applicable?

My specs:
Ryzen 1700
32GB DDR4 noECC 3266mhz
2x1TB Sata HDD (ZFS Mirror lz4)
2x2TB Sata HDD (ZFS MIrror lz4)
M2 nvme SSD 512GB

Thanks to all!
 
Last edited:

tim

Proxmox Staff Member
Staff member
Oct 1, 2018
153
13
18
kworker..kernel worker threads.
jbd2.. journaling

My only advice in this context is, if you don't use a SD Card as your system disk this is probably a waste of time, please don't get me wrong not meant offensive in any way, but your M2 nvme will probably last years with or without "optimizations" in your home lab.
 
  • Like
Reactions: b0n3v

SamirD

New Member
Oct 12, 2019
11
1
3
44
HSV and SFO
www.huntsvillecarscene.com
kworker..kernel worker threads.
jbd2.. journaling

My only advice in this context is, if you don't use a SD Card as your system disk this is probably a waste of time, please don't get me wrong not meant offensive in any way, but your M2 nvme will probably last years with or without "optimizations" in your home lab.
I second this as modern (and even some not so modern) ssds will last years even with writes. And with the prices on these dropping all the time, you're spending a lot of time to save what eventually will be a $20 piece of hardware--not worth the time.
 

guletz

Well-Known Member
Apr 19, 2017
1,017
144
63
Brasov, Romania
Hi,

Yes if 20$ is not a problem, and you do not want to use better your money, is ok (I would prefer to donate this money for a better cause, but anybody can decide what to do with their own money).

For any other reason you could do something like this:

I guess you have zfs instaleed using the 2 hhd:
- backup your /var/log to /var/log.bkp (to be safe)
- stop the syslog service
- make a new dataset in rpool like rpool/syslog
- delete /var/log
- create a symlink for /var/log -> /rpool/syslog

The same ideea for /tmp, and for rrd database and for pmxfs.


Good luck / Bafta
 
  • Like
Reactions: b0n3v

SamirD

New Member
Oct 12, 2019
11
1
3
44
HSV and SFO
www.huntsvillecarscene.com
$20 is an arbitrary number. At the rate ssds are dropping in price a 512GB nvme ssd will be $20 by Christmas, and worth nearly nothing by the time it wears out--and that was my point. There will also be version updates that may resolve extra writes, or increase them, or make them mandatory by the time you make the changes.

Hardware increasingly becomes a commodity over time. I remind myself of that fact when I look at my $50 HP DL380 G5 that was originally over $7500 brand new.
 
  • Like
Reactions: PlOrAdmin

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!