pai icon indicating copy to clipboard operation
pai copied to clipboard

Wrong resource usage in UI

Open k1ngcyk opened this issue 6 years ago • 7 comments

Organization Name: EnjoyMusic Technology

Short summary about the issue/question:

Even there is only one running job with config 4 CPU core, 8 GB memory, it will result in half usage in UI. The worker has 36 vCore and 128 GB memory.

Screen Shot 2020-06-03 at 4 20 32 PM

Brief what process you are following:

How to reproduce it:

OpenPAI Environment:

  • OpenPAI version: v1.0.0
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Hardware (e.g. core number, memory size, storage size, GPU type etc.):
  • Others:

Anything else we need to know:

k1ngcyk avatar Jun 03 '20 08:06 k1ngcyk

@k1ngcyk seems the job use 1 GPU, and your bed only has 2 GPUs. The resource usage is max(usedGpu/totalGPU, usedMem/totolMem, usedCPU/Total/CPU). So it shows 50%

Binyang2014 avatar Jun 03 '20 12:06 Binyang2014

I assume your job requests 1 GPU. PAI using HiveD scheduler by default, and HiveD only schedules cells by which all resource dimensions proportionally increased or decreased. See more in https://github.com/microsoft/hivedscheduler/blob/master/doc/user-manual.md#config-quickstart

So in your VC setup, 1 GPU corresponding to 1 cell, i.e. (1GPU, 17CPU, 63G Mem). So (1GPU, 17CPU, 63G Mem) resource is allocated instead of just (1GPU, 4CPU, 8G Mem). And, if your job requests 2 GPU, you will requested 2 cells, i.e. 2 * (1GPU, 17CPU, 63G Mem) will be allocated.

We will refine below WebUI or Job Submission Page (user can only specify cells or skus instead of resources in each dimensions) to make it eaiser to understand,.

image

yqwang-ms avatar Jun 03 '20 12:06 yqwang-ms

relate to https://github.com/microsoft/pai/issues/4601. Will use sku to improve the clarity of error message.

fanyangCS avatar Jul 09 '20 03:07 fanyangCS

related to https://github.com/microsoft/pai/issues/3273.

fanyangCS avatar Jul 21 '20 02:07 fanyangCS

relate to https://github.com/microsoft/pai/issues/3966

fanyangCS avatar Jul 21 '20 04:07 fanyangCS

@fanyangCS @abuccts - is this a bug? has it been fixed by related issues mentioned above? if not, may we plan it in Aug release? thanks.

scarlett2018 avatar Jul 22 '20 08:07 scarlett2018

@fanyangCS @abuccts - is this a bug? has it been fixed by related issues mentioned above? if not, may we plan it in Aug release? thanks.

Yes. it is planed in Aug release.

fanyangCS avatar Jul 22 '20 08:07 fanyangCS