ext4 : big directory entries produce slow ls output

Solution In Progress - Updated -


  • ls command takes many time on first run
# time ls /mnt &> /dev/null

real    1m1.896s
user 0m0.002s
sys 0m0.142s
  • Any subsequent run is much faster due to dentries being cached
# time ls /mnt &> /dev/null

real    0m0.048s
user 0m0.001s
sys 0m0.046s

Not much entries are listed by ls


  • RHEL 6
  • RHEL 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content