login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
22
Re: [Patch 1/1] init: Provide a kernel start parameter to increase pid_max v2
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Andrew Morton
Subject:
Re: [Patch 1/1] init: Provide a kernel start parameter to increase pid_max v2
Date: Thursday, April 22, 2010 - 1:35 pm
On Thu, 22 Apr 2010 12:08:02 -0500 Robin Holt <holt@sgi.com> wrote:
quoted text
> > Which I'm not entirely sure makes the case for the kernel parameter much > > stronger, though. I wonder if it's not more appropriate to just have a > > total hack saying > > > > if (max_pids < N * max_cpus) { > > printk("We have %d CPUs, increasing max_pids to %d\n"); > > max_pids = N*max_cpus; > > } > > > > where "N" is just some random fudge-factor. It's reasonable to expect a > > certain minimum number of processes per CPU, after all. > > How about: > > pid_max_min = max(pid_max_min, 19 * num_possible_cpus()); > pid_max_baseline = 2048 * num_possible_cpus(); > > if (pid_max < pid_max_baseline) { > printk("We have %d CPUs, increasing pid_max to %d\n"... > pid_max = pid_max_baseline; > } > > > This would scale pid_max_min by a sane amount, leave the default value > of pid_max_min and pid_max untouched below 16 cpus and then scale both > up linearly beyond that.
Something like that would work. We shouild ensure that pid_max cannot end up being less than the current PID_MAX_DEFAULT. --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[Patch 1/1] init: Provide a kernel start parameter to incr ...
, Mike Travis
, (Tue Apr 20, 6:40 pm)
[Patch 1/1] init: Provide a kernel start parameter to incr ...
, Mike Travis
, (Tue Apr 20, 6:52 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Alan Cox
, (Wed Apr 21, 2:23 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Hedi Berriche
, (Wed Apr 21, 9:59 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Rik van Riel
, (Wed Apr 21, 10:18 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Mike Travis
, (Wed Apr 21, 10:54 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Alan Cox
, (Wed Apr 21, 10:58 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Hedi Berriche
, (Wed Apr 21, 12:12 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, John Stoffel
, (Wed Apr 21, 12:14 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Hedi Berriche
, (Wed Apr 21, 12:33 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Greg KH
, (Wed Apr 21, 12:51 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, John Stoffel
, (Wed Apr 21, 1:10 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Hedi Berriche
, (Wed Apr 21, 1:12 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Jack Steiner
, (Wed Apr 21, 3:05 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Greg KH
, (Wed Apr 21, 3:24 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Rik van Riel
, (Wed Apr 21, 3:49 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Greg KH
, (Wed Apr 21, 4:22 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Alan Cox
, (Thu Apr 22, 2:28 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Jack Steiner
, (Thu Apr 22, 5:58 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Robin Holt
, (Thu Apr 22, 6:57 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Linus Torvalds
, (Thu Apr 22, 7:48 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Robin Holt
, (Thu Apr 22, 10:08 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, John Stoffel
, (Thu Apr 22, 11:10 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Andrew Morton
, (Thu Apr 22, 1:35 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Pavel Machek
, (Sun Apr 25, 12:16 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Pavel Machek
, (Sun Apr 25, 5:13 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Linus Torvalds
, (Sun Apr 25, 10:15 am)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Linus Torvalds
, (Sun Apr 25, 10:27 am)
[Patch 1/1] init: Provide a kernel start parameter to incr ...
, Mike Travis
, (Mon Apr 26, 12:48 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Greg KH
, (Mon Apr 26, 1:46 pm)
[Patch 1/1] init: Increase pid_max based on num_possible_c ...
, Mike Travis
, (Mon Apr 26, 5:42 pm)
Re: [Patch 1/1] init: Provide a kernel start parameter to ...
, Mike Travis
, (Mon Apr 26, 5:43 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Christoph Lameter
[PATCH 1/2] Make page->private usable in compound pages V1
Luben Tuikov
Re: Integration of SCST in the mainstream Linux kernel
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
Michal Nazarewicz
Re: [PATCH] USB: Gadget: g_multi: added INF file for gadget with multiple configur...
Jesse Barnes
Re: PCI probing changes
git
:
Jakub Narebski
Re: GSoC 2008 - Mentors Wanted!
Jan Harkes
Re: git-svn and huge data and modifying the git-svn-HEAD branch directly
Andy Parkins
git-fetch fails with error code 128
Marcus Griep
Re: [PATCH 1/3] Git.pm: Add faculties to allow temp files to be cached
Junio C Hamano
Re: [JGIT PATCH 2/2] Decrease the fetch pack client buffer to the lower minimum
git-commits-head
:
Linux Kernel Mailing List
ARM: 5970/1: nomadik-gpio: fix spinlock usage
Linux Kernel Mailing List
sh-sci: update receive error handling for muxed irqs
Linux Kernel Mailing List
No need to do lock_super() for exclusion in generic_shutdown_super()
Linux Kernel Mailing List
x86, msr: Export the register-setting MSR functions via /dev/*/msr
Linux Kernel Mailing List
Input: gpio-keys - add support for disabling gpios through sysfs
linux-netdev
:
Eric Dumazet
[PATCH] net: ALIGN/PTR_ALIGN cleanup in alloc_netdev_mq()/netdev_priv()
Patrick McHardy
[NET_SCHED]: sch_ingress: remove netfilter support
Rose, Gregory V
RE: __bad_udelay in network driver breaks build
Patrick McHardy
Re: no reassembly for outgoing packets on RAW socket
Frans Pop
svc: failed to register lockdv1 RPC service (errno 97).
openbsd-misc
:
ropers
Re: Real men don't attack straw men
elitdostlar
Seks partneri arayan bayanlar bu adreste - 8878xs706x6438
Marcus Andree
Re: This is what Linus Torvalds calls openBSD crowd
Lars D. Noodén
Re: sshd.config and AllowUsers
Henning Brauer
Re: Sun Blade 1000?
Colocation donated by:
Syndicate