On Tuesday, 22 November 2016 18:06:50 UTC+8, Dave Cheney wrote: > > Perf record / report will highlight the problem.
Thanks Dave.And here is the output of the perf report: Samples: 48K of event 'cpu-clock', Event count (approx.): 12020250000 Overhead Command Shared Object Symbol 59.40% penalty [kernel.kallsyms] [k] _raw_spin_unlock_irqrestore 13.22% penalty [kernel.kallsyms] [k] finish_task_switch 2.13% penalty [kernel.kallsyms] [k] get_user_pages_fast 1.87% penalty penalty [.] runtime.mallocgc 1.05% penalty [kernel.kallsyms] [k] futex_wake 0.75% penalty penalty [.] runtime.findrunnable 0.72% penalty penalty [.] runtime.futex 0.71% penalty penalty [.] runtime/internal/atomic.Xchg 0.67% penalty [kernel.kallsyms] [k] unlock_page 0.61% penalty [kernel.kallsyms] [k] wake_q_add 0.56% penalty penalty [.] runtime.schedule 0.55% penalty penalty [.] runtime.runqgrab 0.52% penalty [kernel.kallsyms] [k] entry_SYSCALL_64_after_swapgs 0.50% penalty penalty [.] runtime.lock 0.46% penalty [kernel.kallsyms] [k] __wake_up_bit 0.43% penalty [kernel.kallsyms] [k] smp_call_function_single 0.39% penalty penalty [.] main.main.func1 0.37% penalty [kernel.kallsyms] [k] get_futex_key 0.37% penalty penalty [.] runtime.notesleep 0.35% penalty [kernel.kallsyms] [k] do_futex 0.32% penalty [kernel.kallsyms] [k] hash_futex 0.32% penalty [kernel.kallsyms] [k] sys_futex 0.32% penalty penalty [.] runtime.chanrecv 0.32% penalty penalty [.] runtime.startm 0.31% penalty penalty [.] runtime/internal/atomic.Load 0.30% penalty penalty [.] runtime/internal/atomic.Cas 0.30% penalty [kernel.kallsyms] [k] do_select 0.28% penalty [kernel.kallsyms] [k] core_sys_select 0.28% penalty [kernel.kallsyms] [k] futex_wait_queue_me 0.27% penalty penalty [.] runtime.chansend 0.25% penalty penalty [.] runtime.casgstatus -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.