Reserved block count for Large Filesystem

太过爱你忘了你带给我的痛 2024-04-18 09:04 122阅读 0赞

Q:
On large FS like 100gb default value of “Reserved block count” takes 5% of usable disk, can this value be safely changed to 1% and not affect a performance ? Is a reservation size of 1gb enough for 100gb disk ? And when we have even larger filesystem like 1Tb default “Reserved block count” is 50GB, is it an absolutely minimum must have reserved number of space for disk performance, or it’s just a legacy concept which can be adjusted?

A:
If you set the reserved block count to zero, it won’t affect performance much except if you run for long periods of time (with lots of file creates and deletes) while the filesystem is almost full (i.e., say above 95%), at which point you’ll be subject to fragmentation problems. Ext4’s multi-block allocator is much more fragmentation resistant, because it tries much harder to find contiguous blocks, so even if you don’t enable the other ext4 features, you’ll see better results simply mounting an ext3 filesystem using ext4 before the filesystem gets completely full. If you are just using the filesystem for long-term archive, where files aren’t changing very often (i.e., a huge mp3 or video store), it obviously won’t matter.

发表评论

表情:
评论列表 (有 0 条评论,122人围观)

还没有评论,来说两句吧...

相关阅读

    相关 【MySQL】Packet for query is too large

    【线上问题】 昨天订单对接方反应,从我们平台系统下的单,没有传到他们的erp系统中。运营找我处理,因为手头上刚开始开发下周要上线的需求,就用之前写好的补偿机制接口同步过去,以