ext4 : big directory entries produce slow ls output

Solution In Progress - Updated -

Issue

  • 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

Environment

  • RHEL 6
  • RHEL 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In