From owner-freebsd-mips@freebsd.org Mon Mar 5 21:36:28 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5ADE6F2BD02 for ; Mon, 5 Mar 2018 21:36:28 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C71626F3E8 for ; Mon, 5 Mar 2018 21:36:27 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id w25LGZcV026511 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL) for ; Mon, 5 Mar 2018 22:16:37 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id w25LGZtI021908 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 5 Mar 2018 22:16:35 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id w25LGZj9021907 for freebsd-mips@freebsd.org; Mon, 5 Mar 2018 22:16:35 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Mon, 5 Mar 2018 22:16:35 +0100 From: Wolfgang Zenker To: freebsd-mips@freebsd.org Subject: ELF - panic on installworld Message-ID: <20180305211635.GA21623@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: private site User-Agent: Mutt/1.9.4 (2018-02-28) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Mon, 05 Mar 2018 22:16:37 +0100 (CET) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2018 21:36:28 -0000 Hi, I'm trying to run installworld using 11-STABLE on an Ubiquity Edge Router Lite (mips64, 2 cores, 512 MB Ram). Unfortunately I haven't managed to finish the installworld yet, I always get a panic: kernel stack overflow - trapframe at 0xffffffff80917eb0 in slightly different places during the installworld. Of the 4 panics I have seen on the serial console, 3 had the trapframe at 0xffffffff80917eb0 and one at 0xffffffff80915eb0 /usr/src and /usr/obj are nfs-mounted, and I have configured almost 2 GB of swap. The build was done in a Qemu environment. Any hints how to proceed from here? Wolfgang From owner-freebsd-mips@freebsd.org Mon Mar 5 21:45:45 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D658BF2C9DC for ; Mon, 5 Mar 2018 21:45:45 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3DDA46FABD for ; Mon, 5 Mar 2018 21:45:45 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id w25LjS3f026650 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL) for ; Mon, 5 Mar 2018 22:45:30 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id w25LjSZD022395 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 5 Mar 2018 22:45:28 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id w25LjSIP022394 for freebsd-mips@freebsd.org; Mon, 5 Mar 2018 22:45:28 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Mon, 5 Mar 2018 22:45:28 +0100 From: Wolfgang Zenker To: freebsd-mips@freebsd.org Subject: ERL (was: ELF - panic on installworld) Message-ID: <20180305214528.GB21623@lyxys.ka.sub.org> References: <20180305211635.GA21623@lyxys.ka.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180305211635.GA21623@lyxys.ka.sub.org> Organization: private site User-Agent: Mutt/1.9.4 (2018-02-28) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Mon, 05 Mar 2018 22:45:30 +0100 (CET) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2018 21:45:46 -0000 Sorry for the messup in the subject. * Wolfgang Zenker [180305 22:16]: > Hi, > > I'm trying to run installworld using 11-STABLE on an Ubiquity Edge > Router Lite (mips64, 2 cores, 512 MB Ram). Unfortunately I haven't > managed to finish the installworld yet, I always get a > panic: kernel stack overflow - trapframe at 0xffffffff80917eb0 > in slightly different places during the installworld. Of the 4 panics I > have seen on the serial console, 3 had the trapframe at 0xffffffff80917eb0 > and one at 0xffffffff80915eb0 > /usr/src and /usr/obj are nfs-mounted, and I have configured almost 2 GB > of swap. The build was done in a Qemu environment. > > Any hints how to proceed from here? > > Wolfgang > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" From owner-freebsd-mips@freebsd.org Tue Mar 6 01:28:15 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D959F3D4A3 for ; Tue, 6 Mar 2018 01:28:15 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 88D1E784D3 for ; Tue, 6 Mar 2018 01:28:14 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w261S6eL027601 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 6 Mar 2018 02:28:07 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: wolfgang@lyxys.ka.sub.org Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w261S3VM025820 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 6 Mar 2018 08:28:03 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: ELF - panic on installworld To: Wolfgang Zenker , freebsd-mips@freebsd.org References: <20180305211635.GA21623@lyxys.ka.sub.org> From: Eugene Grosbein Message-ID: <5A9DEE9E.6050906@grosbein.net> Date: Tue, 6 Mar 2018 08:27:58 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20180305211635.GA21623@lyxys.ka.sub.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 01:28:15 -0000 06.03.2018 4:16, Wolfgang Zenker пишет: > Hi, > > I'm trying to run installworld using 11-STABLE on an Ubiquity Edge > Router Lite (mips64, 2 cores, 512 MB Ram). Unfortunately I haven't > managed to finish the installworld yet, I always get a > panic: kernel stack overflow - trapframe at 0xffffffff80917eb0 > in slightly different places during the installworld. Of the 4 panics I > have seen on the serial console, 3 had the trapframe at 0xffffffff80917eb0 > and one at 0xffffffff80915eb0 > /usr/src and /usr/obj are nfs-mounted, and I have configured almost 2 GB > of swap. The build was done in a Qemu environment. > > Any hints how to proceed from here? Try increasing kernel stack size from default 2 pages to 4 by rebuilding the kernel with options KSTACK_PAGES=4 From owner-freebsd-mips@freebsd.org Tue Mar 6 01:30:56 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C77EF3D93B for ; Tue, 6 Mar 2018 01:30:56 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) (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 8D21B7881C for ; Tue, 6 Mar 2018 01:30:55 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by mail-qk0-x231.google.com with SMTP id s188so23076545qkb.2 for ; Mon, 05 Mar 2018 17:30:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=AxcQgeVDURTJDHBUc0cgS0S4Y62SgUOVj+lERQsl46Y=; b=h0sNkS8y+uqDS8ipOPb/5VhSExt48uo2Z+RhtGD0uvAIH6XBzr2LoRPPfTE94EOo/V oIFu/EP4W+J6NpC36G6pSGomiaVS/OKVunmeZ+WceKCXXVZL2/S0K0NVMtRiMxYjfRx2 f5MalD3gHS81GP6W69enDq3FYDd9IIY0b+2BC7bRNDOYI+el75ND4BuOp+Po9NK0dV4O fEA/eOU0X48tJhVZ+m579/XaBKhFEYW8qtB9H1VVHakcuM6JxRlzCTelaHznwqd+dQdS KdfKcPe9qsJwbGyDMkQL6Ls/WuDc94AlEjidmVATsRLgYUmI9R3GBxKiCggVIJXXUK/e wG4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=AxcQgeVDURTJDHBUc0cgS0S4Y62SgUOVj+lERQsl46Y=; b=YIFeakBBPMuTj5fGyduN3chBtAopKSzJyxvkSICfVz5zAKLfJgx3OS7SfqKPHsOw9i mvae9WtPVfG4E1uq1v+vh3yjbUDiQ+4qRqvC7LMDmNncgqUaXKkaUWC7lfoRXWisyxYG 6GM3VAEUevq2H0N6KEVT8YMqZfMbiJWTgJ/Aj3zgkwhDenaFPrsw7ix49NOzBWjMRIcS lacFJdAPoRP1UreguDjfFNyV8BYtSGjzdCPgNprpeQyUBXFhY/EOR1EQr2QI1dQ7pkmP uyFxiBMNbL7WA3YfbyN7+RCHIiMuzLTbv1zvrkzFSc+jft3Joh/gtaQnSXvGddXnEz9l oRGg== X-Gm-Message-State: AElRT7EpzeRs2DAgm7ydl7fR3xWLId0kYuvljz8RCc1AYaRWET7OqDIV ZLI7EmgZ2XvhLkj+mcJOOeqrwO+A X-Google-Smtp-Source: AG47ELsNwC6ItQVjAtrS9NEn5IWsxisjJcqh4QhClgjWkF+C2JmdrwXc8Dq3fwhm4vy8Z6WvhcbFEw== X-Received: by 10.55.103.130 with SMTP id b124mr25651239qkc.244.1520299855219; Mon, 05 Mar 2018 17:30:55 -0800 (PST) Received: from kan ([2601:18f:802:4680:226:18ff:fe00:232e]) by smtp.gmail.com with ESMTPSA id o29sm9507500qtl.39.2018.03.05.17.30.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Mar 2018 17:30:53 -0800 (PST) Date: Mon, 5 Mar 2018 20:30:42 -0500 From: Alexander Kabaev To: Wolfgang Zenker Cc: freebsd-mips@freebsd.org Subject: Re: ERL (was: ELF - panic on installworld) Message-ID: <20180305203042.22a76c0b@kan> In-Reply-To: <20180305214528.GB21623@lyxys.ka.sub.org> References: <20180305211635.GA21623@lyxys.ka.sub.org> <20180305214528.GB21623@lyxys.ka.sub.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/mEOkSBkMIsls7M+/LaOZqz9"; protocol="application/pgp-signature" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 01:30:56 -0000 --Sig_/mEOkSBkMIsls7M+/LaOZqz9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 5 Mar 2018 22:45:28 +0100 Wolfgang Zenker wrote: > Sorry for the messup in the subject. >=20 > * Wolfgang Zenker [180305 22:16]: > > Hi, > >=20 > > I'm trying to run installworld using 11-STABLE on an Ubiquity Edge > > Router Lite (mips64, 2 cores, 512 MB Ram). Unfortunately I haven't > > managed to finish the installworld yet, I always get a > > panic: kernel stack overflow - trapframe at 0xffffffff80917eb0 > > in slightly different places during the installworld. Of the 4 > > panics I have seen on the serial console, 3 had the trapframe at > > 0xffffffff80917eb0 and one at 0xffffffff80915eb0 > > /usr/src and /usr/obj are nfs-mounted, and I have configured almost > > 2 GB of swap. The build was done in a Qemu environment. > >=20 > > Any hints how to proceed from here? > >=20 > > Wolfgang NFS is is known kernel stack hog. Try increasing KSTACK_PAGES up from whatever defaults in your kernel config file. IIRC, mips defaults to 2 pages, which is not enough for your workload. --=20 Alexander Kabaev --Sig_/mEOkSBkMIsls7M+/LaOZqz9 Content-Type: application/pgp-signature Content-Description: Цифровая подпись OpenPGP -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEExffZlZm2QeE8UVaRBxMimZJ5Ln4FAlqd70JfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEM1 RjdEOTk1OTlCNjQxRTEzQzUxNTY5MTA3MTMyMjk5OTI3OTJFN0UACgkQBxMimZJ5 Ln7JcBAAhVVCGYKHwVaHSIHUVi9sQbngYMQezjwX+6SxMQ3242XjEs79aeMRBqJV TiJydHSFLhEP46ufq1UWFKZ+/JiFIe1+sDVPRBdxcHudknulWzFGh/h+YPfFkUqO 8Cc9lZKuxV+ElrfeKmzsSYAivzKcfSWzEGEVx5jQq8JF/KKCF24aSx/YNdyT6QUW B1dCH4INM3mzVh6x1UqPhPKfweHhn+3iHbHjQGVkSs6/FzyluMRRq0uEE+KNjYQt J+0XUozFyLcRNFrEdpyivJKQXZrOwRoMEaEcayQaLSC8gFHEEYYmpVuDW6auOD47 YDTALrVMrPj8YaD/nJpdTH7mXnRRbaflYdAQwiuQl1fshf5gJSHcG5zJ5LWEJKaP V1TbTNIEy4IPfHxRNq1UgcsAOhVBaN0eGKWUXnpou8/+0JueMVEccrmuH0S16S+x DwyTmTYMVR/M2BmbsqSIGqmwr12hZtSpKXmeeyPgW8zOUReuDF6Gg6NesyffPfof Rd2x6n7qJBqb3mDz8/kO+ASAPLMVkKL33yMJlbF+EaMu++jcM4fODrSr6osaYL9C sQhn0VcHHnw0XkMtciuzjgPh7wpqfpeBUotxwynxkF+PxnyS6s7VtU46fQD3R1W+ ry2nauJyunBNZvowk9Y6czP/Xmy4yl8VcSdTIZCea9y0Ke6JUAE= =7BKN -----END PGP SIGNATURE----- --Sig_/mEOkSBkMIsls7M+/LaOZqz9-- From owner-freebsd-mips@freebsd.org Tue Mar 6 01:37:42 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 48386F3E699 for ; Tue, 6 Mar 2018 01:37:42 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id B871278DBC for ; Tue, 6 Mar 2018 01:37:41 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w261bY3F027672 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 6 Mar 2018 02:37:35 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: wolfgang@lyxys.ka.sub.org Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w261bVF0025943 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 6 Mar 2018 08:37:31 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: ELF - panic on installworld To: Wolfgang Zenker , freebsd-mips@freebsd.org References: <20180305211635.GA21623@lyxys.ka.sub.org> <5A9DEE9E.6050906@grosbein.net> From: Eugene Grosbein Message-ID: <5A9DF0D6.7090306@grosbein.net> Date: Tue, 6 Mar 2018 08:37:26 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <5A9DEE9E.6050906@grosbein.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 01:37:42 -0000 06.03.2018 8:27, Eugene Grosbein wrote: > 06.03.2018 4:16, Wolfgang Zenker wrote: >> I'm trying to run installworld using 11-STABLE on an Ubiquity Edge >> Router Lite (mips64, 2 cores, 512 MB Ram). Unfortunately I haven't >> managed to finish the installworld yet, I always get a >> panic: kernel stack overflow - trapframe at 0xffffffff80917eb0 >> in slightly different places during the installworld. Of the 4 panics I >> have seen on the serial console, 3 had the trapframe at 0xffffffff80917eb0 >> and one at 0xffffffff80915eb0 >> /usr/src and /usr/obj are nfs-mounted, and I have configured almost 2 GB >> of swap. The build was done in a Qemu environment. >> >> Any hints how to proceed from here? > > Try increasing kernel stack size from default 2 pages to 4 by rebuilding > the kernel with options KSTACK_PAGES=4 Note also, that depending on your network configuration, KSTACK_PAGES=4 may or may not be enough. If it does not help, you need to double it once more. From owner-freebsd-mips@freebsd.org Tue Mar 6 02:15:31 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C0B04F425F1 for ; Tue, 6 Mar 2018 02:15:30 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from mail-qt0-x233.google.com (mail-qt0-x233.google.com [IPv6:2607:f8b0:400d:c0d::233]) (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 51CF57AC97 for ; Tue, 6 Mar 2018 02:15:30 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: by mail-qt0-x233.google.com with SMTP id l25so22889542qtj.1 for ; Mon, 05 Mar 2018 18:15:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=GHhw2PIaGl23ofI7L8Aoz+CPPqTJv/LwUrCplb/pfYU=; b=qeA0bhUKXhdc3i5olu4xjVraZd7GdkThisYWqj3hGLSicVxoesIdecQdSAKbg4wLqs pS2VM7kt67+Xse5vi/NrzwK3G3TFB4K7lBzDih0PJT57s5k0pvP6Qu/46GwLjGC+6zPY TrYrnxovgL6+/0zsoABetlBbhjmGU7wwPU1Xd4MiqbBUgU7f+LXYI/w/8/OugLwj2ljo v8XMrF3PD8CFmj2QVzmSVGsokOJ062zrdVI3+w6DF1JvLdyqM/beSd2wpYMF7auGkaZT Nfr/GttKbvoe6iwzxRGvfP6uRuvTUwXqIqwmN41l33yTGPnZ5Amhxyl6cMcnUjzLNlsW wA2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=GHhw2PIaGl23ofI7L8Aoz+CPPqTJv/LwUrCplb/pfYU=; b=hlIw+t1MdhB3D1Ob4bUlOUE6pGXYMHiGoW368Anv1dnW4UoawmprUzJvwnG4ZPaBhC kaRO4fuu/J/sSUWDBhYkKLu3Egw3LGg6/OowsTpeDzwR8yT31Ctx1+/KZrX6ffN5cuqb GjzU7ydWeFn04Zg82Vb30EgaplvQpO01EgvtWjR7lz/CWrfF1Xd4dbTrBuFT01GrsE28 GAFLBqGoQ8WjGCJMhW3CXdRrIq6zi3Cx6JM9uZuhb4lwH24w30JPetEeG+ZaSh97xh0U kmHmLkv86OMI/ZYasse28n8bcyxiVLCzd2h6OznznCguWWKaRqAjOWou+QmdZy+1PS4D GRvA== X-Gm-Message-State: AElRT7F0uxsB+q0DTAYQZnhhfGXWk4oU8FNx1aA9ppCTJcf7Vp+TRc4q YCS03AG31Az0+/xqmpuNeiycYkcB X-Google-Smtp-Source: AG47ELs48CDQp6PbRncrbbdOBPfottmdEi0ih7rPKovvR5Jx+uRXyqZhGjUbfD8ifbzjCbQ1SLbMIQ== X-Received: by 10.200.0.146 with SMTP id c18mr26903368qtg.25.1520302529967; Mon, 05 Mar 2018 18:15:29 -0800 (PST) Received: from kan ([2601:18f:802:4680:226:18ff:fe00:232e]) by smtp.gmail.com with ESMTPSA id b29sm8968198qkb.28.2018.03.05.18.15.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Mar 2018 18:15:29 -0800 (PST) Date: Mon, 5 Mar 2018 21:15:27 -0500 From: Alexander Kabaev To: Wolfgang Zenker Cc: freebsd-mips@freebsd.org Subject: Re: ERL (was: ELF - panic on installworld) Message-ID: <20180305211527.04ad1c16@kan> In-Reply-To: <20180305203042.22a76c0b@kan> References: <20180305211635.GA21623@lyxys.ka.sub.org> <20180305214528.GB21623@lyxys.ka.sub.org> <20180305203042.22a76c0b@kan> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/97ZzmMHe.ro8qyVlv_xqjZm"; protocol="application/pgp-signature" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 02:15:31 -0000 --Sig_/97ZzmMHe.ro8qyVlv_xqjZm Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 5 Mar 2018 20:30:42 -0500 Alexander Kabaev wrote: > On Mon, 5 Mar 2018 22:45:28 +0100 > Wolfgang Zenker wrote: >=20 > > Sorry for the messup in the subject. > >=20 > > * Wolfgang Zenker [180305 22:16]: =20 > > > Hi, > > >=20 > > > I'm trying to run installworld using 11-STABLE on an Ubiquity Edge > > > Router Lite (mips64, 2 cores, 512 MB Ram). Unfortunately I haven't > > > managed to finish the installworld yet, I always get a > > > panic: kernel stack overflow - trapframe at 0xffffffff80917eb0 > > > in slightly different places during the installworld. Of the 4 > > > panics I have seen on the serial console, 3 had the trapframe at > > > 0xffffffff80917eb0 and one at 0xffffffff80915eb0 > > > /usr/src and /usr/obj are nfs-mounted, and I have configured > > > almost 2 GB of swap. The build was done in a Qemu environment. > > >=20 > > > Any hints how to proceed from here? > > >=20 > > > Wolfgang =20 >=20 > NFS is is known kernel stack hog. Try increasing KSTACK_PAGES up from > whatever defaults in your kernel config file. IIRC, mips defaults to 2 > pages, which is not enough for your workload. >=20 > --=20 > Alexander Kabaev I got reminded privately that variable stack sizes do not work on MIPS without extra patches: http://people.freebsd.org/~sson/mips/kstack/kstack_large_page.diff Not sure if it can still be applied to -current. --=20 Alexander Kabaev --Sig_/97ZzmMHe.ro8qyVlv_xqjZm Content-Type: application/pgp-signature Content-Description: Цифровая подпись OpenPGP -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEExffZlZm2QeE8UVaRBxMimZJ5Ln4FAlqd+b9fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEM1 RjdEOTk1OTlCNjQxRTEzQzUxNTY5MTA3MTMyMjk5OTI3OTJFN0UACgkQBxMimZJ5 Ln7omg//UVehhEna15Nre1y7hMM/Sof9scZIkmKC5xqaZBVZ+ElhOJ1L6aHAxWQ4 C+sJVndo4YzOBWMzhDg4bzh1VCL5yKY0DtnCY6NnXLILuXePe6X75m2OWFmwK5zo 9hy51XWQ9a+OHfyz4nHgYDrYyhQEHohSLk0gRlhWBfG4IgvaTkdtaEugVN1yaoo+ 3/NGHB2AV3iVX1p+1A0aM1+HqR/Wo7ByOJJMB7btl5/dJUj7zVx+GIAWCuAT3vl0 VuUzWGq+IzWwoZlVAl96A/OTDlmdQ+ExpOqHvEh/vVERqh+bqLQbGSM2GhJ3ngfR NFidR6CUgzjWaKfZvXWz2SyW1esaZyEG/Ya6tcIerwE/toF00eXLdhQP7zIR1I+O mhfvmZZ610Sg2q9tOf3SxCZEdqhaQoRq0+qC1Rc1pML22qK2n7z+OiJo44ukqjuj b48XwJbxkP3aUNC7VShwxobAOPTKf/KJyYo3HWLvZWCJqZpCEEc2CmvtoZ40sx4A 0/PSQxDvusFpcF8HTCoiTCTN2z/NEEGBlwY39YBYrjVWKhZeOaflBlPWwBh+5O7n dhmNPLkBxnMqx/LD6Q6XuwmD8lN1cpe4z/StMQrawq8JEaI/hBtFzlgxtgvjZqRN R8dlfCKKurd32AV94EBBQqFOWB7AOMO2do5SxFbvCgXiIjVLjQk= =QZKN -----END PGP SIGNATURE----- --Sig_/97ZzmMHe.ro8qyVlv_xqjZm-- From owner-freebsd-mips@freebsd.org Tue Mar 6 10:41:02 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EF492F48CE2 for ; Tue, 6 Mar 2018 10:41:01 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 552F76FAF8 for ; Tue, 6 Mar 2018 10:41:00 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id w26AeiBS030990 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL) for ; Tue, 6 Mar 2018 11:40:45 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id w26AehUe034396 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 6 Mar 2018 11:40:43 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id w26AehKk034395 for freebsd-mips@freebsd.org; Tue, 6 Mar 2018 11:40:43 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Tue, 6 Mar 2018 11:40:43 +0100 From: Wolfgang Zenker To: freebsd-mips@freebsd.org Subject: Re: ERL (was: ELF - panic on installworld) Message-ID: <20180306104043.GA34241@lyxys.ka.sub.org> References: <20180305211635.GA21623@lyxys.ka.sub.org> <20180305214528.GB21623@lyxys.ka.sub.org> <20180305203042.22a76c0b@kan> <20180305211527.04ad1c16@kan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180305211527.04ad1c16@kan> Organization: private site User-Agent: Mutt/1.9.4 (2018-02-28) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Tue, 06 Mar 2018 11:40:45 +0100 (CET) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 10:41:02 -0000 * Alexander Kabaev [180306 03:15]: > On Mon, 5 Mar 2018 20:30:42 -0500 > Alexander Kabaev wrote: >> On Mon, 5 Mar 2018 22:45:28 +0100 >> Wolfgang Zenker wrote: >>> Sorry for the messup in the subject. >>> * Wolfgang Zenker [180305 22:16]: >>>> I'm trying to run installworld using 11-STABLE on an Ubiquity Edge >>>> Router Lite (mips64, 2 cores, 512 MB Ram). Unfortunately I haven't >>>> managed to finish the installworld yet, I always get a >>>> panic: kernel stack overflow - trapframe at 0xffffffff80917eb0 >>>> in slightly different places during the installworld. Of the 4 >>>> panics I have seen on the serial console, 3 had the trapframe at >>>> 0xffffffff80917eb0 and one at 0xffffffff80915eb0 >>>> /usr/src and /usr/obj are nfs-mounted, and I have configured >>>> almost 2 GB of swap. The build was done in a Qemu environment. >>>> Any hints how to proceed from here? >> NFS is is known kernel stack hog. Try increasing KSTACK_PAGES up from >> whatever defaults in your kernel config file. IIRC, mips defaults to 2 >> pages, which is not enough for your workload. > I got reminded privately that variable stack sizes do not work on MIPS > without extra patches: True; due to KSTACK_PAGES being set to 2 unconditionally in sys/mips/include/param.h, buildkernel fails when KSTACK_PAGES is added to the conf file. Adding an "#ifndef KSTACK_PAGES" to param.h allows buildkernel to work, but the resulting kernel panics at boot. > http://people.freebsd.org/~sson/mips/kstack/kstack_large_page.diff That looks like quite a bit more than just a simple increase of the kernel stack space. I think I will go with updating by building media images (and less frequent upgrades) instead. > Not sure if it can still be applied to -current. I will at least try it once on 11-STABLE, just to find out. Will take a while, currently down with flu and not really that good with concentrating on that task. Wolfgang From owner-freebsd-mips@freebsd.org Tue Mar 6 18:35:13 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E2E9FF496D0 for ; Tue, 6 Mar 2018 18:35:12 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [96.47.65.170]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 92E9C8414C for ; Tue, 6 Mar 2018 18:35:12 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 8EC2610A8C2; Tue, 6 Mar 2018 13:35:11 -0500 (EST) From: John Baldwin To: freebsd-mips@freebsd.org Subject: Re: ELF - panic on installworld Date: Tue, 06 Mar 2018 10:29:26 -0800 Message-ID: <1949943.3JoNfSzP6x@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <5A9DF0D6.7090306@grosbein.net> References: <20180305211635.GA21623@lyxys.ka.sub.org> <5A9DEE9E.6050906@grosbein.net> <5A9DF0D6.7090306@grosbein.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Tue, 06 Mar 2018 13:35:11 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 18:35:13 -0000 On Tuesday, March 06, 2018 08:37:26 AM Eugene Grosbein wrote: > 06.03.2018 8:27, Eugene Grosbein wrote: > > > 06.03.2018 4:16, Wolfgang Zenker wrote: > > >> I'm trying to run installworld using 11-STABLE on an Ubiquity Edge > >> Router Lite (mips64, 2 cores, 512 MB Ram). Unfortunately I haven't > >> managed to finish the installworld yet, I always get a > >> panic: kernel stack overflow - trapframe at 0xffffffff80917eb0 > >> in slightly different places during the installworld. Of the 4 panics I > >> have seen on the serial console, 3 had the trapframe at 0xffffffff80917eb0 > >> and one at 0xffffffff80915eb0 > >> /usr/src and /usr/obj are nfs-mounted, and I have configured almost 2 GB > >> of swap. The build was done in a Qemu environment. > >> > >> Any hints how to proceed from here? > > > > Try increasing kernel stack size from default 2 pages to 4 by rebuilding > > the kernel with options KSTACK_PAGES=4 > > Note also, that depending on your network configuration, KSTACK_PAGES=4 > may or may not be enough. If it does not help, you need to double it once more. KSTACK_PAGES doesn't work on MIPS because the MIPS kstack has to be hardwired into the TLB and the code that does that assumes a hardcoded stack size. -- John Baldwin From owner-freebsd-mips@freebsd.org Tue Mar 6 20:15:08 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 58972F2B0C8 for ; Tue, 6 Mar 2018 20:15:08 +0000 (UTC) (envelope-from juli@northcloak.com) Received: from mail-qt0-x22e.google.com (mail-qt0-x22e.google.com [IPv6:2607:f8b0:400d:c0d::22e]) (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 001136856B for ; Tue, 6 Mar 2018 20:15:07 +0000 (UTC) (envelope-from juli@northcloak.com) Received: by mail-qt0-x22e.google.com with SMTP id c7so26100273qtn.3 for ; Tue, 06 Mar 2018 12:15:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=northcloak-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5xLhy7G5E8Ly6BTOx6DG1R14A0mvhodkDZsFxEc+lJE=; b=Mq/2py2crzOwjics2DEsHSQ9tKrJjZh5qShHI0BZUBb7VK52a+4mlSFSSXXTwdj5fr 2jz0oELF3DyiwPECkp0nuHZdnJyXQwWz2X2/Mr0EDhpLMT+TRYTIQ+H2nUDED+1CuoHG iLDVY0wdGRo7cPLsD9ll4w1wdKL7O+yjhfhFWeEJ0GA1cHKnVMTpBd0ZnUwehYpoYzjx /6rz+h7mCGoS4GoNuEJ0O+OpKx8chpq9v+3sayOedLRqCjUe3jsx0r04PSopUc1FpGb0 y4YhEBqU2cN1LqJfMvXBmuhiYudNrtrbj4y/CknflpmEeDyrlzpqX43Sx5ACWcZUKsnv meSQ== 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=5xLhy7G5E8Ly6BTOx6DG1R14A0mvhodkDZsFxEc+lJE=; b=qxhb0rK33g7MjCF/ktXbaYOCCuiWISbgGs5kKnXqa6+H9xPKzdm5/LegSjnlEBw4EQ 8u4vwhHYYGvtN0HgLSfOABxV1W9t7hcgQMQDgJOavpk6bUg2BWU4jahSzERGHTE4kbOF wdtr2+lQmLavVSRdELDyYSNmiO2N6OuPmWnH2MI70HnkUl9csM2fbwCYpOe3QlzQMWwT ECBuOj9CGeRZ8zWVwDigqe08S4ZOSvPO0ihgJAphJDMeitZ5AAmA1nbUfpXTN3DCOyFa h60iKKO8hnSfbvjWXMChS0mTo1IUI6WRX8HSPNegR1xlAVf1wk6LMkfsw9ZwnI+47srN Sj9A== X-Gm-Message-State: AElRT7G5dfEC5XyO3UKEJoMHof6HP6kURLL3iBm072sCPt9NSxNYWren fsR2X5vnX9rLz1Oiq4yxgZe3J5GWqy2kpMByoB77bg== X-Google-Smtp-Source: AG47ELsiPhTr07lLA+AruZ0Xgs/cOTClxPv4Z9H+5QEO84cKC6Hc2mf9VmZh0h4iZIMwQbs6BZQglvnYd60hgPSIgKA= X-Received: by 10.200.51.168 with SMTP id c37mr30555545qtb.90.1520367307469; Tue, 06 Mar 2018 12:15:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.4.42 with HTTP; Tue, 6 Mar 2018 12:14:27 -0800 (PST) In-Reply-To: <1949943.3JoNfSzP6x@ralph.baldwin.cx> References: <20180305211635.GA21623@lyxys.ka.sub.org> <5A9DEE9E.6050906@grosbein.net> <5A9DF0D6.7090306@grosbein.net> <1949943.3JoNfSzP6x@ralph.baldwin.cx> From: Juli Mallett Date: Tue, 6 Mar 2018 12:14:27 -0800 Message-ID: Subject: Re: ELF - panic on installworld To: John Baldwin Cc: freebsd-mips@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 20:15:08 -0000 On 6 March 2018 at 10:29, John Baldwin wrote: > On Tuesday, March 06, 2018 08:37:26 AM Eugene Grosbein wrote: > > 06.03.2018 8:27, Eugene Grosbein wrote: > > > > > 06.03.2018 4:16, Wolfgang Zenker wrote: > > > > >> I'm trying to run installworld using 11-STABLE on an Ubiquity Edge > > >> Router Lite (mips64, 2 cores, 512 MB Ram). Unfortunately I haven't > > >> managed to finish the installworld yet, I always get a > > >> panic: kernel stack overflow - trapframe at 0xffffffff80917eb0 > > >> in slightly different places during the installworld. Of the 4 panics > I > > >> have seen on the serial console, 3 had the trapframe at > 0xffffffff80917eb0 > > >> and one at 0xffffffff80915eb0 > > >> /usr/src and /usr/obj are nfs-mounted, and I have configured almost 2 > GB > > >> of swap. The build was done in a Qemu environment. > > >> > > >> Any hints how to proceed from here? > > > > > > Try increasing kernel stack size from default 2 pages to 4 by > rebuilding > > > the kernel with options KSTACK_PAGES=4 > > > > Note also, that depending on your network configuration, KSTACK_PAGES=4 > > may or may not be enough. If it does not help, you need to double it > once more. > > KSTACK_PAGES doesn't work on MIPS because the MIPS kstack has to be > hardwired > into the TLB and the code that does that assumes a hardcoded stack size. > That said, we could easily use a more flexible wired TLB entry scheme, including smartly using pagemask in the cases where the number of pages is suitable. If we wanted to allow wiring of mappings into the TLB flexibly at runtime we could do that, or we could just at compile-time have different code to handle different KSTACK_PAGES values. People have strong feelings about some of those options, but if there's a workload-oriented pressure to move in a different direction, it should be very easy to do. Juli. From owner-freebsd-mips@freebsd.org Tue Mar 6 21:49:09 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DF29CF32725 for ; Tue, 6 Mar 2018 21:49:09 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [78.47.246.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A9D86D542; Tue, 6 Mar 2018 21:49:08 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w26Ln0uf035815 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 6 Mar 2018 22:49:01 +0100 (CET) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: juli@northcloak.com Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w26LmqQl034813 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 7 Mar 2018 04:48:52 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: ELF - panic on installworld To: Juli Mallett , John Baldwin References: <20180305211635.GA21623@lyxys.ka.sub.org> <5A9DEE9E.6050906@grosbein.net> <5A9DF0D6.7090306@grosbein.net> <1949943.3JoNfSzP6x@ralph.baldwin.cx> Cc: freebsd-mips@freebsd.org From: Eugene Grosbein Message-ID: <5A9F0CBE.9070909@grosbein.net> Date: Wed, 7 Mar 2018 04:48:46 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 21:49:10 -0000 07.03.2018 3:14, Juli Mallett wrote: > That said, we could easily use a more flexible wired TLB entry scheme, > including smartly using pagemask in the cases where the number of pages is > suitable. If we wanted to allow wiring of mappings into the TLB flexibly > at runtime we could do that, or we could just at compile-time have > different code to handle different KSTACK_PAGES values. People have strong > feelings about some of those options, but if there's a workload-oriented > pressure to move in a different direction, it should be very easy to do. I cannot understand what "feelings" may exist about kernel stack shortage leading to panics. From owner-freebsd-mips@freebsd.org Tue Mar 6 23:19:35 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A987EF38D9F for ; Tue, 6 Mar 2018 23:19:35 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2695770E67; Tue, 6 Mar 2018 23:19:34 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id w26NJAHZ033427 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Wed, 7 Mar 2018 00:19:12 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id w26NJAFJ079301 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 7 Mar 2018 00:19:10 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id w26NJAdW079300; Wed, 7 Mar 2018 00:19:10 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Wed, 7 Mar 2018 00:19:10 +0100 From: Wolfgang Zenker To: Juli Mallett Cc: John Baldwin , freebsd-mips@freebsd.org Subject: Re: ELF - panic on installworld Message-ID: <20180306231910.GA79006@lyxys.ka.sub.org> References: <20180305211635.GA21623@lyxys.ka.sub.org> <5A9DEE9E.6050906@grosbein.net> <5A9DF0D6.7090306@grosbein.net> <1949943.3JoNfSzP6x@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: private site User-Agent: Mutt/1.9.4 (2018-02-28) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Wed, 07 Mar 2018 00:19:13 +0100 (CET) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 23:19:35 -0000 * Juli Mallett [180306 21:14]: > On 6 March 2018 at 10:29, John Baldwin wrote: >> On Tuesday, March 06, 2018 08:37:26 AM Eugene Grosbein wrote: >>> 06.03.2018 8:27, Eugene Grosbein wrote: >>>> 06.03.2018 4:16, Wolfgang Zenker wrote: >>>>> I'm trying to run installworld using 11-STABLE on an Ubiquity Edge >>>>> Router Lite (mips64, 2 cores, 512 MB Ram). Unfortunately I haven't >>>>> managed to finish the installworld yet, I always get a >>>>> panic: kernel stack overflow - trapframe at 0xffffffff80917eb0 >>>>> in slightly different places during the installworld. Of the 4 panics >>>>> I have seen on the serial console, 3 had the trapframe at >>>>> 0xffffffff80917eb0 and one at 0xffffffff80915eb0 >>>>> /usr/src and /usr/obj are nfs-mounted, and I have configured almost 2 GB >>>>> of swap. The build was done in a Qemu environment. >>>>> Any hints how to proceed from here? >>>> Try increasing kernel stack size from default 2 pages to 4 by rebuilding >>>> the kernel with options KSTACK_PAGES=4 >>> Note also, that depending on your network configuration, KSTACK_PAGES=4 >>> may or may not be enough. If it does not help, you need to double it >>> once more. >> KSTACK_PAGES doesn't work on MIPS because the MIPS kstack has to be >> hardwired >> into the TLB and the code that does that assumes a hardcoded stack size. > That said, we could easily use a more flexible wired TLB entry scheme, > including smartly using pagemask in the cases where the number of pages is > suitable. If we wanted to allow wiring of mappings into the TLB flexibly > at runtime we could do that, or we could just at compile-time have > different code to handle different KSTACK_PAGES values. People have strong > feelings about some of those options, but if there's a workload-oriented > pressure to move in a different direction, it should be very easy to do. I would welcome a more flexible solution, of course. However, I guess my situation is a bit unusual: the ERL is an unusually powerful machine for a mips based network device, and therefore I want to experiment with it trying different options without dismantling the device for every update to switch in a new usb stick. I think most users just set it up once and only update in case of security problems. Anyhow, if a more flexible solution could be done without to much effort, please do it. If I can help by testing, please let me know. From owner-freebsd-mips@freebsd.org Tue Mar 6 23:22:57 2018 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8BF20F392AC for ; Tue, 6 Mar 2018 23:22:57 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from saturn.lyxys.ka.sub.org (saturn.lyxys.ka.sub.org [217.29.35.151]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 01EB8711A4; Tue, 6 Mar 2018 23:22:56 +0000 (UTC) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (juno.lyx [IPv6:fd2a:89ca:7d54:0:240:caff:fe92:4f47]) by saturn.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id w26NMe0L033548 (version=TLSv1 cipher=DHE-RSA-AES128-SHA bits=128 verify=FAIL); Wed, 7 Mar 2018 00:22:42 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: from juno.lyxys.ka.sub.org (localhost [127.0.0.1]) by juno.lyxys.ka.sub.org (8.15.2/8.15.2) with ESMTPS id w26NMec0079326 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 7 Mar 2018 00:22:40 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) Received: (from wolfgang@localhost) by juno.lyxys.ka.sub.org (8.15.2/8.15.2/Submit) id w26NMdU5079325; Wed, 7 Mar 2018 00:22:39 +0100 (CET) (envelope-from wolfgang@lyxys.ka.sub.org) X-Authentication-Warning: juno.lyx: wolfgang set sender to wolfgang@lyxys.ka.sub.org using -f Date: Wed, 7 Mar 2018 00:22:39 +0100 From: Wolfgang Zenker To: Eugene Grosbein Cc: Juli Mallett , John Baldwin , freebsd-mips@freebsd.org Subject: Re: ELF - panic on installworld Message-ID: <20180306232239.GB79006@lyxys.ka.sub.org> References: <20180305211635.GA21623@lyxys.ka.sub.org> <5A9DEE9E.6050906@grosbein.net> <5A9DF0D6.7090306@grosbein.net> <1949943.3JoNfSzP6x@ralph.baldwin.cx> <5A9F0CBE.9070909@grosbein.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5A9F0CBE.9070909@grosbein.net> Organization: private site User-Agent: Mutt/1.9.4 (2018-02-28) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (saturn.lyxys.ka.sub.org [IPv6:fd2a:89ca:7d54:1:200:24ff:feca:b4cc]); Wed, 07 Mar 2018 00:22:42 +0100 (CET) X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2018 23:22:57 -0000 * Eugene Grosbein [180306 22:48]: > 07.03.2018 3:14, Juli Mallett wrote: >> That said, we could easily use a more flexible wired TLB entry scheme, >> including smartly using pagemask in the cases where the number of pages is >> suitable. If we wanted to allow wiring of mappings into the TLB flexibly >> at runtime we could do that, or we could just at compile-time have >> different code to handle different KSTACK_PAGES values. People have strong >> feelings about some of those options, but if there's a workload-oriented >> pressure to move in a different direction, it should be very easy to do. > I cannot understand what "feelings" may exist about kernel stack shortage leading to panics. People being people, they have feelings about everything, no matter if that is logical or not. So it is better to be prepared for it.