Skip to content

FEATURE: Output memory statistics (--full)#4031

Merged
tlimoncelli merged 3 commits intomainfrom
tlim_memstats
Feb 1, 2026
Merged

FEATURE: Output memory statistics (--full)#4031
tlimoncelli merged 3 commits intomainfrom
tlim_memstats

Conversation

@tlimoncelli
Copy link
Collaborator

@tlimoncelli tlimoncelli commented Feb 1, 2026

Issue

How memory-efficient is dnscontrol?

I'm interested in how much memory per record we are using.

Resolution

Add memory stats when --full is output.

A large config:

Inaccurate statistics: {"memory_in_use":39930120,"memory_in_use_str":"40 MB","num_records":2806,"num_zones":176,"rc_size":520,"benchmark1":14230,"benchmark1str":"14 KiB bytes"}

A small config:

Inaccurate statistics: {"memory_in_use":24447240,"memory_in_use_str":"24 MB","num_records":146,"num_zones":20,"rc_size":520,"benchmark1":167446,"benchmark1str":"164 KiB bytes"}

RecordConfig is 520 bytes yet the overhead per record is 14K to 164K.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes detected by Check Git Status Action

@tlimoncelli tlimoncelli merged commit e01b174 into main Feb 1, 2026
19 checks passed
@tlimoncelli tlimoncelli deleted the tlim_memstats branch February 1, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant