[Ocfs2-users] "ls" taking ages on a directory containing 900000 files

Amaury Francois amaury.francois at digora.com
Tue Dec 4 08:54:04 PST 2012


Hello,

We are running OCFS2 1.8 and on a kernel UEK2. An ls on a directory containing approx. 1 million of files  is very long (1H). The features we have activated on the filesystem are the following :

[root at pa-oca-app10 ~]# debugfs.ocfs2 -R "stats" /dev/sdb1
        Revision: 0.90
        Mount Count: 0   Max Mount Count: 20
        State: 0   Errors: 0
        Check Interval: 0   Last Check: Fri Nov 30 19:30:17 2012
        Creator OS: 0
        Feature Compat: 3 backup-super strict-journal-super
        Feature Incompat: 32592 sparse extended-slotmap inline-data metaecc xattr indexed-dirs refcount discontig-bg clusterinfo
        Tunefs Incomplete: 0
        Feature RO compat: 1 unwritten
        Root Blknum: 5   System Dir Blknum: 6
        First Cluster Group Blknum: 3
        Block Size Bits: 12   Cluster Size Bits: 12
        Max Node Slots: 8
        Extended Attributes Inline Size: 256
        Label: exchange2
        UUID: 2375EAF4E4954C4ABB984BDE27AC93D5
        Hash: 2880301520 (0xabade9d0)
        DX Seeds: 1678175851 1096448356 79406012 (0x6406ee6b 0x415a7964 0x04bba3bc)
        Cluster stack: o2cb
        Cluster name: appcluster
        Cluster flags: 1 Globalheartbeat
        Inode: 2   Mode: 00   Generation: 3567595533 (0xd4a5300d)
        FS Generation: 3567595533 (0xd4a5300d)
        CRC32: 0c996202   ECC: 0819
        Type: Unknown   Attr: 0x0   Flags: Valid System Superblock
        Dynamic Features: (0x0)
        User: 0 (root)   Group: 0 (root)   Size: 0
        Links: 0   Clusters: 5242635
        ctime: 0x508eac6b 0x0 -- Mon Oct 29 17:18:51.0 2012
        atime: 0x0 0x0 -- Thu Jan  1 01:00:00.0 1970
        mtime: 0x508eac6b 0x0 -- Mon Oct 29 17:18:51.0 2012
        dtime: 0x0 -- Thu Jan  1 01:00:00 1970
        Refcount Block: 0
        Last Extblk: 0   Orphan Slot: 0
        Sub Alloc Slot: Global   Sub Alloc Bit: 65535


May inline-data or xattr be the source of the problem ?

Thank you.

[Description : Description : Description : cid:image001.png at 01CD01F3.35091200]


Amaury FRANCOIS   *  Ingénieur
Mobile +33 (0)6 88  12 62 54
amaury.francois at digora.com<mailto:amaury.francois at digora.com>

Siège Social - 66 rue du Marché Gare - 67200 STRASBOURG
Tél : 0 820 200 217 - +33 (0)3 88 10 49 20

[Description : test]



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20121204/b4eec0ea/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 5635 bytes
Desc: image001.png
Url : http://oss.oracle.com/pipermail/ocfs2-users/attachments/20121204/b4eec0ea/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 11516 bytes
Desc: image002.jpg
Url : http://oss.oracle.com/pipermail/ocfs2-users/attachments/20121204/b4eec0ea/attachment-0001.jpg 


More information about the Ocfs2-users mailing list