[MDEV-18851] modernise Linux Large Page support (multiplesizes) Created: 2019-03-07  Updated: 2021-09-04  Resolved: 2020-04-02

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Fix Version/s: 10.5.3

Type: Task Priority: Critical
Reporter: Daniel Black Assignee: Sergey Vojtovich
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Problem/Incident
causes MDEV-26533 MariaDB 10.5 and 10.6 crashes with ke... Closed
Relates
relates to MDEV-18726 INNDOB gets confused when using large... Closed
relates to MDEV-25424 my_multi_malloc_large doesn't do larg... Open
relates to MDEV-21239 ASAN use-after-poison in a server shu... Closed
relates to MDEV-22135 Document changes to large/huge page s... Open
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MDEV-22175 windows installer - create SeLockMemo... Technical task Closed Vladislav Vaintroub  

 Description   

Large page support for MariaDB has a number of problems

  1. MDEV-18726 - innodb allocates chunks larger than innodb_buffer_pool_chunk_size
  2. granularity - Linux has supported multiple large page sizes since kernel ~2.6.32. MariaDB needs multiple large page sizes to support a 128M key_cache_size/aria_pagecache_buffer_size to a larger 1G innodb_buffer_pool_chunk_size
  3. using shared memory means that kernel limits of kernel.shmall or kernel.shmmax need to be adjusted (and the biggest clue in the log is `Failed to attach shared memory segment, errno 22`)
  4. innodb falls back to conventional mmap if shmget SHM_HUGETLB fails, meaning the deallocation attempts to use shmdt on an mmapped segment.

Generated at Thu Feb 08 08:47:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.