All of lore.kernel.org
 help / color / mirror / Atom feed
* strange values of loadavg and nr of io-blocked tasks
@ 2012-11-16 11:47 Nikola Ciprich
  2012-11-17 14:23 ` Dr. David Alan Gilbert
  0 siblings, 1 reply; 2+ messages in thread
From: Nikola Ciprich @ 2012-11-16 11:47 UTC (permalink / raw)
  To: linux-kernel mlist; +Cc: nik

[-- Attachment #1: Type: text/plain, Size: 995 bytes --]

Hi,

I was doing some I/O tuning of our KVM host, and noticed some
strange behaviour. When I start some heavy I/O load on guest
(ie run some fio benchmark), loadavg value of the host jumps
to value about 65 and holds until load ends. sar reports similar
number of blocked tasks. I don't really understand those numbers,
because only active tasks are 4 qemu-kvm threads and few other sleeping
tasks (so none in R or D state).
is it possible to somehow find which tasks seem to be blocked?
or why is loadavg value so high?
the system is x86_64 quad core with 4GB RAM running centos 6 with 3.0.52-rc1 kernel.

Thanks a lot in advance for any answer

BR

nik

-- 
-------------------------------------
Ing. Nikola CIPRICH
LinuxBox.cz, s.r.o.
28.rijna 168, 709 00 Ostrava

tel.:   +420 591 166 214
fax:    +420 596 621 273
mobil:  +420 777 093 799
www.linuxbox.cz

mobil servis: +420 737 238 656
email servis: servis@linuxbox.cz
-------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: strange values of loadavg and nr of io-blocked tasks
  2012-11-16 11:47 strange values of loadavg and nr of io-blocked tasks Nikola Ciprich
@ 2012-11-17 14:23 ` Dr. David Alan Gilbert
  0 siblings, 0 replies; 2+ messages in thread
From: Dr. David Alan Gilbert @ 2012-11-17 14:23 UTC (permalink / raw)
  To: Nikola Ciprich; +Cc: linux-kernel mlist, nik

* Nikola Ciprich (nikola.ciprich@linuxbox.cz) wrote:
> Hi,
> 
> I was doing some I/O tuning of our KVM host, and noticed some
> strange behaviour. When I start some heavy I/O load on guest
> (ie run some fio benchmark), loadavg value of the host jumps
> to value about 65 and holds until load ends. sar reports similar
> number of blocked tasks. I don't really understand those numbers,
> because only active tasks are 4 qemu-kvm threads and few other sleeping
> tasks (so none in R or D state).
> is it possible to somehow find which tasks seem to be blocked?
> or why is loadavg value so high?
> the system is x86_64 quad core with 4GB RAM running centos 6 with 3.0.52-rc1 kernel.

Recebt qemu split there io across multiple threads (as an alternative to AIO),
so what you"ll see is each qemu will dynamically start a load of threads when
is doing heavy IO, none of them will usr much cpu, but each will be blocking on io, and hence count as a 1 for the load.

It does have some flags (which I forget) that let you limit the number of
threads or flip to AIO.

Other than getting a scary loadavg number, it doesn't seem to have any bad
effecta.

Dave
-- 
 -----Open up your eyes, open up your mind, open up your code -------   
/ Dr. David Alan Gilbert    |       Running GNU/Linux       | Happy  \ 
\ gro.gilbert @ treblig.org |                               | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-17 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-16 11:47 strange values of loadavg and nr of io-blocked tasks Nikola Ciprich
2012-11-17 14:23 ` Dr. David Alan Gilbert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.