From owner-svn-src-head@freebsd.org Sat Sep 16 20:32:36 2017 Return-Path: Delivered-To: svn-src-head@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 5E0D6E0717D; Sat, 16 Sep 2017 20:32:36 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-lf0-x236.google.com (mail-lf0-x236.google.com [IPv6:2a00:1450:4010:c07::236]) (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 D3F1A3E69; Sat, 16 Sep 2017 20:32:35 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-lf0-x236.google.com with SMTP id q132so5000898lfe.5; Sat, 16 Sep 2017 13:32:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UUqrDg0+EZIsLXxmt4FSpUUiOjbnwFLWUyFfAkMdnwk=; b=SIVNem8VqoDy2mODtGCATB0Cn6yApngM6NXXpq8BPAt6xX83OUrJCyLwJg45eh8pDJ vzFhlryKaO9kSHbeeDIcXKd8DqLgG8tYJGox3kdmiJzEeic3Qv2QuT3zEVVkwdeDMjgP f7ZFReTSENH9hUlDnSBmoCqDu4ZygLovxguhblyPb3YuxkMPe31FTicEVHaJcOoym5Wl UBxFml5FZBqZq00q5uEHDY3M+GPxV7vaDLZUqUPaKHOTVNHk8BWMeOQjDt5+DbPClJuW /TUqqmbXpNBNhGf4tHna8WDmp7j+6wDBJrhyDKGjtUwi1bMKu+WoaMeRCyKPcIwYaTpk Fcsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UUqrDg0+EZIsLXxmt4FSpUUiOjbnwFLWUyFfAkMdnwk=; b=lrH3uaOkIyJDQRGdLM9tTujxnv2SB6QxfHhOVzyjdNMyMQgYXE/hlchYi1xM19H/JM 3W55NZhL8gNMsdqIjNTfyzWM5qXX5acY3dMXzRpoKb5ID1G2ZlBQXVkz6pNGe/rAC4jQ Yzz5YJutYqAw8XaunNnzTr6qXzRxGR7l2gi13BCsV4PfA396/xdd8G4c5lQmFGbmwlLt iPybUwSq7wAxu7C/AgnZvMqfLKmVK1eLhQriS60T86GRJ4/RRH+wZ25Yn4UjKYvFPScY IHG2SFqi7WtnJlQhkq/Nvuc81txkT9/EmX+VcBjLIpQacL3G2YB5R2qWuGPiCvys2Tnd oR4A== X-Gm-Message-State: AHPjjUj9mNtiMhNIjXdEGpwubjldl/vuJgBdJmX23XTfqS4+88qBu5/6 +0Pu5Xnd575oWPxmtCHHLBP9uKqkgpkYewUUj9I= X-Google-Smtp-Source: AOwi7QBVIZ+kgXtj9qxfy9N6xZ0s4ppbQzoKdoFBzB2Gn5X/bi7r/HTF462tvTHmnfBUG12+PLKk9PlJab5y4NipsKw= X-Received: by 10.25.212.209 with SMTP id l200mr1675949lfg.13.1505593953795; Sat, 16 Sep 2017 13:32:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.87.65 with HTTP; Sat, 16 Sep 2017 13:32:33 -0700 (PDT) Received: by 10.46.87.65 with HTTP; Sat, 16 Sep 2017 13:32:33 -0700 (PDT) In-Reply-To: <67bb96f2-da01-8bce-65ba-bf811f51e56d@FreeBSD.org> References: <201709072143.v87Lhdsg060310@repo.freebsd.org> <20170914203232.GA72190@bish> <67bb96f2-da01-8bce-65ba-bf811f51e56d@FreeBSD.org> From: Justin Hibbits Date: Sat, 16 Sep 2017 15:32:33 -0500 Message-ID: Subject: Re: svn commit: r323290 - head/sys/vm To: Andreas Tobler Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, Mark Johnston Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Sep 2017 20:32:36 -0000 On Sep 16, 2017 14:02, "Andreas Tobler" wrote: On 14.09.17 22:32, Mark Johnston wrote: > On Thu, Sep 14, 2017 at 09:51:17PM +0200, Andreas Tobler wrote: > >> Hi Mark, >> >> On 07.09.17 23:43, Mark Johnston wrote: >> >>> Author: markj >>> Date: Thu Sep 7 21:43:39 2017 >>> New Revision: 323290 >>> URL: https://svnweb.freebsd.org/changeset/base/323290 >>> >>> Log: >>> Speed up vm_page_array initialization. >>> We currently initialize the vm_page array in three passes: one >>> to zero >>> the array, one to initialize the "order" field of each page >>> (necessary >>> when inserting them into the vm_phys buddy allocator one-by-one), and >>> one to initialize the remaining non-zero fields and individually >>> insert >>> each page into the allocator. >>> Merge the three passes into one following a suggestion from alc: >>> initialize vm_page fields in a single pass, and use >>> vm_phys_free_contig() >>> to efficiently insert physical memory segments into the buddy >>> allocator. >>> This reduces the initialization time to a third or a quarter of what >>> it >>> was before on most systems that I tested. >>> Reviewed by: alc, kib >>> MFC after: 3 weeks >>> Differential Revision: https://reviews.freebsd.org/D12248 >>> >>> Modified: >>> head/sys/vm/vm_page.c >>> head/sys/vm/vm_phys.c >>> head/sys/vm/vm_phys.h >>> >> >> I just found out that this commit breaks booting my powerpc64 Quad G5. >> It hangs, pressing ctrl-t shows: cmd: sh [*vm active pagequeue]. >> >> Sometimes it hangs earlier when the kbd is not there yet (usb), then I >> can't get the process/task where it hangs. >> >> Note, this kernel is compiled with the default gcc (4.2.1-FreeBSD) >> >> Any ideas how to find out what's wrong? >> > > Are you able to break into DDB when the hang occurs? If so, the output > of "show page" would be helpful. > Unfortunately not from the beginning. The keyboard is usb and it gets installed late. Once it survives the loading of the kbd and co, I can enter into ddb. But it is a trial and error. So far I didn't succeed to come that far. What about using dcons? That's saved me many times when I couldn't break into ddb from the console. Are you running with INVARIANTS configured? If not, please try that. > The above was w/o INVARIANTS. With invariants the kernel panics immediately after boot, see pic. The previous revision, r323289 seems stable, at least it survived >> several kernel builds. >> > > Could you apply the patch below and capture the first page or so of > output from after the kernel starts booting? > I applied this diff and you see its output on the pic: https://people.freebsd.org/~andreast/r323290_generic64_with_dbg_patch.jpg I try now to get that far that I have a kbd and capture a 'show page'. Thanks, Andreas