The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Suggestion needed jisha Shell Programming and Scripting 5 07-03-2008 05:12 AM
Need help in Directory Structure murtaza Shell Programming and Scripting 5 03-29-2007 11:14 AM
MV files from one directory structure(multiple level) to other directory structure srmadab UNIX for Advanced & Expert Users 4 09-13-2006 04:01 PM
Copying a Directory Structure to a new structure jhansrod UNIX for Dummies Questions & Answers 8 07-27-2005 06:24 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-04-2008
qfs0804 qfs0804 is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 2
Question suggestion about file directory structure needed

Hello:
I have a large amout of image files that will be stored in Solaris machine. I read some posts here, but still not sure what to do, please advise. Thanks.
The question is:
shoudl i put all these files in as many level of directories, or put in 2-3 level directories? i.e. which one is better in terms of performance (search a file)? below?
1) top_dir
d1---d10 (5000 files in it)
----d20 (5000 files in it)
----d30 (5000 files in it)
d2---d40 (5000 files in it)
---d50 (5000 files in it)
---d50 (5000 files in it)
d3---d60 (5000 files in it)
---d70 (5000 files in it)
---d80 (5000 files in it)
....
2) top_dir
d1---d10 (10000 files in it)
----d20 (10000 files in it)
----d30 (10000 files in it)
d2---d40 (10000 files in it)
---d50 (10000 files in it)
---d50 (10000 files in it)
a file is from 50k to 1.5MB in size.

general guide line will be good.

thanks
  #2 (permalink)  
Old 08-04-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
How many d10, d20, ... directories are there? If there are only 10 of them, i.e. d10 - d90, I wouldn't bother with the d1/d2 level.

Keep in mind that you should try and keep the full path names short, because the Solaris DNLC (directory name lookup cache) only records path names of 32 characters or less... or at least that was the case last time I did a performance management course, on Solaris 8. Maybe (hopefully!) it has been increased in 9 or 10.
  #3 (permalink)  
Old 08-05-2008
ynilesh's Avatar
ynilesh ynilesh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore, India.
Posts: 222
Its again depend how frequently you access your directory and files.

- nilesh
  #4 (permalink)  
Old 08-05-2008
qfs0804 qfs0804 is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 2
thanks for your replies. around

2000 - 4000 subdirectories (d1 ... d4000)

access files every minute, but access a few files concurrently.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0