Increase the CPU threshold for Low, Moderate and High tier

Estimation

Story points : 1 SP
Estimated Duration: 2 Days

Estimated focus duration: 1 Days
Estimated pessimistic duration: 3 days.

Description

Click to expand

Who

What

  1. In the of nunet-adapter era, which was a predecessor DMS in some manner. We used to fetch the CPU capacity using a library called psutil.

Suppose my CPU has a max clock speed of 2.4GHz (i.e. 2400MHz) and I have 8 cores, nunet-adapter would report my CPU capacity to be:

2400 * 8

We then used to show how much capacity a system has, and then ask user to input a value which is lesser than the upper limit. This way of fetching CPU capacity was carried on to DMS. We use same library, but it's written in Go. It's called gopsutil.

  1. Now, the current threshold seems to be defined in an assumption that the threshold is per core. So if threshold is 500Mhz, and compute provider has 8 cores, it will be translated to 4000Mhz.

How

  1. Confirm that, if job is limited to 500Mhz, does it uses 500Mhz per core? Or in total? E.g. on a 8 core processor, will it become 500*8?
  2. Increase the threshold appropriately.

Why

  1. If threshold is distributed between all the cores, it is already low. Increase the limits by 2000.
  2. When threshold was defined, we did not had security checks in the container, which also takes CPU resources.

When

Acceptance Criteria

Click to expand
  1. Code review.

Work Breakdown Structure (WBS)

Task Description Duration Status Start Date End Date Comment
A Confirm how CPU allocation is actully working 8 Hrs Done/In Progress See 1 in What section. Ask in Docker and gopsutil forum.
B Increase the threshold depending on 1 Hrs Done/In Progress Ask in Docker and gopsutil forum
Edited by Santosh Kumar