Solved

Solaris 2.7- sparc Strange response to ls

Posted on 2004-04-24
3
270 Views
Last Modified: 2013-12-27
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
Comment
Question by:danths
  • 2
3 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 10910327
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
 
LVL 6

Author Comment

by:danths
ID: 10910345
Thanks for the reply. What is considered "excessive # of nodes" for 2.7
0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 10910369
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question