From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 3 19:19:17 2009 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 E27B7106566C for ; Fri, 3 Jul 2009 19:19:17 +0000 (UTC) (envelope-from alc@cs.rice.edu) Received: from mail.cs.rice.edu (mail.cs.rice.edu [128.42.1.31]) by mx1.freebsd.org (Postfix) with ESMTP id AB71A8FC1B for ; Fri, 3 Jul 2009 19:19:17 +0000 (UTC) (envelope-from alc@cs.rice.edu) Received: from mail.cs.rice.edu (localhost.localdomain [127.0.0.1]) by mail.cs.rice.edu (Postfix) with ESMTP id 3472E2C2AAC; Fri, 3 Jul 2009 14:19:17 -0500 (CDT) X-Virus-Scanned: by amavis-2.4.0 at mail.cs.rice.edu Received: from mail.cs.rice.edu ([127.0.0.1]) by mail.cs.rice.edu (mail.cs.rice.edu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uzNYn0tIXhDc; Fri, 3 Jul 2009 14:19:09 -0500 (CDT) Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.rice.edu (Postfix) with ESMTP id 62CF62C2A81; Fri, 3 Jul 2009 14:19:09 -0500 (CDT) Message-ID: <4A4E59AD.7090007@cs.rice.edu> Date: Fri, 03 Jul 2009 14:19:09 -0500 From: Alan Cox User-Agent: Thunderbird 2.0.0.22 (X11/20090626) MIME-Version: 1.0 To: Robert Watson References: <200906291317.12040.mel.flynn+fbsd.hackers@mailing.thruhere.net> <4A49CBA0.1050806@cs.rice.edu> <200906301431.38664.mel.flynn+fbsd.hackers@mailing.thruhere.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Mel Flynn , Wojciech Puchar Subject: Re: large pages (amd64) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jul 2009 19:19:18 -0000 Robert Watson wrote: > > On Tue, 30 Jun 2009, Mel Flynn wrote: > >>>> It looks like sys/kern/kern_proc.c could call mincore around the >>>> loop at line 1601 (rev 194498), but I know nothing about the vm >>>> subsystem to know the implications or locking involved. There's >>>> still 16 bytes of spare to consume, in the kve_vminfo struct though ;) >>> >>> Yes, to start with, you could replace the call to pmap_extract() >>> with a call to pmap_mincore() and export a Boolean to user space >>> that says, "This region of the address space contains one or more >>> superpage mappings." >> >> How about attached? > > I like the idea -- there are some style nits that need fixing though. > Assuming Alan is happy with the VM side of things, I can do the > cleanup and get it in the tree. Aside from the style nits, it looks good to me. Alan