Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

cpuprocanalyzer

Created on June 21, 2022


Introduction

  • RDK PROC ANALYZER is a tool that enables different teams like development, triage and testing to analyze the CPU and memory utilization of the processes that run on top of RDK framework.
  • It helps us in detecting the memory leaks, cpu and memory performance regressions.
  • This tool is implemented as a service.
  • Highly configurable (Parameters like period , time interval and processes to be monitored can be configured).

Code Flow

  • The main code flow of CPU Procanalyzer –

  • To get the Load Average information- 

  •  To get the Memory information- 

  • To get the Idle Percent Information-

How to Launch

This tool runs as a service.

If the file /tmp/PROC_ANALYZER_ENABLE is touched the tool starts running and it logs the details.

How to Configure:

1 Open  ‘/opt/rmfconfig.ini’ file on the device.

    Parameters that can be configured:

                   (a)Time Interval

                   (b)Period

                   (c)Enable Dynamic

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
(a) Time Interval : It is the amount of time the tool runs.
(b) Period : It is the interval of time for which the tool records the information.
(c)Enable Dynamic : This is a flag to disable and enable the capturing of dynamic processes
( Enable Dynamic = 1 means enable and Enable Dynamic =0 means disable ).
(a) Time Interval : It is the amount of time the tool runs. (b) Period : It is the interval of time for which the tool records the information. (c)Enable Dynamic : This is a flag to disable and enable the capturing of dynamic processes ( Enable Dynamic = 1 means enable and Enable Dynamic =0 means disable ).
(a) Time Interval : It is the amount of time the tool runs.

(b) Period        : It is the interval of time for which the tool records the information.

(c)Enable Dynamic : This is a flag to disable and enable the capturing of dynamic processes
                     ( Enable Dynamic = 1 means enable and Enable Dynamic =0 means disable ).

It would take the default values if not configured (sleepsecs:60, Time to run:0, Dynamic:1)

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
Ex: FEATURE.CPUPROCANALYZER. SLEEP.SECS=60
FEATURE.CPUPROCANALYER.TIMETORUN.SECS = 0 (which means tool runs until it is killed manually)
FEATURE.CPUPROCANALYZER.DYNAMIC = 1
Ex: FEATURE.CPUPROCANALYZER. SLEEP.SECS=60 FEATURE.CPUPROCANALYER.TIMETORUN.SECS = 0 (which means tool runs until it is killed manually) FEATURE.CPUPROCANALYZER.DYNAMIC = 1
Ex: FEATURE.CPUPROCANALYZER. SLEEP.SECS=60

    FEATURE.CPUPROCANALYER.TIMETORUN.SECS = 0 (which means tool runs until it is killed manually)

    FEATURE.CPUPROCANALYZER.DYNAMIC = 1

2. Open ‘/opt/processes.list’ file on the device.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
File to configure process names to be monitored
File to configure process names to be monitored
  File to configure process names to be monitored