Post by puwen on Oct 21, 2022 7:05:00 GMT
Hi all,
My System Configuration: There is only one processor with 32 cores and threads enabled.
Currently, I've seen implementations of ProcessorCollection on my system, examples are as follows:
I think there is a problem, can anyone help confirm this?
1) the URI format.
Based on the core of the schema, I think it should be
2) Although the schema is not mentioned, it seems reasonable to group it together by ProcessorType.
So when I access the resource of Main Processor, I expect to get only 1 member
3) when I access the Core resource of Processor, I expect to get 32 members
4) when I access the Thread resource of Core, I expect to get 2 members
Thank you for your reply.
BR,
Puwen
My System Configuration: There is only one processor with 32 cores and threads enabled.
Currently, I've seen implementations of ProcessorCollection on my system, examples are as follows:
URI: /redfish/v1/Systems/system/Processors
{
"@odata.context": "/redfish/v1/$metadata#ProcessorCollection.ProcessorCollection",
"@odata.id": "/redfish/v1/Systems/system/Processors",
"@odata.type": "#ProcessorCollection.ProcessorCollection",
"Description": "Collection of processors",
"Members": [
{
"@odata.id": "/redfish/v1/Systems/system/Processors/DevType1_CPU0"
},
{
"@odata.id": "/redfish/v1/Systems/system/Processors/DevType1_CPU0_Core0"
},
{
"@odata.id": "/redfish/v1/Systems/system/Processors/DevType1_CPU0_Core0_Thread0"
},
{
"@odata.id": "/redfish/v1/Systems/system/Processors/DevType1_CPU0_Core0_Thread1"
},
{
"@odata.id": "/redfish/v1/Systems/system/Processors/DevType1_CPU0_Core1"
},
{
"@odata.id": "/redfish/v1/Systems/system/Processors/DevType1_CPU0_Core1_Thread0"
},
....
],
"Members@odata.count": 97,
"Name": "Processor Collection"
}
I think there is a problem, can anyone help confirm this?
1) the URI format.
Based on the core of the schema, I think it should be
/redfish/v1/Systems/system/Processors/DevType1_CPU0
/redfish/v1/Systems/system/Processors/DevType1_CPU0/SubProcessors/DevType1_CPU0_Core0
/redfish/v1/Systems/system/Processors/DevType1_CPU0/SubProcessors/DevType1_CPU0_Core0/SubProcessors/DevType1_CPU0_Core0_Thread0
/redfish/v1/Systems/system/Processors/DevType1_CPU0/SubProcessors/DevType1_CPU0_Core0/SubProcessors/DevType1_CPU0_Core0_Thread1
....
2) Although the schema is not mentioned, it seems reasonable to group it together by ProcessorType.
So when I access the resource of Main Processor, I expect to get only 1 member
URI: /redfish/v1/Systems/system/Processors
{
..
"Members": [
{
"@odata.id": "/redfish/v1/Systems/system/Processors/DevType1_CPU0"
}
],
"Members@odata.count": 1
}
3) when I access the Core resource of Processor, I expect to get 32 members
URI: /redfish/v1/Systems/system/Processors/DevType1_CPU0/SubProcessors
{
..
"Members": [
{
"@odata.id": "/redfish/v1/Systems/system/Processors/DevType1_CPU0/SubProcessors/DevType1_CPU0_Core0"
},
{
"@odata.id": "/redfish/v1/Systems/system/Processors/DevType1_CPU0/SubProcessors/DevType1_CPU0_Core1"
},
...
{
"@odata.id": "/redfish/v1/Systems/system/Processors/DevType1_CPU0/SubProcessors/DevType1_CPU0_Core31"
}
],
"Members@odata.count": 32
}
4) when I access the Thread resource of Core, I expect to get 2 members
URI: /redfish/v1/Systems/system/Processors/DevType1_CPU0/SubProcessors/DevType1_CPU0_Core0/SubProcessors
{
..
"Members": [
{
"@odata.id": "/redfish/v1/Systems/system/Processors/DevType1_CPU0/SubProcessors/DevType1_CPU0_Core0/SubProcessors/DevType1_CPU0_Core0_Thread0"
},
{
"@odata.id": "/redfish/v1/Systems/system/Processors/DevType1_CPU0/SubProcessors/DevType1_CPU0_Core0/SubProcessors/DevType1_CPU0_Core0_Thread1"
}
],
"Members@odata.count": 2
}
Thank you for your reply.
BR,
Puwen