Solved

Solaris 2.7- sparc Strange response to ls

Posted on 2004-04-24
3
267 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
Comment Utility
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
Comment Utility
Thanks for the reply. What is considered "excessive # of nodes" for 2.7
0
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

772 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now