Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • BIND BIND
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 527
    • Issues 527
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 94
    • Merge requests 94
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source Projects
  • BINDBIND
  • Merge requests
  • !5637

Replace locked mempools with memory contexts

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ondřej Surý requested to merge 2398-reduce-memory-used-by-mempools-v9_16 into v9_16 Dec 14, 2021
  • Overview 8
  • Commits 6
  • Pipelines 6
  • Changes 15

Current mempools are kind of hybrid structures - they serve two purposes:

  1. mempool with a lock is basically static sized allocator with pre-allocated free items

  2. mempool without a lock is a doubly-linked list of preallocated items

The first kind of usage could be easily replaced with jemalloc small sized arena objects and thread-local caches.

The second usage not-so-much and we need to keep this (in libdns:message.c) for performance reasons.

Closes #2398 (closed)

Edited Dec 15, 2021 by Ondřej Surý
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 2398-reduce-memory-used-by-mempools-v9_16