[issue2183] kern.ipc.shmmax is limited to 31 bits

Francois Tigeot (via DragonFly issue tracker) sinknull at leaf.dragonflybsd.org
Wed Nov 9 08:26:25 PST 2011


New submission from Francois Tigeot <ftigeot at wolfpond.org>:

System: DragonFly 2.10/x86_64
kern.ipc.shmmax

Trying to set the kern.ipc.shmmax limit to 4GB fails:

# sysctl kern.ipc.shmmax=4294967296
kern.ipc.shmmax: 33554432 -> 0

2^31 is interpreted as a negative number:
# sysctl kern.ipc.shmmax=2147483648 (2^31)
kern.ipc.shmmax: 0 -> -2147483648

and (2^31 -1) as a positive one:
#sysctl kern.ipc.shmmax=2147483647
kern.ipc.shmmax: -2147483648 -> 2147483647

----------
keyword: kernel, x86-64
messages: 10282
nosy: ftigeot
priority: bug
status: unread
title: kern.ipc.shmmax is limited to 31 bits

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue2183>
_____________________________________________________






More information about the Bugs mailing list