From owner-freebsd-current Sat Mar 16 04:37:23 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id EAA01124 for current-outgoing; Sat, 16 Mar 1996 04:37:23 -0800 (PST) Received: from time.cdrom.com ([204.216.27.226]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id EAA01119 Sat, 16 Mar 1996 04:37:21 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by time.cdrom.com (8.7.5/8.6.9) with SMTP id EAA00246; Sat, 16 Mar 1996 04:36:29 -0800 (PST) To: David Dawes cc: sos@FreeBSD.org, dyson@FreeBSD.org, current@FreeBSD.org, mmead@Glock.COM Subject: Re: Try this vm_mmap.c -- please In-reply-to: Your message of "Sat, 16 Mar 1996 21:07:31 +1100." <199603161007.VAA09725@rf900.physics.usyd.edu.au> Date: Sat, 16 Mar 1996 04:36:29 -0800 Message-ID: <244.826979789@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > Does accelx by any chance use MAP_PRIVATE? Bingo! Between David's comment here and John's own comment in the latest vm_mmap.c he sent out which says: * On device mmaps we default to map shared -- makes the most * sense in this case. Does MAP_PRIVATE even make sense on * devices mmaps??? I made the following change: if ((type == OBJT_DEVICE)) { if (flags & (MAP_PRIVATE|MAP_SHARED) == 0) flags |= MAP_SHARED; else if (flags & MAP_PRIVATE) flags &= ~MAP_PRIVATE; } Which turns MAP_PRIVATE *off* for device objects. My Xaccel 1.2 now works perfectly! Yay! Jordan