[PATCH] Set SHMLBA to page size on hppa (BZ locale/19838)

John David Anglin dave.anglin@bell.net
Sun Apr 16 18:48:00 GMT 2017


Setting SHMLBA to 4MB results in applications failing to allocate memory using mmap too early.
Examples are localedef and perl.

The attached patch fixes this by reducing SHMLBA to the page size (4096).

The patch has been installed on Debian for a long time.  It goes back to the following discussion:
https://patchwork.kernel.org/patch/3933841/

Although there may be issues in old IPC applications, the general consensus is that the smaller
4KB value is more useful.  I might add that the kernel code in sys_parisc.c does 4MB color alignment
for file and shared maps.

Please install.

Dave
--
John David Anglin	dave.anglin@bell.net


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: shmlba.d.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170416/b092c32b/attachment.txt>


More information about the Libc-alpha mailing list