Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions about the 'dev-agent.sh' script #11151

Closed
YYM0093 opened this issue Oct 23, 2024 · 0 comments
Closed

Questions about the 'dev-agent.sh' script #11151

YYM0093 opened this issue Oct 23, 2024 · 0 comments

Comments

@YYM0093
Copy link

YYM0093 commented Oct 23, 2024

I found two scripts, 'dev-agent.sh' and 'dev-docker-agent.sh', in the /scripts directory. Based on their content, it seems that they compile /cmd/agent/main.go to produce a dedicated binary for the agent, k3s-agent. Compared to /cmd/server/main.go, it appears to have fewer unnecessary components for the agent. In theory, an agent started this way should use significantly less memory. However, after checking the memory composition with the pmap command, I noticed that the static memory of the .text segment has not changed much. I would like to know the true purpose of these two scripts, 'dev-agent.sh' and 'dev-docker-agent.sh'?

image

image

@k3s-io k3s-io locked and limited conversation to collaborators Oct 23, 2024
@cwayne18 cwayne18 converted this issue into discussion #11158 Oct 23, 2024
@github-project-automation github-project-automation bot moved this from New to Done Issue in K3s Development Oct 23, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
Status: Done Issue
Development

No branches or pull requests

1 participant