Tag Info

New answers tagged

2

With any Bourne-like shell: { cat < bigfile | grep -v to-exclude perl -e 'truncate STDOUT, tell STDOUT' } 1<> bigfile For some reason, it seems people tend to forget about that 36 year old and standard read+write redirection operator. (the cat is for GNU grep that otherwise complains if stdin and stdout point to the same file).


10

I can't truly answer but I think this might help: Notice how each fragment is, at most, 32768 blocks in size (a power of 2, that should raise a flag that something is going on, and also give you a hint for something to look for). Also worth noting, those physical offsets between extents are pretty close to each other. From: Ext4 Disk Layout An ext4 ...


15

3 or 4 fragments in a 900mb file is very good. Fragmentation becomes a problem when a file of that size has more like 100+ fragments. It isn't uncommon for fat or ntfs to fragment such a file into several hundred pieces. You generally won't see better than that at least on older ext4 filesystems because the maximum size of a block group is 128 MB, and so ...



Top 50 recent answers are included