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

Cpu numbers #28

Closed
Pia-Narmadha opened this issue Mar 1, 2018 · 6 comments
Closed

Cpu numbers #28

Pia-Narmadha opened this issue Mar 1, 2018 · 6 comments

Comments

@Pia-Narmadha
Copy link

in batch instance table 9th column is "real_cpu_max: maximum cpu numbers of actual instance running"

most of the values in this column are less than 1 it was also mention that cpu is not normalized. can anyone explain the reason for it?

@HaiyangDING
Copy link
Collaborator

@Pia-Narmadha

In 'batch_instance.csv', I found 8673603 records with 'real_cpu_max' larger than 1, which takes up ~54% of total records. To this end, I think it is a reasonable number.

Maybe I misunderstand your question?

@Pia-Narmadha
Copy link
Author

Some tasks in the batch_task table has a plan cpu in decimal.
can you explain what does the plan cpu of 0.5 mean in the batch_task table?

@HaiyangDING
Copy link
Collaborator

It means that we estimate that each instance of the task would use 0.5 cpu. It is only a reference for us to decide where to put an instance of this batch task (and it is not accurate). As you know, the actual cpu used per instance is recorded in batch_instance and does not equal to the plan cpu.

@Pia-Narmadha
Copy link
Author

Does this mean that the scheduler doesn't allocate the entire cpu for a task?

Do tasks share cpu?

Do batch jobs run on cpu allocated for service jobs?

Can you suggest an way to allocate resources to a task if we simulate the scheduler?

@HaiyangDING
Copy link
Collaborator

HaiyangDING commented Mar 30, 2018

Does this mean that the scheduler doesn't allocate the entire cpu for a task?

For batch, no

Do tasks share cpu?

Yes

Do batch jobs run on cpu allocated for service jobs?

Tasks (jobs) have several priorities. For the tasks that have low priority, they can run on cpus that are allocated for service jobs, at a risk of being preempted whenever service jobs need the resource. The mechanism behind cannot be described with a few words but many works are using similar idea.

Can you suggest an way to allocate resources to a task if we simulate the scheduler?

Well, I am not sure if I could help on this one. In fact, you can make any assumption about the priority of tasks as long as it helps with your goal of the design. We could have further discussion on this if you have more specific need. Just send me email and we could also have a call about this.

@HaiyangDING
Copy link
Collaborator

Closing the issue.

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

No branches or pull requests

2 participants