Interview Prep/Linux/Load, CPU and I/O performance

Running `ls` or any command on the server takes several seconds to start.

IntermediateTroubleshootingLoad, CPU and I/O performance
Answer

Likely causes → Name service lookups timing out (user/group lookups to an unreachable LDAP/SSSD server), a slow shell profile, or a hung NFS mount in PATH.

Diagnose →

time /bin/true
strace -f -tt -e trace=connect,openat ls 2>&1 | tail -20
grep -E 'passwd|group' /etc/nsswitch.conf
systemctl status sssd

Fix → Restore the directory service, or order files before sss/ldap in nsswitch. Remove NFS paths from PATH.

Prevent → Enable SSSD caching and monitor directory reachability.

All Linux questions Roadmap: Linux

More on Load, CPU and I/O performance