lkml.org 
[lkml]   [2004]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Updated dynamic pty patch available
On Wed, Feb 11, 2004 at 10:00:46PM -0800, H. Peter Anvin wrote:
> ftp://ftp.kernel.org/pub/linux/kernel/people/hpa/dynpty-test-2.patch
>
> ... against the current top-of-bkcvs 2.6 kernel.
>
> This version of the patch makes *both* legacy and Unix98 ptys configure
> options (Unix98 only if EMBEDDED), and the number of legacy ptys is a
> configuration option -- useful if you want to reduce the memory
> footprint, or if you really wants lots of these guys (256 is no longer a
> hard limit.)
>
> Additionally, I have added a sysctl option -- /proc/sys/kernel/pty/max
> -- for limiting the number of Unix98 ptys. It was way too effective a
> DoS to eat up all kernel memory by opening /dev/ptmx repeatedly. The
> default is 4096, but it can be adjusted all the way up to 2^20 if desirable.

Looks good, I'll drop this into -tiny when I have proper net access
again.

--
Matt Mackall : http://www.selenic.com : Linux development and consulting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site