• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

Solaris 2.7- sparc Strange response to ls

Hello,
   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?

Thanks
sameer
0
danths
Asked:
danths
  • 2
1 Solution
 
jlevieCommented:
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.
0
 
danthsAuthor Commented:
Thanks for the reply. What is considered "excessive # of nodes" for 2.7
0
 
jlevieCommented:
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.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now