From owner-freebsd-virtualization@freebsd.org Mon Mar 6 13:00:02 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5D056CFA205 for ; Mon, 6 Mar 2017 13:00:02 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from ihor-3.amdmi3.ru (ihor-3.amdmi3.ru [185.117.152.228]) by mx1.freebsd.org (Postfix) with ESMTP id 145D41EB5 for ; Mon, 6 Mar 2017 13:00:01 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from hive.panopticon (unknown [78.153.152.119]) by ihor-3.amdmi3.ru (Postfix) with ESMTPS id D28F51AF125 for ; Mon, 6 Mar 2017 15:59:53 +0300 (MSK) Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 57B6ADD0 for ; Mon, 6 Mar 2017 15:54:07 +0300 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id AFD68391; Mon, 6 Mar 2017 15:58:12 +0300 (MSK) Date: Mon, 6 Mar 2017 15:58:12 +0300 From: Dmitry Marakasov To: freebsd-virtualization@freebsd.org Subject: Re: Timer problems on FreeBSD 11R on KVM Message-ID: <20170306125812.GA47885@hades.panopticon> References: <20170301174640.GA44226@hades.panopticon> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170301174640.GA44226@hades.panopticon> User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 13:00:02 -0000 * Dmitry Marakasov (amdmi3@amdmi3.ru) wrote: Virtualization problems keep raining on me. Or there seem to be exist major FreeBSD problem when running under hypervisor. Another VM under VMWare vSphere is now showing similar symptoms - stable 33.3% intr load: 3 users Load 2.07 2.77 2.70 Mar 6 15:53 Mem usage: 95%Phy 58%Kmem Mem: KB REAL VIRTUAL VN PAGER SWAP PAGER Tot Share Tot Share Free in out in out Act 1697056 15280 7672636 22792 739732 count All 1700936 19060 7692936 42992 pages Proc: Interrupts r p d s w Csw Trp Sys Int Sof Flt ioflt 389 total 2 166 1203 810 15k 20 92 cow atkbd0 1 zfod 18 attimer0 0 2.0%Sys 33.3%Intr 0.0%User 6.9%Nice 57.8%Idle ozfod fdc0 6 | | | | | | | | | | %ozfod ata1 15 =+++++++++++++++++--- daefr mpt0 17 dtbuf prcfr 2 em0 18 Namei Name-cache Dir-cache 350812 desvn totfr 103 cpu0:timer Calls hits % hits % 344853 numvn react 77 cpu2:timer 326 326 100 316930 frevn pdwak 189 cpu1:timer 219 pdpgs Disks da0 da1 da2 da3 cd0 pass0 pass1 intrn KB/t 0.00 0.00 0.00 0.00 0.00 0.00 0.00 13835380 wire tps 0 0 0 0 0 0 0 544104 act MB/s 0.00 0.00 0.00 0.00 0.00 0.00 0.00 1219264 inact %busy 0 0 0 0 0 0 0 cache 739732 free buf Switching to i8254 doesn't help either, load does not change, just intrrupts move to attimer0. This is box is not production so I can do whatever I like with it. Here's dtrace output from /usr/share/dtrace/toolkit/hotkernel, but I doubt it's helpful: kernel`in_pcbref 790 4.2% kernel`__rw_try_rlock 1054 5.6% kernel`tcp_tw_2msl_scan 1419 7.5% kernel`__rw_rlock 1433 7.6% kernel`in_pcbrele_wlocked 1846 9.7% kernel`_rw_runlock_cookie 2362 12.5% kernel`acpi_cpu_c1 8615 45.5% -- Dmitry Marakasov . 55B5 0596 FF1E 8D84 5F56 9510 D35A 80DD F9D2 F77D amdmi3@amdmi3.ru ..: jabber: amdmi3@jabber.ru http://amdmi3.ru