/dev/pts numbering

Durk van Veen nospamplz at example.com
Tue Jun 1 11:24:52 PDT 2004

"Kevin P. Fleming" <kpfleming at linuxfromscratch.org> wrote in message
news:40BCC55E.7030508 at linuxfromscratch.org...
> Durk van Veen wrote:
> > However, on the third box which is a server (no X, runlevel 3, not sure
> > that's relevant) the pts node number seems to always increase. I'm not
> > what happens between reboots, but this box has been up for a little over
> > month and I'm now on /dev/pts/34. This is the only file in /dev/pts as
> > the only user logged in.
> If this machine is running a 2.6 kernel, this is expected behavior. The
> 2.6 kernel now makes no particular effort to supply pts numbers in any
> organized manner, it just uses an available number that it can find
> quickly, and its search algorithm is no longer linear.

I hadn't thought about that, but you are correct. The machines that use the
low numbers run 2.4 and the machine with the high numbers runs a 2.6.5
kernel. Thanks for clearing that up!

More information about the lfs-support mailing list