From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 3 12:50:27 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36DEB16A4E5 for ; Thu, 3 Aug 2006 12:50:27 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C933A43D68 for ; Thu, 3 Aug 2006 12:50:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k73CoM46081221 for ; Thu, 3 Aug 2006 12:50:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k73CoMFH081220; Thu, 3 Aug 2006 12:50:22 GMT (envelope-from gnats) Date: Thu, 3 Aug 2006 12:50:22 GMT Message-Id: <200608031250.k73CoMFH081220@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Tijl Coosemans Cc: Subject: Re: kern/94413: [kernel] wine fails when increasing kern.maxdsiz X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Tijl Coosemans List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2006 12:50:27 -0000 The following reply was made to PR kern/94413; it has been noted by GNATS. From: Tijl Coosemans To: bug-followup@freebsd.org Cc: gerald@pfeifer.com Subject: Re: kern/94413: [kernel] wine fails when increasing kern.maxdsiz Date: Thu, 3 Aug 2006 14:46:14 +0200 The problem is that mmap(2), when called with NULL for the addr argument, only looks for free pages after the maximum data segment. Given that Wine is located at the end of the first 2Gb of address space (to leave room for the Windows executable), plus a maximum data segment size of 1Gb, you're simply running out of user address space. There's a comment in the mmap code hinting at how this can be improved, but really I don't think mmap should change (i.e. become more complicated just for Wine). I'm not 100% sure, but I believe the problem can be fixed by porting the Wine preloader and have it lower the maximum RLIMIT_DATA.