ext4: 大きなディレクトリーエントリーは ls 出力を遅くする
Issue
ls
コマンドは初回実行時に時間がかかります。
# time ls /mnt &> /dev/null
real 1m1.896s
user 0m0.002s
sys 0m0.142s
- dentry がキャッシュされるため、その後の実行ははるかに高速になります。
# time ls /mnt &> /dev/null
real 0m0.048s
user 0m0.001s
sys 0m0.046s
ls
でリストされるエントリーはそれほど多くありません
Environment
- RHEL 6
- RHEL 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.