Тимофей Титовец
2013-Sep-01 13:43 UTC
Re: Mixed blocks, he can avoid ENOSPACE error, when he can''t allocated metadata blocks?
Hello list, sorry for my bad english anyway. if my message is delirium, just ignore this message. My question: When using mixed blocks, metadata and data chunks has be merge, but we have (when using mixed) speed penalty. how many penalty will be have if we using mixed? Kernel 3.11-rc7, Ubuntu 13.10 x64 my simple test: #Mixed sudo mkfs.btrfs -f -M /dev/sdb #sdb old seagate hdd 80G sudo mount /dev/sdb /mnt time sudo dd if=/dev/zero of=/mnt/zero bs=1M count=4096 ~48.5s time sudo rm /mnt/zero ~1.5s sudo umount /mnt --- #default setting sudo mkfs.btrfs -f /dev/sdb sudo mount /dev/sdb /mnt time sudo dd if=/dev/zero of=/mnt/zero bs=1M count=4096 ~48.5s time sudo rm /mnt/zero ~1.5s sudo umount /mnt --- #raw write time sudo dd if=/dev/zero of=/dev/sdb bs=1M count=4096 ~59s I don''t see any different between mixed and defaults blocks. So using mixed blocks have sense? Or this is outdated function? Can i change in future type of chunk allocation between mixed and default (with using balance function)? i believe in mixed blocks because this function can awoid problems with ENOSPACE error (when system can''t allocated metadata chunk) and can up space utilization on the disk. On slow hdd, we no see any different between profiles, and on speed ssd perfomance penalty should not be significant. (i just using btrfs on my PC (1 TB hdd) and laptop (ssd 128 GB), i like this fs and i haven''t any problem (Only enospace, but i just add temp drive and using balance to fix this) and i just try optimizing fs). -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html