MySQL 8.3.0
Source Code Documentation
large_page_alloc-osx.h File Reference

OSX-specific implementation bits and pieces for large (huge) page allocations. More...

#include <mach/vm_statistics.h>
#include <sys/mman.h>
#include <sys/types.h>
#include "mysqld_error.h"
#include "storage/innobase/include/detail/ut/helper.h"
#include "storage/innobase/include/ut0log.h"

Go to the source code of this file.

Namespaces

namespace  ut
 This file contains a set of libraries providing overloads for regular dynamic allocation routines which allow for opt-in memory instrumentation through performance schema memory engine (PFS).
 
namespace  ut::detail
 

Functions

void * ut::detail::large_page_aligned_alloc (size_t n_bytes)
 Allocates memory backed by large (huge) pages. More...
 
bool ut::detail::large_page_aligned_free (void *ptr, size_t n_bytes)
 Releases memory backed by large (huge) pages. More...
 
size_t ut::detail::large_page_size ()
 Queries the current size of large (huge) pages on running system. More...
 

Variables

const size_t large_page_default_size
 System-default huge (large) page setting. More...
 
static constexpr auto ut::detail::SUPER_PAGE_SIZE = VM_FLAGS_SUPERPAGE_SIZE_2MB
 Superpage size to be used (2MB). More...
 

Detailed Description

OSX-specific implementation bits and pieces for large (huge) page allocations.

Variable Documentation

◆ large_page_default_size

const size_t large_page_default_size
extern

System-default huge (large) page setting.