From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 2 18:18:50 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 43E0B10656BD for ; Thu, 2 Jul 2009 18:18:50 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 1C0E28FC15 for ; Thu, 2 Jul 2009 18:18:50 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id C2CE746B90; Thu, 2 Jul 2009 14:18:49 -0400 (EDT) Date: Thu, 2 Jul 2009 19:18:49 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Mel Flynn In-Reply-To: <200906301431.38664.mel.flynn+fbsd.hackers@mailing.thruhere.net> Message-ID: References: <200906291317.12040.mel.flynn+fbsd.hackers@mailing.thruhere.net> <4A49CBA0.1050806@cs.rice.edu> <200906301431.38664.mel.flynn+fbsd.hackers@mailing.thruhere.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, Alan Cox , 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: Thu, 02 Jul 2009 18:18:50 -0000 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. Robert N M Watson Computer Laboratory University of Cambridge > > % sudo procstat -av|grep 'S ' > PID START END PRT RES PRES REF SHD FL TP PATH > 1754 0x28900000 0x2ae00000 rw- 9385 0 3 0 --S df > 2141 0x2f900000 0x30800000 rw- 3719 0 1 0 --S df > 2146 0x3eec0000 0x4fac0000 rwx 1745 0 1 0 --S df > > -- > Mel > >