Solved

Solaris 2.7- sparc Strange response to ls

Posted on 2004-04-24
3
272 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.

740 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