1833522 Members
3064 Online
110061 Solutions
New Discussion

Re: Too many links

 
Tomek Gryszkiewicz
Trusted Contributor

Too many links

Hello,
i ve got the directory with thousands of files (and the number is growing). When i want to create another file - "too many links" occurs.
System is 11i, vxfs, filesystem on EMC. Is there any limitations on the number or files in directory?

-Tomek
8 REPLIES 8
Tomek Gryszkiewicz
Trusted Contributor

Re: Too many links

I found the solution :)
Thanks anyway

-Tomek
Steven E. Protter
Exalted Contributor

Re: Too many links

Perhaps you could post your solution.

This will give others the ability to search and find it in the future.

Regards,

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Thayanidhi
Honored Contributor

Re: Too many links

Hi Tomek,

I agree with SEP. You should post it. Even I was searching the solution,
but could succeed.

TT
Attitude (not aptitude) determines altitude.
Tomek Gryszkiewicz
Trusted Contributor

Re: Too many links

OK, this was not a problem with the number of files, but with the number of subdirecories, which reaches 32767. I've increased vx_maxlink kernel parameter to 65534, which should be enough for my system.

-Tomek
Todd McDaniel_1
Honored Contributor

Re: Too many links

Tomek,

Ok Im curious now, what/how/why do you have 32k subdirs?

I am curious about the application that needs that many subdirs. Is this a test box of some kind?
Unix, the other white meat.
Tomek Gryszkiewicz
Trusted Contributor

Re: Too many links

It is a production box! And this number of subdirs is creating in one day...
Thats the way this application working - for every process it is creating a new subdirectory, which contains the results of process. And at sunday we had over 50.000 processes...
Todd McDaniel_1
Honored Contributor

Re: Too many links

It just seems odd to me that it creates a new dir everytime a new process is created?

I dont know your app, but it seems to me the subdir should be deleted after the process finishes.

Like I said just seems abnormal to me. Although I havent seen that many high demand systems, so take what I say with a grain of salt.


_____________
My production has over 67k nfiles in use during the afternoon. My nproc is only under 2k
Unix, the other white meat.
Tomek Gryszkiewicz
Trusted Contributor

Re: Too many links

Yes, it looks abnormal, but this is the way the application is working - the appserver is creating processes which are working a few seconds and writing output to a file in its own directiry. I cannot delete this files, because it contains the results of process working... Of course it is archived after few days.