cache static info and optimize system.info on TN CORE

Description

I profiled the middlewared process a few months ago and found lots of areas of improvement. The gist of it is that we're spending an exorbitant amount of CPU time simply retrieving static information that never changes after boot.

The details of the performance penalty for doing this can be found here , here , and here . To add insult to injury, the ticket has shown that 75% of the core dumps that I've analyzed show that system.info was on CPU at the time of the crash. The fact that it's on CPU doesn't mean it's related to the core dumps but it does show the fact that we're wasting lots of CPU time on static data that never changes.

These changes have been in SCALE for many months and they were actually supposed to be backported to TN Core "nightlies" at the time, but that was never done because of the truenas/13.0-stable branch creation.

This ticket is to backport those changes to the truenas/12.0-stable and truenas/13.0-stable repos.

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk June 22, 2021 at 1:24 PM

Complete

Details

Assignee

Reporter

Labels

Impact

Low

Components

Affects versions

Priority

More fields

Katalon Platform

Created June 22, 2021 at 1:15 PM
Updated July 1, 2022 at 5:30 PM
Resolved June 22, 2021 at 10:03 PM