diff options
author | clyhtsuriva <aimeric@adjutor.xyz> | 2025-02-01 02:08:17 +0100 |
---|---|---|
committer | clyhtsuriva <aimeric@adjutor.xyz> | 2025-02-01 02:08:17 +0100 |
commit | 197249a17f054671434734e2899bd6c8f4f0d37c (patch) | |
tree | d6ab13214a9a85d6cd9864422c156cbd2f8928cf /proxmox/disk-performance.md | |
parent | 76631f1123b785f3cff38720b41055828ddef123 (diff) |
Add pages for ansible and proxmox
ansible: testing playbooks + managing firewall rules with ufw
proxmox: disk performance w/ io_thread and scsi single + useful helper scripts
found online
Diffstat (limited to 'proxmox/disk-performance.md')
-rw-r--r-- | proxmox/disk-performance.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/proxmox/disk-performance.md b/proxmox/disk-performance.md new file mode 100644 index 0000000..21d3a53 --- /dev/null +++ b/proxmox/disk-performance.md @@ -0,0 +1,31 @@ +# Disk performance + +Taken from https://forum.proxmox.com/threads/virtio-scsi-vs-virtio-scsi-single.28426/ + +> VirtIO SCSI vs VirtIO SCSI Single boils down to a simple architectural choice that has real performance implications: +> +> Standard VirtIO SCSI uses one controller that handles up to 16 disks, while Single dedicates one controller per disk. This matters most when using IOThreads (iothread=1), because threads work at the controller level. +> +> When using IOThreads, Single shows significantly better performance (often 30-50% improvement) because each disk gets its own dedicated processing thread. Without IOThreads, the performance difference is minimal (typically less than 5%). +> +> So the choice is straightforward: +> +> > Want maximum disk performance? Use Single + iothread=1 +> > Managing lots of disks with limited resources? Standard might be better to avoid thread overhead +> > From the VM's perspective, they work exactly the same +> +> This explains why benchmarks consistently show better I/O performance with Single + iothread=1, while keeping the underlying architectural differences clear. + +Which results in the following packer configuration : + +```hcl + ... + # VM Hard Disk Settings + scsi_controller = "virtio-scsi-single" + + disks { + ... + io_thread = true + } + ... +``` |