From owner-freebsd-virtualization@freebsd.org Tue Mar 15 21:19:27 2016 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 D0590AD0C57 for ; Tue, 15 Mar 2016 21:19:27 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-qk0-x22b.google.com (mail-qk0-x22b.google.com [IPv6:2607:f8b0:400d:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8EBBA2F99 for ; Tue, 15 Mar 2016 21:19:27 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: by mail-qk0-x22b.google.com with SMTP id o6so12977980qkc.2 for ; Tue, 15 Mar 2016 14:19:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=OdkrXfcCGaSYABE6gun5iC5x7ORvvXIYYKst2JXlnHE=; b=Piwx1mZRARR7Kc0YbyKm8VonWwcQMQgD0BXSFwxjzPu0079tPfgEHdgxyivJo0vYgS sy3ls1Qkby72Xr0Jn3nQ/3fI6x7/g24kWuDwXiV4YNrLiIOksoK42KskZclN+tXYbmU1 okt5Z/auWQwXQMAkRx3DQga9luEHhY5XTTJn0Sndu262289PPIcbKqAWl0dLTBcQCbH6 sT9/Ua5zE0DcnqdfxByL1wfT1r4rmufMljA5Nyj+rPmpzcHON/kbUebFaSWUSeUw/IMN irlLTf5kzHFE6ATZz2wVcnz8Q5mxi0sJDcu5icr2Tj4DFYcxufdNLlwYwfGITDvI4/FM PaTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=OdkrXfcCGaSYABE6gun5iC5x7ORvvXIYYKst2JXlnHE=; b=QNKwvVbOuZ3MJL67jZ4K5oezzrNTTEU7IINchMBdJPq8r8f18xlGV+mBIFKX/oEX/m lCWj0pN3GstEEEzxT78uHR853yUzi/VXOn9HtrXiLkrjCKkmSqYJdXHgtm2xkaNNZx7P JmPOTDSHu+x3x/+IrJHLutWv9559MwLD+hPjYRsRzuX39b5/x+1n2L7C7MF6DLplkgt3 sWoXgZy3e7+5OAFfVp9k2/6cCzl2nKozBvIoWOxnZLM4NY+fH5v8hRgur9VAC04hRTTV 88/2QKxYQ805Amv90uJzuYrIKHhNv1ORYrsg90vjdD1D4bfZ5YHyB40muka19Sf9JLPc LZ2w== X-Gm-Message-State: AD7BkJKogS+8lRWg0jeSdX9At7uEcPgpe9H8dg2oGet5TAOs/des5SkpYHV4ad+1vITj3iV9bpMW0Qw1Zommdg== MIME-Version: 1.0 X-Received: by 10.55.221.18 with SMTP id n18mr327920qki.50.1458076766725; Tue, 15 Mar 2016 14:19:26 -0700 (PDT) Received: by 10.140.43.6 with HTTP; Tue, 15 Mar 2016 14:19:26 -0700 (PDT) In-Reply-To: <20918.1458052609@critter.freebsd.dk> References: <20918.1458052609@critter.freebsd.dk> Date: Tue, 15 Mar 2016 14:19:26 -0700 Message-ID: Subject: Re: -current host, 10.1 client loops From: Neel Natu To: Poul-Henning Kamp Cc: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.21 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: Tue, 15 Mar 2016 21:19:27 -0000 Hi, On Tue, Mar 15, 2016 at 7:36 AM, Poul-Henning Kamp wrote: > I'm seing bhyve go into some kind of endless loop while trying to > compile the gcc port on 10.1 as guest. > > In one case CTRL-T on the console kept working, but showed an rm(1) > process raking up CPU time. > > Are there known bogon in current/bhyve or using 10.1-R/i386 as a guest > I have not spotted ? > > How does one debug stuff like this ? > I usually do the following things to get a sense for what might be going on: - "top -H" on the host to figure out if guest vcpu threads are spinning - "top -H" inside the guest if possible - "bhyvectl --vm vmname --cpu vcpuid --get-stats" on the host If there is nothing obvious from the above then I will recompile the host kernel with KTR enabled (vmm.ko has detailed tracing at KTR_GEN). This is usually very helpful to understand what might be going on. Also, if it is possible to reproduce with a single vcpu then it will help when analyzing the output of ktrdump. best Neel > Poul-Henning > > Bhyve started with: > > sh /usr/share/examples/bhyve/vmrun.sh \ > -m 1G \ > -t ${VMN} \ > -d ${P}.root.dd \ > -d ${P}.swap.dd \ > -d ${P}.tami_install.dd \ > -d ${P}.tami_git.dd \ > vm${VMU} || true > > Host: > 11.0-CURRENT #4 r296808: Sun Mar 13 22:39:59 UTC 2016 > > CPU: AMD Athlon(tm) II X3 455 Processor (3311.18-MHz K8-class CPU) > Origin="AuthenticAMD" Id=0x100f53 Family=0x10 Model=0x5 Stepping=3 > Features=0x178bfbff > Features2=0x802009 > AMD Features=0xee500800 > AMD Features2=0x837ff > SVM: NP,NRIP,NAsids=64 > TSC: P-state invariant > real memory = 17179869184 (16384 MB) > avail memory = 16573935616 (15806 MB) > Event timer "LAPIC" quality 400 > ACPI APIC Table: <090712 APIC1033> > FreeBSD/SMP: Multiprocessor System Detected: 3 CPUs > FreeBSD/SMP: 1 package(s) x 3 core(s) > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > cpu2 (AP): APIC ID: 2 > ACPI BIOS Warning (bug): 32/64X length mismatch in FADT/Gpe0Block: 64/32 (20150818/tbfadt-649) > > > Guest: > 10.1-RELEASE i386 > > > > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"