Manfred Spraul
0050ee059f
ipc/msg: increase MSGMNI, remove scaling
...
SysV can be abused to allocate locked kernel memory. For most systems, a
small limit doesn't make sense, see the discussion with regards to SHMMAX.
Therefore: increase MSGMNI to the maximum supported.
And: If we ignore the risk of locking too much memory, then an automatic
scaling of MSGMNI doesn't make sense. Therefore the logic can be removed.
The code preserves auto_msgmni to avoid breaking any user space applications
that expect that the value exists.
Notes:
1) If an administrator must limit the memory allocations, then he can set
MSGMNI as necessary.
Or he can disable sysv entirely (as e.g. done by Android).
2) MSGMAX and MSGMNB are intentionally not increased, as these values are used
to control latency vs. throughput:
If MSGMNB is large, then msgsnd() just returns and more messages can be queued
before a task switch to a task that calls msgrcv() is forced.
[[email protected] : coding-style fixes]
Signed-off-by: Manfred Spraul <[email protected] >
Cc: Davidlohr Bueso <[email protected] >
Cc: Rafael Aquini <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2014-12-13 12:42:52 -08:00
..
ABI
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
2014-12-11 14:27:06 -08:00
accounting
acpi
ACPI / GPIO: Document ACPI GPIO mappings API
2014-11-04 21:58:24 +01:00
aoe
arm
Allwinner Core Additions for 3.19
2014-11-20 17:23:57 +01:00
arm64
arm64: Emulate CP15 Barrier instructions
2014-11-20 16:34:48 +00:00
auxdisplay
backlight
blackfin
block
scsi: add new scsi-command flag for tagged commands
2014-11-12 11:19:40 +01:00
blockdev
zram: report maximum used memory
2014-10-09 22:26:02 -04:00
bus-devices
cdrom
cgroups
mm: embed the memcg pointer directly into struct page
2014-12-10 17:41:09 -08:00
connector
console
cpu-freq
intel_pstate: Add support for HWP
2014-11-12 00:04:38 +01:00
cpuidle
cris
crypto
development-process
Documentation: remove outdated references to the linux-next wiki
2014-10-28 09:06:11 -04:00
device-mapper
dm cache policy mq: simplify ability to promote sequential IO to the cache
2014-11-10 15:25:30 -05:00
devicetree
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2014-12-12 10:08:06 -08:00
DocBook
sound updates for 3.19-rc1
2014-12-11 13:20:50 -08:00
driver-model
PCI changes for the v3.18 merge window:
2014-10-09 15:03:49 -04:00
dvb
early-userspace
EDID
extcon
fault-injection
fb
filesystems
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
2014-12-10 16:10:49 -08:00
firmware_class
fmc
frv
gpio
ACPI / GPIO: Document ACPI GPIO mappings API
2014-11-04 21:58:24 +01:00
hid
hwmon
hwmon: (tmp401) Detect TMP435 on all addresses it supports
2014-12-08 06:48:37 -08:00
i2c
i2c: i801: Add Device IDs for Intel Sunrise Point PCH
2014-10-16 09:16:22 +02:00
i2o
ia64
ide
infiniband
input
Input: elantech - update the documentation
2014-11-13 17:50:23 -08:00
ioctl
cxl: Add documentation for userspace APIs
2014-10-08 20:16:19 +11:00
isdn
ja_JP
kbuild
kdump
kernel: add panic_on_warn
2014-12-10 17:41:10 -08:00
ko_KR
laptops
leds
locking
Merge branch 'core-locking-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2014-12-09 19:59:22 -08:00
m68k
memory-devices
metag
mic
Documentation: update include path for mpssd
2014-10-03 15:48:20 +02:00
mips
misc-devices
mmc
mn10300
mtd
namespaces
netlabel
networking
Documentation (ixgbe.txt): use a decimal address.
2014-12-09 16:02:32 -05:00
nfc
nios2
Documentation: Add documentation for Nios2 architecture
2014-12-08 12:56:06 +08:00
parisc
PCI
pcmcia
phy
platform
power
Merge branch 'pm-qos'
2014-10-23 23:02:36 +02:00
powerpc
cxl: Add documentation for userspace APIs
2014-10-08 20:16:19 +11:00
pps
prctl
Documentation: Restrict TSC test code to x86
2014-10-28 08:46:27 -04:00
pti
ptp
ptp: restore the makefile for building the test program.
2014-10-24 16:07:10 -04:00
rapidio
RCU
Merge branches 'torture.2014.11.03a', 'cpu.2014.11.03a', 'doc.2014.11.13a', 'fixes.2014.11.13a', 'signal.2014.10.29a' and 'rt.2014.10.29a' into HEAD
2014-11-13 10:39:04 -08:00
s390
s390/docs: Remove sections that are not related to s390
2014-11-18 18:22:59 +01:00
scheduler
scsi
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2014-12-12 10:08:06 -08:00
security
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
2014-10-12 10:13:55 -04:00
serial
TTY/Serial driver patches for 3.18-rc1
2014-10-08 06:52:11 -04:00
sh
sound
ALSA: hda - Add "eapd" model string for AD1986A codec
2014-12-10 14:00:13 +01:00
spi
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/doc
2014-10-07 21:14:57 -04:00
sysctl
ipc/msg: increase MSGMNI, remove scaling
2014-12-13 12:42:52 -08:00
target
target: Add documentation on the target userspace pass-through driver
2014-10-02 21:35:54 -07:00
thermal
timers
tpm
trace
tracing: Add additional marks to signal very large time deltas
2014-12-03 17:10:13 -05:00
usb
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
2014-12-12 10:08:06 -08:00
vDSO
vdso: don't require 64-bit math in standalone test
2014-10-25 10:53:44 -04:00
video4linux
[media] platform: Make use of media_bus_format enum
2014-11-14 17:54:08 -02:00
virtual
vm
Documentation: add new page_owner document
2014-12-13 12:42:48 -08:00
w1
watchdog
wimax
x86
x86, mpx: Add documentation on Intel MPX
2014-11-18 00:58:54 +01:00
xtensa
zh_CN
00-INDEX
applying-patches.txt
assoc_array.txt
atomic_ops.txt
documentation: Add atomic_long_t to atomic_ops.txt
2014-11-13 10:34:54 -08:00
bad_memory.txt
basic_profiling.txt
bcache.txt
binfmt_misc.txt
binfmt_misc: touch up documentation a bit
2014-10-14 02:18:16 +02:00
braille-console.txt
bt8xxgpio.txt
btmrvl.txt
BUG-HUNTING
bus-virt-phys-mapping.txt
cachetlb.txt
Changes
Update old iproute2 and Xen Remus links
2014-12-09 13:38:13 -05:00
circular-buffers.txt
clk.txt
coccinelle.txt
CodingStyle
cpu-hotplug.txt
cpu-load.txt
cputopology.txt
crc32.txt
dcdbas.txt
debugging-modules.txt
debugging-via-ohci1394.txt
dell_rbu.txt
devices.txt
digsig.txt
DMA-API-HOWTO.txt
DMA-API.txt
DMA-attributes.txt
dma-buf-sharing.txt
DMA-ISA-LPC.txt
dmaengine.txt
dmatest.txt
dontdiff
dynamic-debug-howto.txt
edac.txt
efi-stub.txt
eisa.txt
email-clients.txt
flexible-arrays.txt
futex-requeue-pi.txt
gcov.txt
highuid.txt
HOWTO
Documentation: remove outdated references to the linux-next wiki
2014-10-28 09:06:11 -04:00
hsi.txt
hw_random.txt
hwspinlock.txt
init.txt
initrd.txt
Intel-IOMMU.txt
intel_txt.txt
io-mapping.txt
io_ordering.txt
iostats.txt
IPMI.txt
IRQ-affinity.txt
IRQ-domain.txt
irqdomain: Introduce new interfaces to support hierarchy irqdomains
2014-11-23 13:01:45 +01:00
IRQ.txt
irqflags-tracing.txt
isapnp.txt
java.txt
kernel-doc-nano-HOWTO.txt
kernel-docs.txt
kernel-parameters.txt
mm/page_owner: keep track of page owners
2014-12-13 12:42:48 -08:00
kernel-per-CPU-kthreads.txt
kmemcheck.txt
kmemleak.txt
Documentation: Add CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF case
2014-10-24 13:59:03 -04:00
kobject.txt
kprobes.txt
kref.txt
ldm.txt
local_ops.txt
lockup-watchdogs.txt
logo.gif
logo.txt
lzo.txt
magic-number.txt
mailbox.txt
doc: add documentation for mailbox framework
2014-10-08 10:39:41 +05:30
Makefile
ManagementStyle
md.txt
media-framework.txt
memory-barriers.txt
Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
2014-12-09 20:23:19 -08:00
memory-hotplug.txt
memory-hotplug: add sysfs valid_zones attribute
2014-10-09 22:25:52 -04:00
module-signing.txt
mono.txt
nommu-mmap.txt
numastat.txt
oops-tracing.txt
padata.txt
parport-lowlevel.txt
parport.txt
percpu-rw-semaphore.txt
phy.txt
pi-futex.txt
pinctrl.txt
pnp.txt
preempt-locking.txt
printk-formats.txt
lib/vsprintf: add %*pE[achnops] format specifier
2014-10-14 02:18:26 +02:00
pwm.txt
ramoops.txt
pstore-ram: Allow optional mapping with pgprot_noncached
2014-12-11 13:38:31 -08:00
rbtree.txt
remoteproc.txt
rfkill.txt
robust-futex-ABI.txt
robust-futexes.txt
rpmsg.txt
rtc.txt
SAK.txt
SecurityBugs
serial-console.txt
sgi-ioc4.txt
SM501.txt
smsc_ece1099.txt
sparse.txt
stable_api_nonsense.txt
stable_kernel_rules.txt
static-keys.txt
SubmitChecklist
SubmittingDrivers
SubmittingPatches
Documentation/SubmittingPatches: Reported-by tags and permission
2014-10-29 08:56:46 -04:00
svga.txt
sysfs-rules.txt
sysrq.txt
this_cpu_ops.txt
unaligned-memory-access.txt
unicode.txt
unshare.txt
vfio.txt
VGA-softcursor.txt
vgaarbiter.txt
video-output.txt
vme_api.txt
volatile-considered-harmful.txt
workqueue.txt
xillybus.txt
xz.txt
zorro.txt