Operating System - HP-UX
1834208 Members
2312 Online
110066 Solutions
New Discussion

max number of files used by users

 
SOLVED
Go to solution
skyblue
Occasional Contributor

max number of files used by users

Hi, could you tell me what is the maxium number of files used by every user in the system?

Thanks ..
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: max number of files used by users

No, especially given the amount of data you are supplying. Using "The Force" I conclude that you have 719 files in use at this moment; of course, by the time you read this that value will no longer be valid.

If you have Glance then this is easy but sar -v can also tell you the number of files in use. There are two different limits in play, nfile - the global file table but if 50 users/processes have the same file open (e.g. /etc/hosts) that only counts as 1. The other limit is maxfiles and that is a per-process limit.
If it ain't broke, I can fix that.
Mel Burslan
Honored Contributor

Re: max number of files used by users

I am not sure if this is what you are looking for but, there is no OS imposed limit for maximum number of files that can be open at the same time.

There are certain kernel parameters which imposes the limits but they are either per process basis or system-wide.

maxfiles : soft limit for # of files a process can access
maxfiles_lim : hard limit for # of files a process can access
nfiles : number of files that can be open at any given time on the system, regardles who opens them.


On the other hand if you are not looking for kernel limits but you are looking for the number of files on disks, I do not believe there are any limits unless you enable accounting subsystem and set the value to whatever you wish. (I am not even sure if there is such a limit on accounting system)

________________________________
UNIX because I majored in cryptology...
Michael Steele_2
Honored Contributor

Re: max number of files used by users

Depends upon the system wide kernel parm.s like nfile and maxusers. Refer to the formula.

http://docs.hp.com/en/939/KCParms/KCparam.Nfile.html

Depends upon the shell and how the command ulimit is used by the shell. In posix, ulimit -n limits users to 60, but in ksh, its unlimited.

http://www.faqs.org/faqs/hp/hpux-faq/

And if you enable quotas you can use edquota for user limits.

http://docs.hp.com/en/B2355-60103/edquota.1M.html
Support Fatherhood - Stop Family Law
inventsekar_1
Respected Contributor

Re: max number of files used by users

"could you tell me what is the maxium number of files used by every user in the system?"

is ur question is:
"could you tell me what is the maxium number of files CAN BE used by every user in the system?" ----no limits for this(i think)

"could you tell me what is the maxium number of files used by every user in the system AT A TIME?" ---- nfile parameter. its default value is 65536

"could you tell me the number of files in use at this moment in the system?" Clay given the solution.




Be Tomorrow, Today.