Skip to content

Conversation

@oranagra
Copy link
Member

To complement the work done in #13133.
it added the script VMs memory to be counted as part of zmalloc, but that means they
should be also counted as part of the non-value overhead.

this commit contains some refactoring to make variable names and function names less confusing.
it also adds a new field named script.VMs into the MEMORY STATS command.

additionally, clear scripts and stats between tests in external mode (which is related to how this issue was discovered)

To complement the work done in redis#13133
contains some refactoring, and also a new field in MEMORY STATS

additionally, clear scripts and stats between tests in external mode
@CLAassistant
Copy link

CLAassistant commented Nov 20, 2024

CLA assistant check
All committers have signed the CLA.

@oranagra oranagra requested a review from sundb November 20, 2024 12:10
@oranagra oranagra added the release-notes indication that this issue needs to be mentioned in the release notes label Nov 20, 2024
@sundb
Copy link
Collaborator

sundb commented Nov 20, 2024

@oranagra forget to add script.VMs into memory-stats.json.

@oranagra oranagra merged commit 79fd255 into redis:unstable Nov 21, 2024
15 checks passed
@oranagra oranagra deleted the scripts_overheads branch November 21, 2024 06:22
@sundb sundb added this to Redis 8.0 Aug 15, 2025
@sundb sundb removed this from Redis 8.2 Aug 15, 2025
@sundb sundb moved this from Todo to Done in Redis 8.0 Aug 15, 2025
funny-dog pushed a commit to funny-dog/redis that referenced this pull request Sep 17, 2025
…edis#13660)

To complement the work done in redis#13133.
it added the script VMs memory to be counted as part of zmalloc, but
that means they
should be also counted as part of the non-value overhead.

this commit contains some refactoring to make variable names and
function names less confusing.
it also adds a new field named `script.VMs` into the `MEMORY STATS`
command.

additionally, clear scripts and stats between tests in external mode
(which is related to how this issue was discovered)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes indication that this issue needs to be mentioned in the release notes

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants