[MXS-1669] maxadmin "show threads" counters are probably incorrect Created: 2018-02-14 Updated: 2020-08-25 Resolved: 2018-02-15 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | maxadmin |
| Affects Version/s: | 2.1.10 |
| Fix Version/s: | 2.1.14 |
| Type: | Bug | Priority: | Major |
| Reporter: | Valerii Kravchuk | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | maxadmin, regression | ||
| Description |
|
One may get the output like this from show threads command in maxadmin:
Note negative "Historic Thread Load Average" and huge value in Running column: "<3017963900ms" MaxScale instance itself is from testing environment and is not under any high load. From ps aux we see:
With 2.0.x this kind of values were not noted. |
| Comments |
| Comment by Johan Wikman [ 2018-02-15 ] |
|
I'm not altogether sure whether the load average numbers actually were meaningful in 2.0. In 2.1 they certainly are not as the threading architecture was significantly changed and the load calculation was not updated accordingly (partly because it was not obvious how to do it). The load average output should have been removed. In 2.2 that has been done. |
| Comment by markus makela [ 2018-02-15 ] |
|
The negative Historic Thread Load Average could be explained by signed 32-bit integer overflow. The excessive Running value is caused by a change in the threading model that causes of some of the variables in the DCBs to not be updated. The correct value to use is the DCB's last_read value (last point in time that network activity happened on the DCB). |