From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 6 06:13:39 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FF0110656EC; Mon, 6 Sep 2010 06:13:39 +0000 (UTC) (envelope-from alan.l.cox@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id EEE098FC15; Mon, 6 Sep 2010 06:13:38 +0000 (UTC) Received: by gxk24 with SMTP id 24so1768534gxk.13 for ; Sun, 05 Sep 2010 23:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=6LbV4A5uVEuvtJQItBtYRLF1orAYjbPLFRzmnvxA4vQ=; b=JCiAt/l2wHMvE8T6p1c8Ea6mpOiNUVHZfOqEiiiV+5C5TLFVusu9O0tQgbshwdUpID gp2cmt5EzwfB1J7xoq/6rFAkq1U4RbVk8YMZnqpWEYdsiIrQOAhhN4EeXoMD14ajNLve cJQzasYRiwfrgo8HDH9Ad8yO24Fihg0Nj5l/o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=bXceiDjmGuXzvlFu1G/pnqps9y3y5tTIvd55JJJKCLWj5d4JtYHsx1qZAFyTdMOqjH qU9EX/uBzQhXp3cIUIu+v48wIFpYmrQesLLb7QtR2p82E4r1kY/sG0Zc/zOt6m+4jDDu G1sGoiEZyDTInjwGAd/PDqLNO/CHiiDw4qNY8= Received: by 10.151.41.4 with SMTP id t4mr792818ybj.116.1283752204286; Sun, 05 Sep 2010 22:50:04 -0700 (PDT) Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) by mx.google.com with ESMTPS id x3sm3186028ybl.22.2010.09.05.22.50.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 05 Sep 2010 22:50:02 -0700 (PDT) Message-ID: <4C8480EF.7050700@gmail.com> Date: Mon, 06 Sep 2010 00:49:35 -0500 From: Alan Cox User-Agent: Thunderbird 2.0.0.24 (X11/20100725) MIME-Version: 1.0 To: mdf@FreeBSD.org References: <4C844609.9050505@freebsd.org> <4C846DD2.4000507@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Nathan Whitehorn Subject: Re: UMA allocations from a specific physical range X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: alc@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2010 06:13:39 -0000 mdf@FreeBSD.org wrote: [snip] > IIRC the memory from vm_phys_alloc_contig() can be released like any > other page; the interface should just be fetching a specific page. > How far off is the page wire count? I'm assuming it's hitting the > assert that it's > 1? > > I think vm_page_free() is the right interface to free the page again, > so the wire count being off presumably means someone else wired it on > you; do you know what code did it? If no one else has a reference to > the page anymore then setting the wire count to 1, while a hack, > should be safe. > > Yes, vm_page_free() can be used to free a single page that was returned by vm_phys_alloc_contig(). Alan