I have a file based DB that has about 2M files stored in 3 levels of subdirectories.
2/2/6253
2/2/6252
...
File a vary from 30 bytes to 60 KB. Whole DB is Read Only. DB is about 125 Gigabytes big.
Added: All files are compressed by zlib (python)
I want to handle it all as one file with file system in it. Which file system would be my best choose?
At the moment I use following script:
dd if=/dev/zero of=/my_file.iso bs=1024K count=60000
mkfs.ext4 -f /my_file.iso
mount -o loop /my_file.iso /mnt/