Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D dynamorio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,467
    • Issues 1,467
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 44
    • Merge requests 44
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure 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
  • DynamoRIO
  • dynamorio
  • Merge requests
  • !5428

i#5411 bbdup mem: Eliminate per-block bookkeeping for no-dup usage

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Derek Bruening requested to merge i5411-drbbdup-optional-bookkeep into master Mar 16, 2022
  • Overview 8
  • Commits 4
  • Pipelines 0
  • Changes 6

Augments drbbdup to allow a value of 0 for drbbdup_options_t.non_default_case_limit. When it is set to 0, no duplication will occur, and no per-block data structures will be allocated, saving memory.

Adds a test case for this.

Updates drmemtrace to use this when multi-case options are not selected.

Sanity test: Before:

  $ bin64/drrun -rstats_to_stderr -t drcachesim -offline -max_global_trace_refs 10K -- ~/spec2006/bzip2-test/bzip2_base.gcc-64bit ~/spec2006/bzip2-test/dryer.jpg 2
                Peak vmm blocks for unreachable heap :               747
              Peak vmm virtual memory in use (bytes) :           6963200

After:

                Peak vmm blocks for unreachable heap :               631
              Peak vmm virtual memory in use (bytes) :           6389760

Along with the prior shift to use unreachable heap for per-block data and then to eliminate and improve per-thread data, this concludes the memory reductions for #5411 (closed).

Fixes #5411 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: i5411-drbbdup-optional-bookkeep