1837035 Members
3241 Online
110111 Solutions
New Discussion

Maxusers

 
SOLVED
Go to solution
Shahul
Esteemed Contributor

Maxusers

Hi

I have seen in some boxes, the number of users logged in is larger than the maxusers value set in kernel.

"maxusers" stands for Maximum users can be logged in at a given point of time..Right? Then how the number of users exceeding the set value?



TIA
Shahul
7 REPLIES 7
Rich Wright
Trusted Contributor

Re: Maxusers

I think that maxusers is only a guess number that is used to calculate other relevant parameters. Not a hard limit.
Nick Wickens
Respected Contributor
Solution

Re: Maxusers

The maxusers parameter refers to simultaneous resource allocation rather than actual number of users on the system.

If you go into kernel parameter configuration on SAM and select help there is a usefull describtion of each parameter avaiable.
Hats ? We don't need no stinkin' hats !!
Hai Nguyen_1
Honored Contributor

Re: Maxusers

Shahul,

Take a look at this:
http://docs.hp.com/hpux/onlinedocs/os/11.0/tuningwp.html#maxusers

for detailed info. Below is an excerpt of it:
...It is used to limit system resource allocation and not the actual number of users on the system....

Hai
Bill Hassell
Honored Contributor

Re: Maxusers

Actually, maxusers is simply a macro value in SAM's formula calculations for selected kernel parameters. It has no connection with the number of users that can login. SAM starts with a template for building the kernel and makes some basic assumptions about what a 'typical' user might need.

For instance, the number of processes needed by one user might be 3 (a telnet daemon, a shell, a copy of vi, etc) so the default value of nproc (maximum number of processes on the entire machine) might be set as:

nproc=(maxusers * 3) + 45

where 45 represents an approximate number of kernel and daemon processes that are always running, regardless of user count.

Then other kernel parameter formulae might depend on these such as nfile:

nfile=(nproc * 6) + 250

So nfile depends on nproc which depends on maxusers. BUT: these are only approximations since one user might login 5 times. Therefore, maxusers is more like maxsessions. But that still isn't right if you are using a client/server database where no one actually logs into the computer but connects to the database through a network port.

And if you use SAM to change a value to a fixed amount (ie, replace the formula with a single number) then maxusers has no effect on that parameter when the kernel is built.

After you become more familiar with kernel parameters, you will probably override most of the common parameters with fixed numbers to more accurately reflect your system's environment.


Bill Hassell, sysadmin
James R. Ferguson
Acclaimed Contributor

Re: Maxusers

Hi Shahul:

Hai is correct. 'maxusers' is really not a kernel parameter but a define used in the forumula for composing values of other kernel parameters. See here:

http://docs.hp.com/hpux/onlinedocs/os/KCparam.MaxUsers.html

Regards!

...JRF...
Martin Johnson
Honored Contributor

Re: Maxusers

>Sigh< How can I add anything after Bill's definitive reply. Thanks, Bill.

Marty
Rodney Hills
Honored Contributor

Re: Maxusers

At one time I heard that your licensed number of users is only for sessions that are connected through direct connection (ie muxes).

telnet sessions don't count in the systems licensing scheme for user connections.

-- Rod Hills
There be dragons...