Dear all,
i would like to know what the community think about these optimizations.
Environment: VPS with iSCSI disks
1) NO SWAP PARTITION
Rational: when linux/cpanal start to swapping most of the time the system is already unstable, moving memory from/to disk continuosly doesn't help the system, just hung apache/mysql
2) LOWERING BLOCK SIZE FROM 4Kb TO 1Kb
Rational: on CentOS the default block size is 4Kb, this allow faster seeking time on the fs (ext4) than others.
However on systems with tons of small file (like email files, html files) that are lower than <1Kb this can mean lose up to 30%, 40% of the available disk space by using more than double of the necessary space to store the file.
Lowering the block size can mean doubling your available space.
On the other side you can get more limitation in filesystem dimension which are fine for me.
Block size Maximumfile size Maximumfile system size
1 KiB 16 GiB 2 TiB
2 KiB 256 GiB 8 TiB
4 KiB 2 TiB 16 TiB
8 KiB 2 TiB 32 TiB
3) ANY OTHER SUGGESTION?
All hints are more than welcome!
i would like to know what the community think about these optimizations.
Environment: VPS with iSCSI disks
1) NO SWAP PARTITION
Rational: when linux/cpanal start to swapping most of the time the system is already unstable, moving memory from/to disk continuosly doesn't help the system, just hung apache/mysql
2) LOWERING BLOCK SIZE FROM 4Kb TO 1Kb
Rational: on CentOS the default block size is 4Kb, this allow faster seeking time on the fs (ext4) than others.
However on systems with tons of small file (like email files, html files) that are lower than <1Kb this can mean lose up to 30%, 40% of the available disk space by using more than double of the necessary space to store the file.
Lowering the block size can mean doubling your available space.
On the other side you can get more limitation in filesystem dimension which are fine for me.
Block size Maximumfile size Maximumfile system size
1 KiB 16 GiB 2 TiB
2 KiB 256 GiB 8 TiB
4 KiB 2 TiB 16 TiB
8 KiB 2 TiB 32 TiB
3) ANY OTHER SUGGESTION?
All hints are more than welcome!