From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 13 08:12:04 2012 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 EA66B1065675 for ; Fri, 13 Apr 2012 08:12:04 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 647278FC1A for ; Fri, 13 Apr 2012 08:12:04 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q3D8Bu43030686; Fri, 13 Apr 2012 11:11:56 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q3D8BuNN086847; Fri, 13 Apr 2012 11:11:56 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q3D8BuQh086846; Fri, 13 Apr 2012 11:11:56 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 13 Apr 2012 11:11:56 +0300 From: Konstantin Belousov To: Sushanth Rai Message-ID: <20120413081156.GB2358@deviant.kiev.zoral.com.ua> References: <20120411042837.GD2358@deviant.kiev.zoral.com.ua> <1334286626.57057.YahooMailClassic@web180010.mail.gq1.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="K4VW92aLFVAHIWRe" Content-Disposition: inline In-Reply-To: <1334286626.57057.YahooMailClassic@web180010.mail.gq1.yahoo.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org Subject: Re: mlockall() on freebsd 7.2 + amd64 returns EAGAIN 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, 13 Apr 2012 08:12:05 -0000 --K4VW92aLFVAHIWRe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 12, 2012 at 08:10:26PM -0700, Sushanth Rai wrote: > >=20 > > Then it should be fixed in r190885. > >=20 >=20 > Thanks. That works like a charm.=20 >=20 > mlockall() mostly works now. There is still a, issue in wiring the stacks= of multithreaded program when the program uses default stack allocation sc= heme. Thread library allocates stack for each thread by calling mmap() and = sending address and size to be mapped. The kernel adjusts the start address= to sgrowsz in vm_map_stack() and maps at the adjusted address. But the su= bsequent wiring is done using the original address, which fails.=20 >=20 Can you, please provide stand-alone example which demostrates the issue ? I suspect this should have not changed in HEAD. --K4VW92aLFVAHIWRe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk+H370ACgkQC3+MBN1Mb4jX8wCgzQEv8IldTpqfJaFpT7auRRk5 huAAoKAENgJTjn9PtzjPKo1Hn5JNn5kE =hAfz -----END PGP SIGNATURE----- --K4VW92aLFVAHIWRe--