Skip to content

Instantly share code, notes, and snippets.

@hiboma
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save hiboma/9865994 to your computer and use it in GitHub Desktop.

Select an option

Save hiboma/9865994 to your computer and use it in GitHub Desktop.
perf 計測生データ
perf 計測生データ
* perf record -p <pid> で profile を取る
* bash と sshd を対象とする
* sshd は TCPソケットでホストOSからのパケットを受け取ってシェルプロンプトに文字を書くのを請け負っている
* ネットワーク割り込みが直接関係するのは、たぶん、sshd
* エンターキー押しっぱなし、適当なキーを押しっぱなしにしてる状態の profile を取る
@hiboma
Copy link
Author

hiboma commented Mar 30, 2014

HPET on + bash + /proc/irq/19/smp_affinity が (f) デフォルト

  • acpi_pm_read が消えた !!!
# ========
# captured on: Sun Mar 30 03:07:25 2014
# hostname : vagrant-centos65.vagrantup.com
# os release : 2.6.32-431.el6.x86_64
# perf version : 2.6.32-431.11.2.el6.x86_64.debug
# arch : x86_64
# nrcpus online : 4
# nrcpus avail : 4
# cpudesc : Intel(R) Core(TM) i7-4558U CPU @ 2.80GHz
# cpuid : GenuineIntel,6,69,1
# total memory : 603168 kB
# cmdline : /usr/bin/perf record -p 1578 
# event : name = cpu-clock, type = 1, config = 0x0, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, excl_host = 0, excl_guest = 1, precise_ip = 0, id = { 32 }
# HEADER_CPU_TOPOLOGY info available, use -I to display
# HEADER_NUMA_TOPOLOGY info available, use -I to display
# pmu mappings: tracepoint = 2, software = 1
# ========
#
# Samples: 36  of event 'cpu-clock'
# Event count (approx.): 36
#
# Overhead  Command      Shared Object                               Symbol
# ........  .......  .................  ...................................
#
    16.67%     bash  libc-2.12.so       [.] __strlen_sse2                  
    16.67%     bash  bash               [.] 0x000000000004b57e             
     8.33%     bash  libc-2.12.so       [.] __GI___strcmp_ssse3            
     5.56%     bash  libc-2.12.so       [.] __gconv_transform_utf8_internal
     5.56%     bash  libc-2.12.so       [.] __mbrtowc                      
     2.78%     bash  libc-2.12.so       [.] malloc                         
     2.78%     bash  libc-2.12.so       [.] __wcslen                       
     2.78%     bash  libc-2.12.so       [.] _dl_mcount_wrapper_check       
     2.78%     bash  bash               [.] yyparse                        
     2.78%     bash  bash               [.] dispose_fd_bitmap              
     2.78%     bash  bash               [.] hash_search                    
     2.78%     bash  bash               [.] rl_prep_terminal               
     2.78%     bash  bash               [.] _rl_start_using_history        
     2.78%     bash  bash               [.] _rl_adjust_point               
     2.78%     bash  [kernel.kallsyms]  [k] finish_task_switch             
     2.78%     bash  [kernel.kallsyms]  [k] bit_waitqueue                  
     2.78%     bash  [kernel.kallsyms]  [k] kmem_cache_alloc_node_trace    
     2.78%     bash  [kernel.kallsyms]  [k] kfree                          
     2.78%     bash  [kernel.kallsyms]  [k] vfs_ioctl                      
     2.78%     bash  [kernel.kallsyms]  [k] inotify_inode_queue_event      
     2.78%     bash  [kernel.kallsyms]  [k] tty_flip_buffer_push           
     2.78%     bash  [kernel.kallsyms]  [k] netlink_table_ungrab           


#
# (For a higher level overview, try: perf report --sort comm,dso)
#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment