[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ls -i: print consistent inode numbers also for mount points
From: |
Eric Blake |
Subject: |
Re: [PATCH] ls -i: print consistent inode numbers also for mount points |
Date: |
Tue, 01 Sep 2009 05:35:54 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Ondřej Vašík on 8/31/2009 7:07 AM:
>> It's a shame to have to pessimize ls -i performance, even by this
>> small amount on linux-based kernels, but correctness definitely
>> trumps performance, here.
>
> Yep, it has some performance impact...
> checked `time ./ls -i1R /home /dev /usr /var /lib >myinodes with
> approximate number of 31k dirs, 450k files on ext3
>
> and results are
> old binary without the patch:
> real 2m5.631s
> user 0m3.012s
> sys 0m4.815s
>
> new binary:
> real 6m8.560s
> user 0m3.947s
> sys 0m30.572s
Have we reported this to the Linux developers, along with chapter and
verse of POSIX 2008 which shows they are non-compliant?
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkqdBxoACgkQ84KuGfSFAYCZDACg0neYCnsLF2I4KaWCRrY0SB64
UV4AnjuV87irVDZ7Kd2cbdRlyuewjeDd
=Uy+2
-----END PGP SIGNATURE-----
- Re: [PATCH] ls -i: print consistent inode numbers also for mount points,
Eric Blake <=