NetBSD Problem Report #47434
From campbell@mumble.net Fri Jan 11 20:57:04 2013
Return-Path: <campbell@mumble.net>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id 9242863C07C
for <gnats-bugs@gnats.NetBSD.org>; Fri, 11 Jan 2013 20:57:04 +0000 (UTC)
Message-Id: <20130111205647.C77D2604E3@jupiter.mumble.net>
Date: Fri, 11 Jan 2013 20:56:47 +0000 (UTC)
From: Taylor R Campbell <campbell+netbsd@mumble.net>
Reply-To: Taylor R Campbell <campbell+netbsd@mumble.net>
To: gnats-bugs@gnats.NetBSD.org
Subject: loading dtrace fails with ENOMEM in a vanilla amd64 kernel
X-Send-Pr-Version: 3.95
>Number: 47434
>Category: kern
>Synopsis: loading dtrace fails with ENOMEM in a vanilla amd64 kernel
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 11 21:00:00 +0000 2013
>Closed-Date: Thu Sep 20 05:41:54 +0000 2018
>Last-Modified: Thu Sep 20 05:41:54 +0000 2018
>Originator: Taylor R Campbell <campbell+netbsd@mumble.net>
>Release: NetBSD 6.99.15
>Organization:
>Environment:
System: NetBSD ... 6.99.15 NetBSD 6.99.15 (RIAKERN) #0: Wed Nov 28 01:20:09 UTC 2012 root@...:/home/riastradh/netbsd/current/obj.amd64/sys/arch/amd64/compile/RIAKERN amd64
Architecture: amd64
Machine: amd64
>Description:
Loading the dtrace modules (solaris.kmod, dtrace.kmod,
fbt.kmod, sdt.kmod) into a vanilla amd64 kernel fails with
ENOMEM. To get them to load I had to bump NKL2_KIMG_ENTRIES in
sys/arch/amd64/include/pmap.h from 16 to 32.
>How-To-Repeat:
Try to load dtrace into a vanilla amd64 kernel.
>Fix:
Bump NKL2_KIMG_ENTRIES from 16 to 32 to work around it.
Solving the problem so that we don't have to reserve large
chunks of kva in advance for modules would be trickier and
require some nontrivial compiler and linker work to cross
branch distance barriers, but would be nice.
>Release-Note:
>Audit-Trail:
From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/47434: loading dtrace fails with ENOMEM in a vanilla amd64
kernel
Date: Sat, 3 Dec 2016 12:43:21 +0000
You've committed this change and dtrace works.
Should there be more done? does it work for xen, other non-amd64?
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Tue, 10 Apr 2018 09:07:29 +0000
State-Changed-Why:
a question was asked
State-Changed-From-To: feedback->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Thu, 20 Sep 2018 05:41:54 +0000
State-Changed-Why:
feedback received.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.