On Thu, Nov 13, 2025 at 05:58:13PM -0700, Theo de Raadt wrote:
> > Would it be possible to bump the default number of pty(4) devices? If I
> > see it right, the current limit is 62.
> 
> By default?
> 
> So, another 62*2 more inodes used in everyone's root filesystem?
> 
> No, I think you should run MAKEDEV yourself for your own needs, and not assume
> everyone needs to commit those resources.  That makes very small OpenBSD
> machines too tight.
> 
> There's a reason this is an easily available script that allows self-service
> node creation.
> 
> cd /dev && sh MAKEDEV pty1

Ah. I didn't know that above was possible. I just read MAKEDEV(8) and I
never realized following:

> Where a device name is followed by a star ‘*’, the star must be replaced
> by a unit number.  If units are expected for a device but not provided,
> MAKEDEV will supply the standard numbers in most cases.
> ...
> Pseudo terminals
> ptm         pty master device, see ptm(4).
> pty*        Set of 62 master pseudo terminals, see pty(4).
> tty*        Set of 62 slave pseudo terminals, see tty(4).

Thanks, that helps. My system has more pseudo terminals now.

-- 
Regards,
 Mikolaj

Reply via email to