Solaris 2.7- sparc Strange response to ls

   One of our apps creates a lot of files ( intermediate as well as final ) during its course of run. The app runs as a deamon and creates approx. 5000+ files on a file system under multiple directories. When I do "ls or any of the ls combinations" just the size of the directory id displayed rather than a listing a of all the files. When some of the files are cleared "ls" behaves normally. No core dumps or any system messages. What might be going on here?

Who is Participating?
jlevieConnect With a Mentor Commented:
That depends in part on the length of the file name, file sizes, etc. Based on experince I'd more that a couple of thousand files is probably in dangerous territory.
An excessive number of nodes will result in the in-memory area becoming to large and 'ls' will fail. Since it doesn't sort the data and prints out the information for each node as it is found 'find' will work where 'ls' fails.
danthsAuthor Commented:
Thanks for the reply. What is considered "excessive # of nodes" for 2.7
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.