How can I find out MAXUSERS ?

Hi ,

I am working on SUN Solaris OS 2.6.

How can I find out the maximum no. of users ie., MAXUSERS
parameter from the UNIX system.

I have tried to open /etc/system

But , the parameter is not available. It seems , it has taken
default value.

How can I find out ?

Thanks in Advance.
LVL 4
sgantaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

BigRonCommented:
Available and useful parameters can be seen with sysdef -i.  But my Solaris 2.6 seems to no longer list MAXUSERS.
0
sgantaAuthor Commented:
Hi,

Thanks for your quick reply. But I don't see the no. of users
in that list.

Thanks in advance.
0
rickyrCommented:
Hi.............
found this at............
http://www.wins.uva.nl/pub/solaris/solaris2.html#q7.4

The maxusers variable has nothing to do with the number of users allowed on a system. It's one big knob that scales a number of other parameters simultaneously. The standard settings and derivations are more or less as follows, using /etc/system syntax:

* The big knob, scales automatically
set maxusers = <amount of available physical memory in MB>

* Maximum number of allowable processes; currently at most 30000
set max_nprocs = 10 + 16 * maxusers

* Max processes per user (5 are reserved for the super user)
set maxuprc = max_nprocs - 5;

* Number of quota structures (need one per user per filesystem
* w/ quotas)
set ndquot = maxusers * NMOUNT / 4 + max_nprocs

* Maximum size of the directory name lookup cache (DNLC)
set ncsize = 4 * (max_nprocs + maxusers) + 320
set ufs_ninode = ncsize

Hope it helps,
Why do you need to change maxusers, are you running out of
file descriptors?

regards
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sgantaAuthor Commented:
Hi BigRon and Rickyr

Both of your answeres are helped me lot. Thank you
very much. But frankely Rickyr answer is more descriptive
that is why I am accepting his comment as answer, This
is because for the people who refer to the question.

In anyway I will also post the points for BigRon for your
efforts.

Thanks & Regards
sganta
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.