You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'?
The text was updated successfully, but these errors were encountered:
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'?
The text was updated successfully, but these errors were encountered: