Hi all, I created two zfs pools with compression active.
These pools are used by guests.
Swap and root filesystem are also hosted here.
I think it's unwise to keep compression active for these reaons:
These pools are used by guests.
Swap and root filesystem are also hosted here.
Code:
tree /dev/zvol/
/dev/zvol/
├── rpool
│ ├── data
│ │ ├── vm-100-disk-1 -> ../../../zd0
│ │ └── vm-100-disk-1-part1 -> ../../../zd0p1
│ └── swap -> ../../zd16
└── tank
├── vm-100-disk-1 -> ../../zd48
├── vm-100-disk-1-part1 -> ../../zd48p1
├── vm-100-disk-1-part2 -> ../../zd48p2
├── vm-100-disk-2 -> ../../zd64
├── vm-100-disk-2-part1 -> ../../zd64p1
├── vm-101-disk-1 -> ../../zd32
└── vm-101-disk-1-part1 -> ../../zd32p1
I think it's unwise to keep compression active for these reaons:
- this kind of data probably doesn't compress very well (correct me if I'm wrong);
- I/O will be slowed down;
- zfs will require more ram to compress data
- is it safe to run 'zfs set compression=off pool'?
- Is it better to shutdown the guest before doing that?
- What do you think about it?