public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: linux-kernel@vger.kernel.org, torvalds@osdl.org,
	arjan@linux.intel.com, pavel@suse.cz
Subject: Re: [PATCH] binfmt: turn MAX_ARG_PAGES into a sysctl tunable
Date: Mon, 26 Jun 2006 09:57:02 -0700	[thread overview]
Message-ID: <20060626095702.8b23263d.akpm@osdl.org> (raw)
In-Reply-To: <1151060089.30819.2.camel@lappy>

On Fri, 23 Jun 2006 12:54:49 +0200
Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:

> Some folks find 128KB of env+arg space too little. Solaris provides them with
> 1MB. Manually changing MAX_ARG_PAGES worked for them so far, however they
> would like to run the supported vendor kernel.
> 
> In the interest of not penalising everybody with the overhead of just
> setting it larger, provide a sysctl to change it.
> 
> Compiles and boots on i386.

AFAICS, the main downside of simply increasing MAX_ARG_PAGES is that
fixed-size array in `struct linux_binprm'.  You've solved that via kmalloc,
so can we avoid the sysctl?  We can now increase MAX_ARG_PAGES to something
ridiculous with basically no cost?  It's swappable memory and should be
limited by the RLIMIT_RSS which we don't implement ;)

Also, I'm not sure that we need max_arg_pages_min and max_arg_pages_max -
it's a privileged operation and we can just let root decide whether or not
to screw up the machine.

  reply	other threads:[~2006-06-26 16:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-23 10:54 [PATCH] binfmt: turn MAX_ARG_PAGES into a sysctl tunable Peter Zijlstra
2006-06-26 16:57 ` Andrew Morton [this message]
2006-06-26 17:21   ` Linus Torvalds
2006-06-26 22:35     ` Ingo Molnar
2006-06-26 22:46       ` Ingo Molnar
2006-06-26 23:02       ` Linus Torvalds
2006-06-27 11:09         ` Ingo Molnar
2006-06-27 12:16           ` Arjan van de Ven
2006-06-27 12:14             ` Ingo Molnar
2006-07-18 12:28             ` Peter Zijlstra
2006-06-28  1:07           ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060626095702.8b23263d.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=a.p.zijlstra@chello.nl \
    --cc=arjan@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox