Re: setting up max ptys under 5.x

From: Joshua Oreman (oremanj_at_webserver.get-linux.org)
Date: 06/27/03

  • Next message: Thomas Moestl: "Re: PLEASE REVIEW: Adding a pci_if method to facilitate specialized PCI bus drivers"
    Date: Fri, 27 Jun 2003 12:49:29 -0700
    To: Josh Brooks <user@mail.econolodgetulsa.com>
    
    

    On Fri, Jun 27, 2003 at 12:29:41PM -0700 or thereabouts, Josh Brooks wrote:
    >
    >
    > On Fri, 27 Jun 2003, Joshua Oreman wrote:
    >
    > > > maxusers to 512 ... any new toggles I should know of to be able to use max
    > > > ptys on the system, or can I just follow whatever directions I hope to
    > > > receive regarding creating the devices ?
    > >
    > > 5.x creates the devices automatically. So if you have 256 users, you'll have 256
    > > ptys. If you have 0 users, you'll have 0 ptys. maxusers has no effect, setting
    > > it to 512 does seem a bit high...
    >
    > Thank you - that is nice to know. I have a related question - does this
    > apply inside of jails as well ? I remember some testing on 4.x I was
    > doing with 16 jails, and even though I had 256 pty /dev nodes, if the /dev
    > inside the jail only had 32 of them (the default) then the jail users
    > would start getting denied logins and running out of ptys generally.
    >
    > This happened even tho the underlying fbsd system had all 256 ptys - the
    > only way to solve it was to create all 256 ptys in the /dev of _the jail_
    > as well.
    >
    > How will this work in 5.x - will it be automatic for everyone, or should I
    > perhaps mount a devfs for each jail ?/?

    Devfs manages the ptys, so you will have to mount a devfs in the jail.
    I would suggest using devd to prevent the more "sensitive" devices from
    going in. Or just rm them.

    -- Josh

    >
    > thnks!
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Thomas Moestl: "Re: PLEASE REVIEW: Adding a pci_if method to facilitate specialized PCI bus drivers"

    Relevant Pages

    • jail and mount points.
      ... At the moment 'df' displays the mount points for the whole ... instead of those available in the jail. ... devfs on /dev ... procfs on /proc ...
      (freebsd-current)
    • current state of the art / best practice for devfs in a jail ?
      ... I have been researching the various of ways people add devfs to a jail to ... However I do not know of a `nonewdev` option for mount - but does that ... is it still true that mknod will not work from within a jail (I ...
      (freebsd-hackers)
    • Re: [PATCH] jail NG schript patch for mounting devfs and procfs automatically
      ... > because the jail filesystem wasn't mounted when the startup process ... > wants to mount it. ... > Going this way allows us to control which jail could be used via ssh (or ... and apply them to the devfs mounted in a jail. ...
      (freebsd-current)
    • Re: BIND inside a jail on FreeBSD 6.0
      ... devfs rule: ioctl DEVFSIO_RAPPLY: Operation not permitted ... (I realize that BIND already runs in a chroot'd environment, ... I tried mounting the devfs outside the jail to the jail's ...
      (freebsd-questions)
    • Re: Pseudoterminals increase: compilation error
      ... Subject: Pseudoterminals increase: compilation error ... number of ptys expect could see. ... For some reason devfs creates ttys differently. ...
      (freebsd-stable)