Re: [PATCH 2/2] x86/resctrl: Initialize new resource group with default MBA values

2019-04-16 Thread Xiaochen Shen
Hi Boris, On 4/17/2019 4:59, Borislav Petkov wrote: I guess but be conservative when adding too many words to a function's name - that might get heavy when reading the code later. For example, there's an argument to not suffix it with "_cat": it is only called by rdtgroup_init_cat() - rdtgroup_

Re: [PATCH 2/2] x86/resctrl: Initialize new resource group with default MBA values

2019-04-16 Thread Borislav Petkov
On Wed, Apr 17, 2019 at 04:51:18AM +0800, Xiaochen Shen wrote: > In this patch we initialize MBA resource and cache resources in separate > functions rdtgroup_init_cat() and rdtgroup_init_mba(). If > __init_one_rdt_domain() is only called by rdtgroup_init_cat(), how about > using function name "__i

Re: [PATCH 2/2] x86/resctrl: Initialize new resource group with default MBA values

2019-04-16 Thread Xiaochen Shen
Hi Boris, Thank you very much for code review. I will fix these issues in v2 patch. Please find more comments inline. Thank you. On 4/15/2019 19:34, Borislav Petkov wrote: On Wed, Apr 10, 2019 at 03:55:28AM +0800, Xiaochen Shen wrote: Currently when a new resource group is created, the alloca

Re: [PATCH 2/2] x86/resctrl: Initialize new resource group with default MBA values

2019-04-15 Thread Borislav Petkov
On Wed, Apr 10, 2019 at 03:55:28AM +0800, Xiaochen Shen wrote: > Currently when a new resource group is created, the allocation values > of MBA resource are not initialized and remain meaningless data. > > For example: > mkdir /sys/fs/resctrl/p1 > cat /sys/fs/resctrl/p1/schemata > MB:0=100;1=100 >

[PATCH 2/2] x86/resctrl: Initialize new resource group with default MBA values

2019-04-10 Thread Xiaochen Shen
Currently when a new resource group is created, the allocation values of MBA resource are not initialized and remain meaningless data. For example: mkdir /sys/fs/resctrl/p1 cat /sys/fs/resctrl/p1/schemata MB:0=100;1=100 echo "MB:0=10;1=20" > /sys/fs/resctrl/p1/schemata cat /sys/fs/resctrl/p1/sche