From owner-freebsd-ppc Wed Feb 27 18:19: 9 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from relay3.bu.edu (relay3.bu.edu [128.197.27.246]) by hub.freebsd.org (Postfix) with ESMTP id 3B35B37B402 for ; Wed, 27 Feb 2002 18:19:08 -0800 (PST) Received: from acsn05.bu.edu (acsn05.bu.edu [128.197.159.65]) by relay3.bu.edu ((8.9.3.buoit.v1.0)/8.8.5/(BU-RELAY-11/18/99-b2)) with ESMTP id VAA18255 for ; Wed, 27 Feb 2002 21:19:07 -0500 (EST) Received: from [192.168.0.2] (pool-141-157-163-96.bos.east.verizon.net [141.157.163.96]) by acsn05.bu.edu ((8.9.3.buoit.v1.1.RewriteVBS.ACS)/) with ESMTP id VAA48218 for ; Wed, 27 Feb 2002 21:17:57 -0500 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Date: Wed, 27 Feb 2002 21:17:57 -0500 Subject: sign me up From: kinkade To: Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG yes. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Wed Feb 27 21:24:18 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E384537B417; Wed, 27 Feb 2002 21:24:15 -0800 (PST) Received: (from luoqi@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1S5OFN00387; Wed, 27 Feb 2002 21:24:15 -0800 (PST) (envelope-from luoqi) Date: Wed, 27 Feb 2002 21:24:15 -0800 (PST) From: Message-Id: <200202280524.g1S5OFN00387@freefall.freebsd.org> To: benno@freebsd.org Subject: Re: cvs commit: src/sys/powerpc/powerpc pmap.c Cc: freebsd-ppc@freebsd.org Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > -----Original Message----- > From: Benno Rice [mailto:benno@FreeBSD.org] > Sent: Wednesday, February 27, 2002 6:45 PM > To: cvs-committers@FreeBSD.org; cvs-all@FreeBSD.org > Subject: cvs commit: src/sys/powerpc/powerpc pmap.c > > > benno 2002/02/27 18:45:10 PST > > Modified files: > sys/powerpc/powerpc pmap.c > Log: > Remove most of the usage of critical_enter/exit. > > I put these in to match the use of spl*() in the NetBSD > code I was basing this > on, but it appears to cause problems. > > I'm doing this in a separate commit so as to be able to > refer back if locking > becomes an issue at a later s. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Wed Feb 27 21:28:43 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1AAC237B41A; Wed, 27 Feb 2002 21:28:40 -0800 (PST) Received: (from luoqi@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1S5SeI00984; Wed, 27 Feb 2002 21:28:40 -0800 (PST) (envelope-from luoqi) Date: Wed, 27 Feb 2002 21:28:40 -0800 (PST) From: Message-Id: <200202280528.g1S5SeI00984@freefall.freebsd.org> To: benno@freebsd.org Subject: Re: cvs commit: src/sys/powerpc/powerpc pmap.c Cc: freebsd-ppc@freebsd.org Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > benno 2002/02/27 18:45:10 PST > > Modified files: > sys/powerpc/powerpc pmap.c > Log: > Remove most of the usage of critical_enter/exit. > > I put these in to match the use of spl*() in the NetBSD > code I was basing this > on, but it appears to cause problems. > > I'm doing this in a separate commit so as to be able to > refer back if locking > becomes an issue at a later stage. > > Revision Changes Path > 1.15 +0 -29 src/sys/powerpc/powerpc/pmap.c (unrelated to this particular commit) It was a fine idea to have a merged pv_entry and overflow structure, and use the pv table kind of as the complete page table, and the hash table its cache. I would guess this is probably where the speed-up comes from. But to traverse the linked pvo list in real mode (spill handler) means the link pointers have to be a physical address. In the new NetBSD code, this is done by allocating the pvo structures from below 256M, which is mapped by BAT entry PA==VA. In FreeBSD, the zone allocator won't do this job, first, you are not guaranteed to get page below 256M, second, kva returned from zalloc does not necessarily equal to pa (you don't really need the kva). You'll have to write you own allocator. The tricky part is how to allocate page below 256M. We could probably do something similar to contigmalloc(), but my impression is this call could be quite expensive. Especially so if we adopt a merged pvo struct, because pv_entry allocation is much more frequent than overflow. Maybe we could find a middle ground somewhere. For example, use a separate overflow structure allocated from low memory when there is a collision, but also keep a copy of pte data in pv_entry as well. -lq PS: sorry about a previous incomplete message, i was having some trouble with our email server. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Wed Feb 27 21:40:41 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from mail.jeamland.net (rafe.jeamland.net [203.18.243.114]) by hub.freebsd.org (Postfix) with ESMTP id 9EA8637B417; Wed, 27 Feb 2002 21:40:37 -0800 (PST) Received: from [192.168.9.176] (rtr1.snc.schools.net.au [203.2.135.22]) by mail.jeamland.net (Postfix) with ESMTP id 2ED187060A; Thu, 28 Feb 2002 16:40:31 +1100 (EST) Subject: Re: cvs commit: src/sys/powerpc/powerpc pmap.c From: Benno Rice To: luoqi@FreeBSD.org Cc: freebsd-ppc@freebsd.org In-Reply-To: <200202280528.g1S5SeI00984@freefall.freebsd.org> References: <200202280528.g1S5SeI00984@freefall.freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-dZocSH8UaZ+wWxl/Dv4k" X-Mailer: Evolution/1.0.2 Date: 28 Feb 2002 17:40:30 +1200 Message-Id: <1014874831.1310.3.camel@ratchet.jeamland.net> Mime-Version: 1.0 Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-dZocSH8UaZ+wWxl/Dv4k Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2002-02-28 at 17:28, luoqi@FreeBSD.org wrote: > It was a fine idea to have a merged pv_entry and overflow structure, > and use the pv table kind of as the complete page table, and the hash > table its cache. I would guess this is probably where the speed-up > comes from. I'd guess that's the case too. > But to traverse the linked pvo list in real mode (spill handler) > means the link pointers have to be a physical address. In the new > NetBSD code, this is done by allocating the pvo structures from > below 256M, which is mapped by BAT entry PA=3D=3DVA.=20 We also have this mapping. > In FreeBSD, the zone allocator won't do this job, first, you are > not guaranteed to get page below 256M, second, kva returned from > zalloc does not necessarily equal to pa (you don't really need the > kva). You'll have to write you own allocator. The tricky part is > how to allocate page below 256M. We could probably do something > similar to contigmalloc(), but my impression is this call could > be quite expensive. Especially so if we adopt a merged pvo struct, > because pv_entry allocation is much more frequent than overflow. Yeah, I was kind of avoiding thinking about this for the moment. =3D)=20 Hopefully Jeff's UMA stuff should help, as I believe that it allows you to specify allocation routines which will allow this to work. > Maybe we could find a middle ground somewhere. For example, use > a separate overflow structure allocated from low memory when there > is a collision, but also keep a copy of pte data in pv_entry as well. Hrm. I think I'd rather wait until Jeff's UMA goes in and reassess then. At the moment I'm running on a simulator configured to use 32MB of RAM so the BAT mapping will work. =20 > PS: sorry about a previous incomplete message, i was having some > trouble with our email server. That's cool. =3D) --=20 Benno Rice benno@FreeBSD.org --=-dZocSH8UaZ+wWxl/Dv4k Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEABECAAYFAjx9ws4ACgkQXjRwWofFmQmRmACfR44VgZapkfv3XMRDw3AX5G0k EM4Ani8/pVPIY25jQ50MvDtDrcOcXB/c =NHVT -----END PGP SIGNATURE----- --=-dZocSH8UaZ+wWxl/Dv4k-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Thu Feb 28 1:16:43 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from halcyon.scoundrelz.net (bdsl.66.13.112.2.gte.net [66.13.112.2]) by hub.freebsd.org (Postfix) with ESMTP id B6FF837B402 for ; Thu, 28 Feb 2002 01:16:40 -0800 (PST) Received: from localhost (hemi@localhost) by halcyon.scoundrelz.net (8.10.1/8.10.1) with ESMTP id g1S9Gc229449 for ; Thu, 28 Feb 2002 03:16:39 -0600 (CST) Date: Thu, 28 Feb 2002 03:16:38 -0600 (CST) From: Josh Tolbert To: Subject: subscribe Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG subscribe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Thu Feb 28 11:16: 9 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from pirania.go2.pl (pirania.go2.pl [212.126.20.20]) by hub.freebsd.org (Postfix) with ESMTP id 21F8637B400 for ; Thu, 28 Feb 2002 11:16:07 -0800 (PST) Received: from uplink (pa132.nidzica.sdi.tpnet.pl [213.77.171.132]) by pirania.go2.pl (Mailer_v2.01) with SMTP id B918D22FB22 for ; Thu, 28 Feb 2002 21:08:51 +0100 (CET) Message-ID: <005c01c1c08b$ff2693f0$0301a8c0@uplink> From: "Krzysztof Majk" To: Subject: Date: Thu, 28 Feb 2002 20:13:24 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ==== Zmierz sie z Asami przestworzy! Nowa, polska gra w kioskach! Internetowy konkurs i informacje: http://www.strefacd.pl ==== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Thu Feb 28 14:37:31 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C764C37B41A; Thu, 28 Feb 2002 14:37:29 -0800 (PST) Received: (from luoqi@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g1SMbTB46056; Thu, 28 Feb 2002 14:37:29 -0800 (PST) (envelope-from luoqi) Date: Thu, 28 Feb 2002 14:37:29 -0800 (PST) From: Message-Id: <200202282237.g1SMbTB46056@freefall.freebsd.org> To: benno@freebsd.org Subject: Re: cvs commit: src/sys/powerpc/powerpc pmap.c Cc: freebsd-ppc@freebsd.org Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > In FreeBSD, the zone allocator won't do this job, first, you are > > not guaranteed to get page below 256M, second, kva returned from > > zalloc does not necessarily equal to pa (you don't really need the > > kva). You'll have to write you own allocator. The tricky part is > > how to allocate page below 256M. We could probably do something > > similar to contigmalloc(), but my impression is this call could > > be quite expensive. Especially so if we adopt a merged pvo struct, > > because pv_entry allocation is much more frequent than overflow. > > Yeah, I was kind of avoiding thinking about this for the moment. =) > Hopefully Jeff's UMA stuff should help, as I believe that it > allows you to specify allocation routines which will allow this to work. > I wouldn't expect much help from UMA, in this customized allocation subroutine, you will still have to search for a page in low memory, that's not going to be cheap. Of course, we may follow NetBSD and have multiple freelists for different types of memory. In fact, this is not too hard to do and may benifit us in the long run. I'm just trying to figure out if there is enough justification for very rare events like hash table overflow. Last time I looked at Darwin's code, they'll simply panic if all entries in a particular pte group are all wired down. Not that I'm advocating this solution, but the fact that this hasn't become any problem shows how low the probability for an overflow is. > Hrm. I think I'd rather wait until Jeff's UMA goes in and reassess > then. At the moment I'm running on a simulator configured to use 32MB > of RAM so the BAT mapping will work. > You're absolutely right there's more urgent stuff to work on. Pmap module should be quite straightforward after this issue is resolved. I'm glad to see progresses are made in ppc port, it's a pity I don't have much time to work on it myself :( But I have my simulator ready, nd I can't wait to see the first shell prompt! -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message From owner-freebsd-ppc Sat Mar 2 10: 5:58 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from pom.INS.cwru.edu (pom.INS.CWRU.Edu [129.22.8.234]) by hub.freebsd.org (Postfix) with ESMTP id 0E16D37B417 for ; Sat, 2 Mar 2002 10:05:52 -0800 (PST) Received: from YEAGERLAPTOP.cwru.edu (yeagerlaptop.UL.CWRU.Edu [129.22.96.83]) by pom.INS.cwru.edu with ESMTP (8.8.8+cwru/CWRU-1.0-smtprelay) id NAA14387; Sat, 2 Mar 2002 13:05:51 -0500 (EST) (from thereisnospoon@cwru.edu for ) Message-Id: <5.1.0.14.0.20020302130534.00a8ab20@pop.cwru.edu> X-Sender: mxy4@pop.cwru.edu X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Sat, 02 Mar 2002 13:05:48 -0500 To: freebsd-ppc@FreeBSD.org From: Michael Yeager Subject: subscribe Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message