ls -l : response time slow

Hi all,

If I give ls , it lists files in 1 second.
It I give ls -l , it takes 8 seconds
There are only 55 files in the directory.
Any explanation?

Thanks
Wilson

That's an odd one.

What OS are you running? What about your HD, is it fairly old?
When you say there's only 55 files, what are you looking at, what file types are they?

Is "ls -ln" any faster?

Hi,

OS - Digital Unix 4.0D
File System is advfs
Hard Disk 9GB x 3 RAID 5 for this file system

Binary Executables and Ascii files are present in this directory.

ls -ln also takes time

Regds
Wilson

If "ls -ln" had been fast, we could point the finger at nis or whatever. But the difference between "ls" and "ls -ln" really is mostly just 55 stat() calls. Is "ls -s" also slow? It too, needs to stat() the files.

I don't understand what might make stat() slow for you though. A hardware problem maybe. Have you checked the logs for your raid?