Giter Site home page Giter Site logo

linux-tracer's Introduction

beta Xplat Performance Tool

  • Last version is v4.2.0

Context:

The 'beta Xplat Performance Tool' is intended for Linux performance data collection, CPU and Memory load investigation and analysis, when high CPU or Memory load is reported. It aims at quickly being able to determine a device’s CPU and Memory load and ellaborate on mitigation, as well as propose fixes. It's very intuitive and easy to use, returns results that are easy to interpret and relies on very basic set of tools existent in virtually all Linux minimal installations.

What it does:

'beta Xplat Performance Tool' captures CPU and Memory data for a period of time and is at the moment, independent of “Client Analyzer” for Linux: it does not depend on python or "Client Analyzer" code to be executed. It’s a command-line tool, shellscript, that receives an interval of time as parameter, and captures CPU and Memory activity for that specified period. The processes being monitored are wdavdaemon (edr, rtp and av components) and audisp plugin. Can also be used in a 'long run' mode in the background, to spot memory leaks or track resource behavior for a long time.

Main advantages

  • Easy to use and to interpret data
  • Light-wheight
  • Fast to execute
  • Does not depend on python
  • Basic Shell Script using 'awk', 'sed', 'grep', 'tee' base install available Linux tools
  • Easily adaptable and scalable code
  • Simply execute the script and collect resulting package for investigation

Examples of performance graphs for RAM and CPU

194161484-c04fece5-ac7a-440f-b1f4-b221bdd6a344 194161566-7e2be150-c480-485f-9eef-eee6941277b9 194161596-32769f74-9035-4a47-9f71-4d5c160de1a5 194161620-09b648ce-4eb1-4e3b-bb7c-6586fdc95263

Usage:

Download the script to MacOS or Linux:

MacOS:

Linux:

Read 'help' dialog for instructions:

MacOS:

  • ./betaMacOSPerformanceTool_v4.2.0.sh -h

Linux:

  • ./betaLinuxPerformanceTool_v4.2.0.sh -h

Run script as needed. Below example runs for 1 minute (60 seconds):

  • ./beta-<--OS-->-PerformanceTool_v4.2.0.sh -ps 60

If you need to collect data for 5 minutes (300 seconds):

  • ./beta-<--OS-->-PerformanceTool_v4.2.0.sh -ps 300

Confirm investigation package is created:

  • You should find a package named beta-<--OS-->-PerformanceTool_v4.2.0.sh-<--date-->.zip

Future work:

  • I'm planning on merging the two diagnostic tools in one single file that will called betaXplatPerformanceTool_-<-version>.sh

linux-tracer's People

Contributors

anoliveiram avatar microsoftopensource avatar ruicatz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

linux-tracer's Issues

Create testing script

  • O LCMT encontra-se na maquina de teste
  • O script de teste corre as varias flags do LCMT
  • O script de teste gera carga nas maquinas de teste de modo a por os processos de MDATP a mexer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.