Chache writeback vs writeback (unsafe)

Maksimus

Member
May 16, 2022
78
3
13
Tell me which caching mode is better to use for maximum disk performance.
The server is installed on industrial nvme using zfs. The server does not use raid and there is no iron raid controller.
 
Unsafe can be faster because it lies about sync write commands being safely written (which they are not, yet) to disk. It really depends on your specific use case. Test for yourself to make sure the risk is worth it to you.
EDIT: If you have enterprise NVMe drives, then they probably already cache sync writes, which is safe because of the battery backup (PLP) and you'll see no performance increase.
 
Last edited:
Keep in mind that all caching modes besides none will use RAM to buffer data, which can increase your actual ram usage by a significant margin.
 
It will be memory usage additionally (plus to) arc cache zfs ?
Jup, you cache twice or even three times in RAM:
1.) Inside VM
2.) on the virtualization layer
3.) ZFS ARC
Thats why it is usually recommended (and default) to use "none" as cache mode when using ZFS.
 
Last edited:
  • Like
Reactions: LnxBil

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!