I currently run a 6x500gb software raid5 on ext3 which is beginning to fill up.
/dev/md1 1kblocks: 2403601996 used: 2019513560 avail: 384088436 85% /save
I had it hovering around 1.5tb for a while until I recently filled it past 2tb. Since then, I've noticed that mkdirs seem to take up a lot of time.
This is a shared fileserver on a local network of 13 other computers. So at any given time, other people are accessing files over the network and I'll notice that it'll usually be transfering at ~1m/sec on average, 3-4m/s high and 10m/s peaks. The read/write is fine. Everything works great when I download onto it 10m/s from the internet while it's dishing out 10m/s to local users.
But whenever I use a mkdir on the raid, all other disk access stops for 10 seconds. Here's me doing a mkdir test.
I'll notice that shortly after I create this directory, I have a small window of time in which I can mkdir test2, mkdir test3, etc and it won't take up any time at all.
Here's me running fibmap script on a recently created directory on the raid which I put 6 files into.
Code:
root@lanfear:~/fibmap# ./fibmap.pl /save/s/ps/1/
Configurator ran OK; FIBMAP is 1; BLOCK_SIZE is 4096
80 231.2MB 2959.95kB /save/s/ps/1/1.avi
61 174.4MB 2927.02kB /save/s/ps/1/3.avi
61 231.7MB 3889.31kB /save/s/ps/1/6.avi
49 174.4MB 3645.63kB /save/s/ps/1/5.avi
48 174.3MB 3719.08kB /save/s/ps/1/2.avi
47 174.4MB 3800.17kB /save/s/ps/1/4.avi
Non-contiguous:
Files 6 (1160.5MB, avg. 198055.67kB per file), blocks 346, average block 3434.49kB
No contiguous files found!
The first number is how many fragments the file is split into. Second # is the file size and 3rd # is the average size of each fragment.
As a comparison, I ran this script on a folder of 4 videos that are on my desktop (which is on a 2x250gb software raid1)
Code:
root@lanfear:~/fibmap# ./fibmap.pl ~/Desktop/temp/
Configurator ran OK; FIBMAP is 1; BLOCK_SIZE is 4096
316 623.4MB 2020.24kB /home/dime/Desktop/temp/ap.wmv
276 524.3MB 1945.29kB /home/dime/Desktop/temp/p2.avi
220 587.9MB 2736.22kB /home/dime/Desktop/temp/dh.mp4
165 327.9MB 2034.74kB /home/dime/Desktop/temp/im.wmv
Non-contiguous:
Files 4 (2063.5MB, avg. 528247.11kB per file), blocks 977, average block 2162.73kB
No contiguous files found!
So, it doesn't seem like the raid is anymore fragmented than my normal system drive, which is sitting pretty at:
/dev/md0 1k blocks: 241251392 used: 58511572 avail: 170581436 26% /
fibmap.pl is a script from here: http://www2.lut.fi/~ilonen/ext3_fragmentation.html
Bookmarks