• Daniel Black's avatar
    MDEV-33301 memlock with systemd still not working · 8a1904d7
    Daniel Black authored
    CapabilityBoundingSet included CAP_IPC_LOCK in MDEV-9095, however
    it requires that the executable has the capability marked in extended
    attributes also.
    
    The alternate to this is raising the RLIMIT_MEMLOCK for the service/
    process to be able to complete the mlockall system call. This needs to
    be adjusted to whatever the MariaDB server was going to allocate.
    Rather than leave the non-obvious mapping of settings and tuning,
    add the capability so its easier for the user.
    
    We set the capability, if possible, but may never be used depending
    on user settings. As such in the Debian postinst script, don't
    complain if this fails.
    
    The CAP_IPC_LOCK also facilitates the mmaping of huge memory pages.
    (see man mmap), like mariadb uses with --large-pages.
    8a1904d7
cpack_rpm.cmake 14.7 KB