public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Updated dynamic pty patch available
@ 2004-02-12  6:00 H. Peter Anvin
  2004-02-12 10:48 ` William Lee Irwin III
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: H. Peter Anvin @ 2004-02-12  6:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: tytso, William Lee Irwin III

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.

	-hpa



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

* Re: Updated dynamic pty patch available
  2004-02-12  6:00 Updated dynamic pty patch available H. Peter Anvin
@ 2004-02-12 10:48 ` William Lee Irwin III
  2004-02-13 15:37 ` Valdis.Kletnieks
  2004-02-14 23:37 ` Matt Mackall
  2 siblings, 0 replies; 4+ messages in thread
From: William Lee Irwin III @ 2004-02-12 10:48 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: linux-kernel, tytso

[-- Attachment #1: Type: text/plain, Size: 896 bytes --]

On Wed, Feb 11, 2004 at 10:00:46PM -0800, H. Peter Anvin wrote:
> 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.

Comes up and boots just fine here on my target boxen. I'm glad to have it.
Bootlog from one of them attached.

I can send in console/etc. logs from both host and target of stress test
runs, if provided stress tests.


-- wli

[-- Attachment #2: isogeny.log.1.gz --]
[-- Type: application/octet-stream, Size: 4515 bytes --]

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

* Re: Updated dynamic pty patch available
  2004-02-12  6:00 Updated dynamic pty patch available H. Peter Anvin
  2004-02-12 10:48 ` William Lee Irwin III
@ 2004-02-13 15:37 ` Valdis.Kletnieks
  2004-02-14 23:37 ` Matt Mackall
  2 siblings, 0 replies; 4+ messages in thread
From: Valdis.Kletnieks @ 2004-02-13 15:37 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: linux-kernel, tytso, William Lee Irwin III

[-- Attachment #1: Type: text/plain, Size: 662 bytes --]

On Wed, 11 Feb 2004 22:00:46 PST, "H. Peter Anvin" said:
> 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.)

Patches, compiles, boots, and runs against 2.6.3-rc2-mm1, both with
and without legacy ptys.  Haven't gotten brave enough to try without
Unix98 ptys, as I need those :)


[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

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

* Re: Updated dynamic pty patch available
  2004-02-12  6:00 Updated dynamic pty patch available H. Peter Anvin
  2004-02-12 10:48 ` William Lee Irwin III
  2004-02-13 15:37 ` Valdis.Kletnieks
@ 2004-02-14 23:37 ` Matt Mackall
  2 siblings, 0 replies; 4+ messages in thread
From: Matt Mackall @ 2004-02-14 23:37 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: linux-kernel, tytso, William Lee Irwin III

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

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

end of thread, other threads:[~2004-02-14 23:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-12  6:00 Updated dynamic pty patch available H. Peter Anvin
2004-02-12 10:48 ` William Lee Irwin III
2004-02-13 15:37 ` Valdis.Kletnieks
2004-02-14 23:37 ` Matt Mackall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox