public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Pekka Enberg <penberg@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	LKML <linux-kernel@vger.kernel.org>,
	Sasha Levin <levinsasha928@gmail.com>
Subject: Re: [patch 0/3] kvm tool: Serial emulation overhaul
Date: Sun, 11 Dec 2011 11:46:07 +0100	[thread overview]
Message-ID: <20111211104607.GA10351@elte.hu> (raw)
In-Reply-To: <20111211103047.GA19299@elte.hu>


btw., i just noticed another performance weirdness, running the 
latest version on -tip with such a 64-bit x86 kernel:

  make defconfig
  make kvmconfig   # sidenote: sigh - this still needs a 'make oldconfig'


and do a 'kvm run' into a shell, then I get a permanently busy 
kvm executable sucking up CPU time:

   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 28206 mingo     20   0 3586m  80m 1080 S 56.1  0.7   0:13.83 kvm
 29462 mingo     20   0 15380 1392  900 R  0.3  0.0   0:00.02 top

perf kvm top suggests simple idling around of 16 CPUs:

--------------------------------------------------------------------------------------------------
   PerfTop:    1635 irqs/sec  kernel:91.1% us: 0.3% guest kernel: 8.5% guest us: 0.0% exact:  0.0% [1000Hz cycles],  (all, 16 CPUs)
--------------------------------------------------------------------------------------------------

             samples  pcnt function                  DSO
             _______ _____ _________________________ _______________________________

              155.00 17.9% apic_timer_interrupt      /home/mingo/linux/linux/vmlinux
               89.00 10.3% find_busiest_group        /home/mingo/linux/linux/vmlinux
               66.00  7.6% native_apic_mem_write     /home/mingo/linux/linux/vmlinux
               51.00  5.9% idle_cpu                  /home/mingo/linux/linux/vmlinux
               29.00  3.3% __rcu_pending             /home/mingo/linux/linux/vmlinux
               25.00  2.9% run_posix_cpu_timers      /home/mingo/linux/linux/vmlinux
               24.00  2.8% _raw_spin_lock            /home/mingo/linux/linux/vmlinux
               19.00  2.2% cpumask_next_and          /home/mingo/linux/linux/vmlinux
               19.00  2.2% ktime_get                 /home/mingo/linux/linux/vmlinux
               18.00  2.1% run_timer_softirq         /home/mingo/linux/linux/vmlinux
               16.00  1.8% run_rebalance_domains     /home/mingo/linux/linux/vmlinux
               16.00  1.8% native_sched_clock        /home/mingo/linux/linux/vmlinux
               15.00  1.7% rcu_exit_nohz             /home/mingo/linux/linux/vmlinux
               14.00  1.6% tick_nohz_stop_sched_tick /home/mingo/linux/linux/vmlinux
               14.00  1.6% hrtimer_run_queues        /home/mingo/linux/linux/vmlinux

NO_HZ is set in the .config.

Btw., 'perf kvm' is in need of some love: for example it is 
unable to pick up a vmlinux from the current directory and 
./vmlinux does not work either, it needs 
/home/mingo/linux/linux/vmlinux specified explicitly - that 
sucks.

Ideally perf could be taught to talk to the guest kvm process 
and get its vmlinux home position (even better: its guest 
kallsyms) from there - so if i typed 'perf kvm top' it would do 
the right thing all automagically. [ What a fantastc level of 
automation! ;-) ]

Thanks,

	Ingo

  reply	other threads:[~2011-12-11 10:47 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-10 13:27 [patch 0/3] kvm tool: Serial emulation overhaul Thomas Gleixner
2011-12-10 13:27 ` [patch 1/3] kvm tool: serial: Cleanup coding style Thomas Gleixner
2011-12-10 13:27 ` [patch 2/3] kvm tool: serial: Simplify switch cases Thomas Gleixner
2011-12-10 13:27 ` [patch 3/3] kvm tool: serial: Fix interrupt handling Thomas Gleixner
2011-12-10 15:17 ` [patch 0/3] kvm tool: Serial emulation overhaul Pekka Enberg
2011-12-10 20:51   ` Thomas Gleixner
2011-12-11  8:15     ` Pekka Enberg
2011-12-11 10:30       ` Ingo Molnar
2011-12-11 10:46         ` Ingo Molnar [this message]
2011-12-11 14:04         ` Thomas Gleixner
2011-12-11 15:53           ` Ingo Molnar
2011-12-12  5:30             ` Sasha Levin
2011-12-12 11:12               ` Ingo Molnar
2011-12-12 11:20                 ` Alan Cox
2011-12-12 17:20                   ` Ingo Molnar
2011-12-12 18:16                   ` Avi Kivity
2011-12-12 18:16                   ` Avi Kivity
2011-12-12 21:36                     ` Alan Cox
2011-12-13 10:32                       ` Avi Kivity
2011-12-12 11:23                 ` Cyrill Gorcunov
2011-12-12 17:40                 ` Sasha Levin
2011-12-12 17:45                   ` Ingo Molnar
2011-12-12  9:42             ` Thomas Gleixner
2011-12-12 11:19             ` Pekka Enberg
2011-12-12 17:20               ` Ingo Molnar
2011-12-12 18:40                 ` Pekka Enberg
2011-12-12 19:14                   ` Pekka Enberg
2011-12-12 19:21                   ` Ingo Molnar
2011-12-13  0:59                     ` Thomas Gleixner
2011-12-13  7:03                       ` Pekka Enberg
2011-12-13 11:05                         ` Alan Cox
2011-12-13 10:58                       ` Avi Kivity
2011-12-13 13:52                         ` Thomas Gleixner
2011-12-13 14:23                           ` Avi Kivity
2011-12-13 14:30                             ` Sasha Levin
2011-12-13 14:51                             ` Thomas Gleixner
2011-12-13 14:58                               ` Avi Kivity
2011-12-12 21:03                   ` James Courtier-Dutton
2011-12-12 18:19               ` Avi Kivity
2011-12-12 18:31                 ` Pekka Enberg
2011-12-13 10:33                   ` Avi Kivity
2011-12-12 10:27           ` Alan Cox
2011-12-12 10:59             ` Sasha Levin
2011-12-12 11:02               ` Alan Cox
2011-12-12 18:21                 ` Avi Kivity
2011-12-12 17:21               ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111211104607.GA10351@elte.hu \
    --to=mingo@elte.hu \
    --cc=levinsasha928@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=penberg@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox