Max number of Folder in Solaris 8


 
Thread Tools Search this Thread
Operating Systems Solaris Max number of Folder in Solaris 8
# 1  
Old 06-29-2006
Max number of Folder in Solaris 8

Hi,

Anyone can help ?

I have 21,000 sub-folder under the main folder .

Now are having some problem writing .

Is there a max no. of sub-folder can be create under Solaris .
If yes ,what is the max no. , can it be configure to increase ?

Thanks
# 2  
Old 06-29-2006
Do you mean just 21000 directories at the same level inside the main directory? Or do you mean /main_dir/subdir1/subdir2... so on?
If you have the first one, then you have probably not hit any restriction except perhaps the disk getting full. Have you checked that?
For the second, you have most probably hit the path length restriction.

The max length of the path a shell can handle depends on the shell. Bash, I think handles paths up to 1024 chars long.
# 3  
Old 06-30-2006
Max number of Folder in Solaris 8

Hi,

It is under one folder

/mainfolder/1
/mainfolder/2
/mainfolder/3
.
.
/mainfolder/21000

Is there a limited on the number
# 4  
Old 06-30-2006
well, i would say, that the maximum number of directories is based on your inode numbers of that filesystem..

Code:
root@mp-wst01 # df -o i .
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c0t2d0s6       2795  866837     0%   /downloads
root@mp-wst01 # mkdir test
root@mp-wst01 # mkdir test2
root@mp-wst01 # mkdir test3
root@mp-wst01 # mkdir test4
root@mp-wst01 # df -o i .
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c0t2d0s6       2799  866833     0%   /downloads
root@mp-wst01 #
root@mp-wst01 #
root@mp-wst01 # x=4
root@mp-wst01 # while (((x+=1)<30000)); do mkdir test$x; done
root@mp-wst01 # df -o i .
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c0t2d0s6      32798  836834     4%   /downloads
root@mp-wst01 # ls | wc -l
   29999
root@mp-wst01 #
root@mp-wst01 # ls -i | head
 665989 test10
 666079 test100
 666979 test1000
 693868 test10000
 693869 test10001
 693870 test10002
 693871 test10003
 693872 test10004
 693873 test10005

i am not sure if there is a limit, but i have one costumer with more than 1 million files in one directory and it works... it's very slow, some commands take up to 5 minutes like "ls", but it works Smilie

regards pressy

btw: it took about 8 minutes to create these 30.000 directories Smilie
# 5  
Old 07-03-2006
Completely agree pressy. The limit is the number of inodes. In a UNIX system:
1 inode = 1 file
When you create a filesystem, you can define the number of inodes, but you cannot change it once created.
Take into account that no matter how much free space you have. If you run out of inodes you won't be able to create more files on your filesystem.
Regards.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Print a row with the max number in a column

Hello, I have this table: chr1_16857_17742 - chr1 17369 17436 "ENST00000619216.1"; "MIR6859-1"; - 67 chr1_16857_17742 - chr1 14404 29570 "ENST00000488147.1"; "WASH7P"; - 885 chr1_16857_18061 - chr1 ... (5 Replies)
Discussion started by: coppuca
5 Replies

2. Shell Programming and Scripting

print max number of 2 columns - awk

Is it possible to print max number of 2 columns - awk note: print max if the integer is positive and print min if the integer is negative input a 1 2 b 3 4 c 5 1 d -3 -5 d -5 -3 output a 2 b 4 c 5 d -5 d -5 (4 Replies)
Discussion started by: quincyjones
4 Replies

3. IP Networking

How to test max number of tcp connections

Hello, I wanna test max tcp connection value. Please suggest how to do that. Thanks. (2 Replies)
Discussion started by: gstoychev
2 Replies

4. Solaris

Max. number of NFS mounts

Hi, I was wondering, whether there is a limit regarding the max number of nfs mounts in Oracle Solaris 10 (newest update). The data center plans to migrate from a fibre channel based storage environment (hitachi) to a nfs based storage environment (netapp). Regarding the Solaris 10 database... (1 Reply)
Discussion started by: schms
1 Replies

5. Shell Programming and Scripting

Max number of variables?

Hi Folks.Just out of interest does anyone know if their is a maximum number of variables that korn shell supports and if so how do I query what it is?Cheers (1 Reply)
Discussion started by: steadyonabix
1 Replies

6. Shell Programming and Scripting

Find max number in a set

Is there a simple way of calculating the max number in a set of variables, so a=1 b=3 c=6 d=30 something that says e=max($a, $b, $c, $d) I've found a way to do it using: a="1" b="3" c="5" d="50" if ; then t=$a else (3 Replies)
Discussion started by: unclecameron
3 Replies

7. Linux

Max Number of remote X sessions

Hello all, I'm looking to implement a Linux server that will host up to 60 simultaneous X sessions, all running firefox to a secured web interface. Does anyone have any experience sizing a system like this? The reason for the setup isn't as important (Since I really don't understand why... (1 Reply)
Discussion started by: ZekesGarage
1 Replies

8. Shell Programming and Scripting

find max number

Hi, i have a file with numbers in it and i was wondering if there's a script i could use to find the max number and have that printed to a new file? example a.txt 18 26 47 34 27 so find the max number in a.txt and print it to b.txt. Thanks! (17 Replies)
Discussion started by: moonbaby
17 Replies

9. Solaris

Max. Possible number of IOs

Hi, Is there a way to find out the maximum possible number of IOs on a Solaris Servers. I'm using SUN Fire V240 (2 Replies)
Discussion started by: justsam
2 Replies

10. UNIX for Dummies Questions & Answers

Max number of concurrent processes

OS - Sun OS7 What sources can I go to to figure out what is the maximun number of processes for OS7 with 2GB of memory. I believe it is 64K processes, but this number reflects resources being swaped. Any help is appreciated SmartJuniorUnix (1 Reply)
Discussion started by: SmartJuniorUnix
1 Replies
Login or Register to Ask a Question