Skip to content

Comments

pkg/sysinfo: parse cpuset.cpus/mems once and memoize#49221

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:internalize_pkg_parsers_step2
Jan 6, 2025
Merged

pkg/sysinfo: parse cpuset.cpus/mems once and memoize#49221
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:internalize_pkg_parsers_step2

Conversation

@thaJeztah
Copy link
Member

Preserve the result instead of parsing these for each container that specifies cpuset options,

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Preserve the result instead of parsing these for each container that
specifies cpuset options,

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added status/2-code-review area/daemon Core Engine kind/refactor PR's that refactor, or clean-up code labels Jan 6, 2025
@thaJeztah thaJeztah added this to the 28.0.0 milestone Jan 6, 2025
@thaJeztah thaJeztah self-assigned this Jan 6, 2025
testRequires(c, cgroupCpuset)

sysInfo := sysinfo.New()
mems, err := parsers.ParseUintList(sysInfo.Mems)
Copy link
Member Author

Choose a reason for hiding this comment

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

I think I had a branch to deprecate this one, now that it's no longer used, but I need to find it back 😂

Copy link
Member Author

Choose a reason for hiding this comment

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

@thaJeztah thaJeztah marked this pull request as ready for review January 6, 2025 17:08
@thaJeztah thaJeztah merged commit 3ca5ca4 into moby:master Jan 6, 2025
154 checks passed
@thaJeztah thaJeztah deleted the internalize_pkg_parsers_step2 branch January 6, 2025 20:11
@thaJeztah thaJeztah mentioned this pull request Jan 8, 2025
79 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/daemon Core Engine kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants