public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Can only login via ssh 1013 times.
@ 2001-10-11 21:12 war
  2001-10-11 21:36 ` Marcus Meissner
  0 siblings, 1 reply; 4+ messages in thread
From: war @ 2001-10-11 21:12 UTC (permalink / raw)
  To: linux-kernel

Before you read this, I just wanted to see how many times I could login.

I would never need 1000+ users support, but others may need it.

So I was just curious to see how many times I could login with ssh
version 1.
I put in 2048 for the number of ptys allowed for the kernel options,
recompiled and installed.

I made a little expect script which would log me in the next time
I login and so on and so forth.
After I logged in 1013? times or so it said "you are out of ptys..."

Once again I have no need for this amount of users, but I was curious,
how many simultaneous users can be logged on to a linux box at one time?

I'll guess @ 1024 considering I had some xterm's open.

Anyone?




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can only login via ssh 1013 times.
  2001-10-11 21:12 Can only login via ssh 1013 times war
@ 2001-10-11 21:36 ` Marcus Meissner
  2001-10-11 21:46   ` Dan Hollis
  0 siblings, 1 reply; 4+ messages in thread
From: Marcus Meissner @ 2001-10-11 21:36 UTC (permalink / raw)
  To: war, linux-kernel

In article <3BC60B59.71F0367A@starband.net> you wrote:
> Before you read this, I just wanted to see how many times I could login.

> I would never need 1000+ users support, but others may need it.

> So I was just curious to see how many times I could login with ssh
> version 1.
> I put in 2048 for the number of ptys allowed for the kernel options,
> recompiled and installed.

> I made a little expect script which would log me in the next time
> I login and so on and so forth.
> After I logged in 1013? times or so it said "you are out of ptys..."

> Once again I have no need for this amount of users, but I was curious,
> how many simultaneous users can be logged on to a linux box at one time?

> I'll guess @ 1024 considering I had some xterm's open.

> Anyone?

You maximum of open files is too low.

Increase the value /proc/sys/fs/file-max (check current usage in file-nr).

Ciao, Marcus

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can only login via ssh 1013 times.
  2001-10-11 21:36 ` Marcus Meissner
@ 2001-10-11 21:46   ` Dan Hollis
  2001-10-11 23:59     ` Andreas Ferber
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Hollis @ 2001-10-11 21:46 UTC (permalink / raw)
  To: Marcus Meissner; +Cc: war, linux-kernel

On Thu, 11 Oct 2001, Marcus Meissner wrote:
> You maximum of open files is too low.
> Increase the value /proc/sys/fs/file-max (check current usage in file-nr).

Maybe kernel could printk a warning when file-max (or other) limit is
reached...?

-Dan
-- 
[-] Omae no subete no kichi wa ore no mono da. [-]


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Can only login via ssh 1013 times.
  2001-10-11 21:46   ` Dan Hollis
@ 2001-10-11 23:59     ` Andreas Ferber
  0 siblings, 0 replies; 4+ messages in thread
From: Andreas Ferber @ 2001-10-11 23:59 UTC (permalink / raw)
  To: Dan Hollis; +Cc: Marcus Meissner, war, linux-kernel

Hi,

On Thu, Oct 11, 2001 at 02:46:51PM -0700, Dan Hollis wrote:
> 
> Maybe kernel could printk a warning when file-max (or other) limit is
> reached...?

It is already done:

,----[ fs/file_table.c ]-
| [...]
| } else if (files_stat.max_files > old_max) {
|         printk(KERN_INFO "VFS: file-max limit %d reached\n", files_stat.max_files);
|         old_max = files_stat.max_files;
| }
| [...]
`----

Andreas
-- 
       Andreas Ferber - dev/consulting GmbH - Bielefeld, FRG
     ---------------------------------------------------------
         +49 521 1365800 - af@devcon.net - www.devcon.net

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-10-11 23:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-11 21:12 Can only login via ssh 1013 times war
2001-10-11 21:36 ` Marcus Meissner
2001-10-11 21:46   ` Dan Hollis
2001-10-11 23:59     ` Andreas Ferber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox