No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Advanced O&M Command Reference

OceanStor 18000 V3 Series V300R006

This document is applicable to OceanStor 18500 V3 and 18800 V3. Based on the CLI, this document describes how to use various commands classified by functionsand how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
perf.sh

perf.sh

Function

The perf.sh command is used to collect and analyze performance statistics in Linux.

Format

perf.sh {-h | -t | -f | -p | -c}

Parameters

Parameter

Description

Value

-h

Shows command help information.

-

-t

Sets command execution duration in which print logs are collected.

-

-f

Specifies a path to store collected performance logs.

-

-p

Specifies a process to collect its information.

-

-c

Specifies a CPU to collect its information.

-

Modes

Minisystem mode

Usage Guidelines

  • The "perf.sh -h" command is used to show command help information.
  • The "perf.sh -t" command is used to set command execution duration in which print logs are collected.
  • The "perf.sh -f" command is used to specify a path to store collected performance logs.
  • The "perf.sh -p" command is used to specify a process to collect its information.
  • The "perf.sh -c" command is used to specify a CPU to collect its information.

Example

  • Show command help information.
    Storage: minisystem> perf.sh -h 
    para: -t(time) -f(filename) -p(pid) -c(cordid) 
    example: sudo sh perf.sh -t 5 -f test.txt -p 123 -c 2 
    outfile is saved in /home/permitdir/coffer_perf/test.txt
  • Specify a process to collect its information.
    Storage: minisystem> perf.sh -p 28297          
    /OSM/bin/script/perf.sh: line 52: kill: (228576) - No such process 
    [ perf record: Woken up 1 times to write data ] 
    [ perf record: Captured and wrote 1.301 MB perf.data (6074 samples) ] 
    /OSM/bin/script/perf.sh: line 45: 228000 Killed                  perf top -p $pid >> $path/$filename 
    no symbols found in /usr/bin/df, maybe install a debug package? 
    outfile is saved in /home/permitdir/coffer_perf/test.txt
  • Specify a path to store collected performance logs.
    Storage: minisystem> perf.sh -f aa 
    no symbols found in /usr/bin/df, maybe install a debug package? 
    no symbols found in /usr/bin/gzip, maybe install a debug package? 
    no symbols found in /usr/bin/dos2unix, maybe install a debug package? 
    no symbols found in /usr/sbin/killall5, maybe install a debug package? 
    /OSM/bin/script/perf.sh: line 94: kill: (220690) - No such process 
    outfile is saved in /home/permitdir/coffer_perf/aa
  • Set command execution duration.
    Storage: minisystem> perf.sh -t 3 
    /OSM/bin/script/perf.sh: line 94: kill: (178200) - No such process 
    outfile is saved in /home/permitdir/coffer_perf/test.txt
  • Specify a CPU to collect its information.
    Storage: minisystem> perf.sh -c 2 
    /OSM/bin/script/perf.sh: line 70: kill: (8435) - No such process 
    [ perf record: Woken up 1 times to write data ] 
    [ perf record: Captured and wrote 0.029 MB perf.data (1 samples) ] 
    /OSM/bin/script/perf.sh: line 45:  7867 Killed                  perf top -c $cordid >> $path/$filename 
    outfile is saved in /home/permitdir/coffer_perf/test.txt

System Response

None

Translation
Download
Updated: 2019-03-30

Document ID: EDOC1000138389

Views: 395326

Downloads: 80

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next