Skip to contentSkip to conversation

Quanta requests to create a repo in OpenBMC github

DISCUSSION Fran Hsu (徐誌謙) 7 participants 11 messages Sep 16, 2020 – Sep 25, 2020

lore
Share & tools
lore
#0 lore raw

Hi Brad,
This is Fran from Quanta Computer.
Quanta OpenBMC team would like to share some useful tools to the OpenBMC community.
Such as the read-margin-temp daemon (https://github.com/quanta-bmc/read-margin-temp), we are using this daemon to fill sensor margin value to PID to do fan control.

We would like to have a repo named "quanta-misc" under the OpenBMC github.

Here is the maintainer list:

M:  Benjamin Fair <[email protected]> <benjaminfair!>
M:  Brandon Kim <[email protected]> <brandonk!>
M:  Fran Hsu <[email protected]> <franhsu!>
M:  George Hung <[email protected]> <ghung!>
M:  Buddy Huang <[email protected]> <buddyhunag!>

Thank you.
Fran Hsu
E-Mail : [email protected]
Tel: +886-3-327-2345 Ext: 16935

#1 lore raw
Quoted 5 lines · Fran Hsu (徐誌謙)

Hi Brad,
This is Fran from Quanta Computer.
Quanta OpenBMC team would like to share some useful tools to the OpenBMC community.
Such as the read-margin-temp daemon (https://github.com/quanta-bmc/read-margin-temp), we are using this daemon to fill sensor margin value to PID to do fan control.

read-margin-temp seems useful and widely applicable enough that I think it's worth having a dedicated repo for it.

The quanta-misc repo could possibly be used for smaller, more Quanta-specific things.

Quoted 16 lines

We would like to have a repo named "quanta-misc" under the OpenBMC github.

Here is the maintainer list:

M:  Benjamin Fair <[email protected]> <benjaminfair!>
M:  Brandon Kim <[email protected]> <brandonk!>
M:  Fran Hsu <[email protected]> <franhsu!>
M:  George Hung <[email protected]> <ghung!>
M:  Buddy Huang <[email protected]> <buddyhunag!>

Thank you.
Fran Hsu
E-Mail : [email protected]
Tel: +886-3-327-2345 Ext: 16935

#2 lore raw

Yay, this is great to see. I have some bug fixes to read-margin-temp and was just wondering how to contribute them. I'm really hoping this makes it into OpenBMC. It's the perfect preprocessor for phosphor-pid-control, I have found.

Josh

Josh Lehan | Software Engineer | [email protected] | +1 650-733-8941

Quoted 35 lines · Benjamin Fair
Quoted 4 lines · Fran Hsu (徐誌謙)

Hi Brad,
This is Fran from Quanta Computer.
Quanta OpenBMC team would like to share some useful tools to the OpenBMC

community.

Quoted 1 line

Such as the read-margin-temp daemon (

https://github.com/quanta-bmc/read-margin-temp), we are using this daemon to fill sensor margin value to PID to do fan control.

read-margin-temp seems useful and widely applicable enough that I think it's worth having a dedicated repo for it.

The quanta-misc repo could possibly be used for smaller, more Quanta-specific things.

Quoted 2 lines

We would like to have a repo named "quanta-misc" under the OpenBMC

github.

Quoted 14 lines

Here is the maintainer list:

M:  Benjamin Fair <[email protected]> <benjaminfair!>
M:  Brandon Kim <[email protected]> <brandonk!>
M:  Fran Hsu <[email protected]> <franhsu!>
M:  George Hung <[email protected]> <ghung!>
M:  Buddy Huang <[email protected]> <buddyhunag!>

Thank you.
Fran Hsu
E-Mail : [email protected]
Tel: +886-3-327-2345 Ext: 16935 <+886%203%20327%202345>

#3 lore raw

Would someone mind giving a 1-2 sentence explaination of what "sensor margin values" are? I'm certainly not a thermal control expert.

I don't care if there are multiple implementations of similar functionality, but there is also work going on for a repository called 'phosphor-virtual-sensors'. What little I could understand of read-margin-temp's role seems to somewhat overlap with that effort.

Quoted 49 lines · Josh Lehan

Yay, this is great to see. I have some bug fixes to read-margin-temp and was just wondering how to contribute them. I'm really hoping this makes it into OpenBMC. It's the perfect preprocessor for phosphor-pid-control, I have found.

Josh

Josh Lehan | Software Engineer | [email protected] | +1 650-733-8941

Quoted 35 lines · Benjamin Fair
Quoted 4 lines · Fran Hsu (徐誌謙)

Hi Brad,
This is Fran from Quanta Computer.
Quanta OpenBMC team would like to share some useful tools to the OpenBMC

community.

Quoted 1 line

Such as the read-margin-temp daemon (

https://github.com/quanta-bmc/read-margin-temp), we are using this daemon to fill sensor margin value to PID to do fan control.

read-margin-temp seems useful and widely applicable enough that I think it's worth having a dedicated repo for it.

The quanta-misc repo could possibly be used for smaller, more Quanta-specific things.

Quoted 2 lines

We would like to have a repo named "quanta-misc" under the OpenBMC

github.

Quoted 14 lines

Here is the maintainer list:

M:  Benjamin Fair <[email protected]> <benjaminfair!>
M:  Brandon Kim <[email protected]> <brandonk!>
M:  Fran Hsu <[email protected]> <franhsu!>
M:  George Hung <[email protected]> <ghung!>
M:  Buddy Huang <[email protected]> <buddyhunag!>

Thank you.
Fran Hsu
E-Mail : [email protected]
Tel: +886-3-327-2345 Ext: 16935 <+886%203%20327%202345>

Signature · 1 line
Patrick Williams
#4 lore raw
Quoted 3 lines · Patrick Williams

Would someone mind giving a 1-2 sentence explaination of what "sensor margin values" are? I'm certainly not a thermal control expert.

This daemon is intended to be used in combination with phosphor-pid-control. You define a configuration file with two
sections: sensors and zones.

Sensors have a D-Bus path to read from along with a target temperature and some other parameters. The daemon subtracks the current temperature from the target temperature to get the "margin". A smaller margin means the temperature is closer to the limit.

Zones group sensors together and look for the worst (lowest) margin value within that group. This value is then exported for use in phosphor-pid-control.

Quoted 5 lines

I don't care if there are multiple implementations of similar functionality, but there is also work going on for a repository called 'phosphor-virtual-sensors'. What little I could understand of read-margin-temp's role seems to somewhat overlap with that effort.

It may be possible to implement this using the functionality provided by phosphor-virtual-sensors, but the resulting configuration would likely be complicated and difficult to maintain. Margin calculation is a common enough use case that I think it's worth having a dedicated service.

Quoted 54 lines · Josh Lehan
Quoted 5 lines

Yay, this is great to see. I have some bug fixes to read-margin-temp and was just wondering how to contribute them. I'm really hoping this makes it into OpenBMC. It's the perfect preprocessor for phosphor-pid-control, I have found.

Quoted 44 lines

Josh

Josh Lehan | Software Engineer | [email protected] | +1 650-733-8941

Quoted 35 lines · Benjamin Fair
Quoted 4 lines · Fran Hsu (徐誌謙)

Hi Brad,
This is Fran from Quanta Computer.
Quanta OpenBMC team would like to share some useful tools to the OpenBMC

community.

Quoted 1 line

Such as the read-margin-temp daemon (

https://github.com/quanta-bmc/read-margin-temp), we are using this daemon to fill sensor margin value to PID to do fan control.

read-margin-temp seems useful and widely applicable enough that I think it's worth having a dedicated repo for it.

The quanta-misc repo could possibly be used for smaller, more Quanta-specific things.

Quoted 2 lines

We would like to have a repo named "quanta-misc" under the OpenBMC

github.

Quoted 14 lines

Here is the maintainer list:

M:  Benjamin Fair <[email protected]> <benjaminfair!>
M:  Brandon Kim <[email protected]> <brandonk!>
M:  Fran Hsu <[email protected]> <franhsu!>
M:  George Hung <[email protected]> <ghung!>
M:  Buddy Huang <[email protected]> <buddyhunag!>

Thank you.
Fran Hsu
E-Mail : [email protected]
Tel: +886-3-327-2345 Ext: 16935 <+886%203%20327%202345>

--
Patrick Williams

#5 lore raw
Quoted 12 lines

This daemon is intended to be used in combination with phosphor-pid-control. You define a configuration file with two
sections: sensors and zones.

Sensors have a D-Bus path to read from along with a target temperature
and some other parameters. The daemon subtracks the current temperature from the target temperature to get the "margin". A smaller
margin means the temperature is closer to the limit.

Quoted 3 lines

Zones group sensors together and look for the worst (lowest) margin value within that group. This value is then exported for use in phosphor-pid-control.

I wonder, isn't phosphor-pid-control do the same by its own? How does it works inside pid-control daemon, when you set several thermal sensors for one Zone an set setpoint for each of them?

Signature · 2 lines
Best regards,
Andrei Kartashev
#6 lore raw
Quoted 13 lines · Andrei Kartashev
Quoted 13 lines

This daemon is intended to be used in combination with phosphor-pid-control. You define a configuration file with two
sections: sensors and zones.

Sensors have a D-Bus path to read from along with a target temperature
and some other parameters. The daemon subtracks the current temperature from the target temperature to get the "margin". A smaller
margin means the temperature is closer to the limit.

Quoted 8 lines
Quoted 3 lines

Zones group sensors together and look for the worst (lowest) margin value within that group. This value is then exported for use in phosphor-pid-control.

I wonder, isn't phosphor-pid-control do the same by its own? How does it works inside pid-control daemon, when you set several thermal sensors for one Zone an set setpoint for each of them?

Not sure what your question is, but yes, the pid-control daemon can host its own margin sensor values that are populated externally, however this is only supported via the json configuration at present.

Quoted 7 lines

--
Best regards,
Andrei Kartashev

#7 lore raw
Quoted 20 lines · Patrick Venture
Quoted 18 lines · Andrei Kartashev
Quoted 16 lines

This daemon is intended to be used in combination with phosphor-pid-control. You define a configuration file with two
sections: sensors and zones.

Sensors have a D-Bus path to read from along with a target temperature
and some other parameters. The daemon subtracks the current temperature from the target temperature to get the "margin". A smaller
margin means the temperature is closer to the limit.

Zones group sensors together and look for the worst (lowest) margin value within that group. This value is then exported for use in phosphor-pid-control.

Quoted 7 lines
Quoted 3 lines

I wonder, isn't phosphor-pid-control do the same by its own? How does it works inside pid-control daemon, when you set several thermal sensors for one Zone an set setpoint for each of them?

Not sure what your question is, but yes, the pid-control daemon can host its own margin sensor values that are populated externally, however this is only supported via the json configuration at present.

It also doesn't support mixing margin sensors and absolute sensors.

Doing this margin calculation seems separate enough from the core functions of phosphor-pid-control that I think splitting it out is the best approach, but I do also see the argument for merging the functionality into phosphor-pid-control.

Quoted 8 lines
Quoted 8 lines

--
Best regards,
Andrei Kartashev

#8 lore raw
In reply to Patrick Venture

I'm just curious, because I don't really know how does pid-control actually works. Let's say we have following zone configuration (EM configuration file, unrelated PID parameters are hidden):

{
    "FailSafePercent": 100,
    "MinThermalOutput": 30,
    "Name": "Main",
    "Type": "Pid.Zone"
},
{
    "Class": "temp",
    "Inputs": [
        "DIMM [ABCDEF]\\d+ CPU0",
        "DIMM [ABCDEF]\\d+ CPU1"
    ],
    "Name": "DIMM ALL",
    "Outputs": [],
    "SetPoint": 80.0,
    "Type": "Pid",
    "Zones": [
        "Main"
    ],
    ...
},
{
    "Class": "temp",
    "Inputs": [
        "EXIT_AIR"
    ],
    "Name": "EXIT_AIR",
    "Outputs": [],
    "SetPoint": 50.0,
    "Type": "Pid",
    "Zones": [
        "Main"
    ],
    ...
},
{
    "Class": "fan",
    "Inputs": [
        "SYS_FAN"
    ],
    "Name": "SYS_FAN",
    "Outputs": [
        "SYS_FAN_PWM"
    ],
    "Type": "Pid",
    "Zones": [
        "Main"
    ],
    ...
},

How would it work? I was sure pid-control would examine all the sensors and try to keep temperature below setpoints: 80 degrees for any of DIMM memory sensors and 50 degree for exit air. If so, what is the benefit to use this virtual margin sensor?

Quoted 34 lines · Patrick Venture
Quoted 17 lines · Andrei Kartashev
Quoted 12 lines

This daemon is intended to be used in combination with phosphor-pid-control. You define a configuration file with two
sections: sensors and zones.

Sensors have a D-Bus path to read from along with a target temperature
and some other parameters. The daemon subtracks the current temperature from the target temperature to get the "margin". A smaller
margin means the temperature is closer to the limit.

Quoted 4 lines

Zones group sensors together and look for the worst (lowest) margin
value within that group. This value is then exported for use in phosphor-pid-control.

Quoted 4 lines

I wonder, isn't phosphor-pid-control do the same by its own? How does
it works inside pid-control daemon, when you set several thermal sensors for one Zone an set setpoint for each of them?

Not sure what your question is, but yes, the pid-control daemon can host its own margin sensor values that are populated externally, however this is only supported via the json configuration at present.

Quoted 6 lines

--
Best regards,
Andrei Kartashev

Signature · 2 lines
Best regards,
Andrei Kartashev
#9 lore raw
Quoted 56 lines · Andrei Kartashev

I'm just curious, because I don't really know how does pid-control actually works. Let's say we have following zone configuration (EM configuration file, unrelated PID parameters are hidden):

{
    "FailSafePercent": 100,
    "MinThermalOutput": 30,
    "Name": "Main",
    "Type": "Pid.Zone"
},
{
    "Class": "temp",
    "Inputs": [
        "DIMM [ABCDEF]\\d+ CPU0",
        "DIMM [ABCDEF]\\d+ CPU1"
    ],
    "Name": "DIMM ALL",
    "Outputs": [],
    "SetPoint": 80.0,
    "Type": "Pid",
    "Zones": [
        "Main"
    ],
    ...
},
{
    "Class": "temp",
    "Inputs": [
        "EXIT_AIR"
    ],
    "Name": "EXIT_AIR",
    "Outputs": [],
    "SetPoint": 50.0,
    "Type": "Pid",
    "Zones": [
        "Main"
    ],
    ...
},
{
    "Class": "fan",
    "Inputs": [
        "SYS_FAN"
    ],
    "Name": "SYS_FAN",
    "Outputs": [
        "SYS_FAN_PWM"
    ],
    "Type": "Pid",
    "Zones": [
        "Main"
    ],
    ...
},
Quoted 4 lines

How would it work? I was sure pid-control would examine all the sensors and try to keep temperature below setpoints: 80 degrees for any of DIMM memory sensors and 50 degree for exit air. If so, what is the benefit to use this virtual margin sensor?

The most important use case is mixing absolute and margin temperatures.

Some sensors in a zone are only readable by the host, so there's a service that collects that data and calculates a worst margin. This margin is sent over IPMI to the BMC, but then needs to be combined with the other, absolute temperatures that the BMC can read directly.

Quoted 41 lines · Patrick Venture
Quoted 19 lines
Quoted 17 lines · Andrei Kartashev
Quoted 16 lines

This daemon is intended to be used in combination with phosphor-pid-control. You define a configuration file with two
sections: sensors and zones.

Sensors have a D-Bus path to read from along with a target temperature
and some other parameters. The daemon subtracks the current temperature from the target temperature to get the "margin". A smaller
margin means the temperature is closer to the limit.

Zones group sensors together and look for the worst (lowest) margin
value within that group. This value is then exported for use in phosphor-pid-control.

Quoted 15 lines
Quoted 4 lines

I wonder, isn't phosphor-pid-control do the same by its own? How does
it works inside pid-control daemon, when you set several thermal sensors for one Zone an set setpoint for each of them?

Not sure what your question is, but yes, the pid-control daemon can host its own margin sensor values that are populated externally, however this is only supported via the json configuration at present.

Quoted 6 lines

--
Best regards,
Andrei Kartashev

--
Best regards,
Andrei Kartashev

#10 lore raw
In reply to Benjamin Fair

Hi Brad, Patrick,

May we have quanta-misc repository first ? we still have other packages could be pushed.

As for the read-margin-temp, we can discuss further.

Thanks.

Quoted 3 lines · Patrick Williams

Would someone mind giving a 1-2 sentence explaination of what "sensor margin values" are? I'm certainly not a thermal control expert.

This daemon is intended to be used in combination with phosphor-pid-control. You define a configuration file with two
sections: sensors and zones.

Sensors have a D-Bus path to read from along with a target temperature and some other parameters. The daemon subtracks the current temperature from the target temperature to get the "margin". A smaller margin means the temperature is closer to the limit.

Zones group sensors together and look for the worst (lowest) margin value within that group. This value is then exported for use in phosphor-pid-control.

Quoted 5 lines

I don't care if there are multiple implementations of similar functionality, but there is also work going on for a repository called 'phosphor-virtual-sensors'. What little I could understand of read-margin-temp's role seems to somewhat overlap with that effort.

It may be possible to implement this using the functionality provided by phosphor-virtual-sensors, but the resulting configuration would likely be complicated and difficult to maintain. Margin calculation is a common enough use case that I think it's worth having a dedicated service.

Quoted 59 lines · Josh Lehan
Quoted 7 lines

Yay, this is great to see. I have some bug fixes to read-margin-temp and was just wondering how to contribute them. I'm really hoping this makes it into OpenBMC. It's the perfect preprocessor for phosphor-pid-control, I have found.

Josh

Quoted 47 lines

Josh Lehan | Software Engineer | [email protected] | +1 650-733-8941

Quoted 38 lines · Benjamin Fair
Quoted 5 lines · Fran Hsu (徐誌謙)

Hi Brad,
This is Fran from Quanta Computer.
Quanta OpenBMC team would like to share some useful tools to the OpenBMC

community.

Quoted 1 line

Such as the read-margin-temp daemon (

https://github.com/quanta-bmc/read-margin-temp), we are using this daemon to fill sensor margin value to PID to do fan control.

read-margin-temp seems useful and widely applicable enough that I think it's worth having a dedicated repo for it.

The quanta-misc repo could possibly be used for smaller, more Quanta-specific things.

Quoted 3 lines

We would like to have a repo named "quanta-misc" under the OpenBMC

github.

Quoted 14 lines

Here is the maintainer list:

M:  Benjamin Fair <[email protected]> <benjaminfair!>
M:  Brandon Kim <[email protected]> <brandonk!>
M:  Fran Hsu <[email protected]> <franhsu!>
M:  George Hung <[email protected]> <ghung!>
M:  Buddy Huang <[email protected]> <buddyhunag!>

Thank you.
Fran Hsu
E-Mail : [email protected]
Tel: +886-3-327-2345 Ext: 16935 <+886%203%20327%202345>

--
Patrick Williams