All of lore.kernel.org
 help / color / mirror / Atom feed
* PTS alocation problem with 2.6.4/2.6.5
@ 2004-04-05 22:53 Andrzej Krzysztofowicz
  2004-04-05 23:59 ` Andrew Morton
  0 siblings, 1 reply; 5+ messages in thread
From: Andrzej Krzysztofowicz @ 2004-04-05 22:53 UTC (permalink / raw)
  To: kernel list


I noticed serious problem with PTS alocation on kernels 2.6.4 and 2.6.5:
It seems that once alocated /dev/pts entries are never reused, leading to
pty alocation errors. The testing system is fully compiled with kernel 2.2.x
headers (including glibc), but informations from my coleagues using systems
compiled on 2.4/2.6 headers seems to behave similarily.
The testcase and used kernel configuration are shown below.
Kernel 2.6.3 does not have this problem.
Is it bug or feature (and I am doing sth wrong) ?

NOTE: I realize that my glibc does not support minors > 255, so no more pts-es
      is available, but problem is leakage of _free_ pts-es.

[ankry@green SPECS]$ for a in $(seq 4);do ssh -t remote tty;done
/dev/pts/253
Connection to remote closed.
/dev/pts/254
Connection to remote closed.
/dev/pts/255
Connection to remote closed.
not a tty
         Connection to remote closed.
[ankry@green SPECS]$ ssh remote cat /proc/sys/kernel/pty/{max,nr}
2048
1
$ ssh olimp ls /dev/pts
1

.config tested (selected entries)

CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=2048

or

CONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not set

(full .config available on request)

-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Gdansk University of Technology

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

end of thread, other threads:[~2004-04-06 18:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-05 22:53 PTS alocation problem with 2.6.4/2.6.5 Andrzej Krzysztofowicz
2004-04-05 23:59 ` Andrew Morton
2004-04-06  5:11   ` Andrzej Krzysztofowicz
2004-04-06 17:55   ` Jamie Lokier
2004-04-06 18:16     ` Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.