On Oct 16, 2007 21:51 -0700, david@lang.hm wrote:Yes, just set the feature flag via tune2fs and then run e2fsck on it. The second e2fsck shown below is just a demonstration of the speedup. # tune2fs -O uninit_groups /dev/foo tune2fs 1.39.cfs9 (7-Apr-2007) Please run e2fsck on the filesystem. # time e2fsck -fy /dev/foo e2fsck 1.39.cfs9 (7-Apr-2007) Group descriptor 0 checksum is invalid. Fix? yes {repeats for all groups} Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information lustre-OST0000: 9099/1640160 files (0.4% non-contiguous), 221996/6554520 blocks real 0m17.273s user 0m4.930s sys 0m1.749s # time e2fsck -fy /dev/hda3 e2fsck 1.39.cfs9 (7-Apr-2007) Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information lustre-OST0000: 9099/1640160 files (0.4% non-contiguous), 221996/6554520 blocks real 0m2.412s user 0m0.604s sys 0m0.077s The caveats are: (a) this is a read-only feature, so you can't mount such a filesystem r/w on an older kernel. You can disable it with "tune2fs -O ^uninit_groups" and run a full e2fsck on it again. (b) I don't think there is an official e2fsprogs release with support for this feature yet (it's in the pipe, however). (c) The actual speedup depends on how full the filesystem is, but since ext* usually has way too many inodes, it is generally pretty good. Cheers, Andreas -- Andreas Dilger Principal Software Engineer Cluster File Systems, Inc. -
| Jesse Barnes | Re: [stable] [BUG][PATCH] cpqphp: fix kernel NULL pointer dereference |
| Greg KH | [003/136] p54usb: add Zcomax XG-705A usbid |
| Magnus Damm | [PATCH 03/07] ARM: Use shared GIC entry macros on Realview |
| Oliver Neukum | Re: [Bug #13682] The webcam stopped working when upgrading from 2.6.29 to 2.6.30 |
| Martin Schwidefsky | Re: [PATCH] optimized ktime_get[_ts] for GENERIC_TIME=y |
git: | |
| Junio C Hamano | Re: Some advanced index playing |
| Jeff King | Re: confusion over the new branch and merge config |
| Robin Rosenberg | Re: cvs2svn conversion directly to git ready for experimentation |
| Linus Torvalds | git binary size... |
| Ævar Arnfjörð Bjarmason | Re: Challenge with Git-Bash |
| Linux Kernel Mailing List | md: move allocation of ->queue from mddev_find to md_probe |
| Linux Kernel Mailing List | md: raid0: Represent zone->zone_offset in sectors. |
| Linux Kernel Mailing List | [ARM] S3C24XX: Add gpio_to_irq() facility |
| Linux Kernel Mailing List | md: raid0_make_req |
