Skip to content
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

Info about max_cpu_proxy value #1178

Closed
paolostivanin opened this issue Jul 13, 2018 · 5 comments
Closed

Info about max_cpu_proxy value #1178

paolostivanin opened this issue Jul 13, 2018 · 5 comments
Labels

Comments

@paolostivanin
Copy link

paolostivanin commented Jul 13, 2018

Hello,
I am doing some testing with the parameter cpu_quota_per_share_in_us and I saw that 8 GB and 16 GB apps are behaving the same in terms of cpu load.
Looking at the CC code, I found the following:

this seems to explain the behavior I observed. May I ask what is the rationale behind this value?
And would it be possible to increase it?

Thanks a lot,

Best regards

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/159030303

The labels on this github issue will be updated when the story is started.

@paolostivanin
Copy link
Author

paolostivanin commented Jul 13, 2018

I increased the value to 32768, and I was able to solve the issue I was facing.
But, as I don't have the big picture here, I don't know what the side effect of quadrupling that value could be.
Any thoughts?

@cwlbraa
Copy link
Contributor

cwlbraa commented Aug 27, 2018

@paolostivanin good find, it does appear as though the app recipe builder is using that [task] cpu weight calculator. I'm not entirely sure why we cap out cpu quotas like that, but perhaps @emalm could provide some historical context?

@emalm
Copy link
Member

emalm commented Aug 27, 2018

I believe the intent was that each app instance would be effectively limited to 1024 CPU shares on the Diego cell, regardless of its memory allocation. That decision was made long before garden-runc-release introduced the opt-in behavior to set a hard CPU quota proportional to that CPU shares allocation.

In any case, we're planning on moving forward with the proposal @julz put forth a few months ago at https://docs.google.com/document/d/16TvBsZSInjy7zoboSQWRJo30lmxr07tvd40_GzpfD3I/edit, with the Garden team having some of this work in flight already.

Best,
Eric

@selzoc
Copy link
Member

selzoc commented Sep 7, 2018

Thanks for the info @emalm !!

Closing this issue as there is no cloud_controller action to take until the Garden/Diego work is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants