[csw-maintainers] map-file getpagesizes vs. getpagesizes2

Jan Holzhueter jh at opencsw.org
Fri Oct 19 08:43:43 CEST 2012


Am 18.10.12 20:06, schrieb Dagobert Michelsen:

> I guess you could try to use –Xs mode and then redefine getpagesize2 back to getpagesize.
> Or provide a copy of the header file locally and add -I<dir> to EXTRA_CPPFLAGS.

-Xs did not work or I did not use it the right way. It broke lot of stuff :)

I pulled the old header file from
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/sys/mman.h?r=4426%3A1b5c93035912

looks like this is working. No error in the test suite of memchached
(which has a big one)
http://sourceforge.net/apps/trac/gar/changeset/19468


This hack should probably not be used for stuff like databases. Because
this prevents to alloc e.g. real big pages like 1GB on AMD64 Systems etc.
So atm mysql is build with getpagesizes2 and probably should stay this
way. Database servers should be patched anyway :)


Greetings
Jan






More information about the maintainers mailing list