From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 13 03:10:28 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 82015106566B for ; Fri, 13 Apr 2012 03:10:28 +0000 (UTC) (envelope-from sushanth_rai@yahoo.com) Received: from nm25.bullet.mail.sp2.yahoo.com (nm25.bullet.mail.sp2.yahoo.com [98.139.91.95]) by mx1.freebsd.org (Postfix) with SMTP id 3E1B78FC12 for ; Fri, 13 Apr 2012 03:10:28 +0000 (UTC) Received: from [98.139.91.70] by nm25.bullet.mail.sp2.yahoo.com with NNFMP; 13 Apr 2012 03:10:27 -0000 Received: from [98.139.44.75] by tm10.bullet.mail.sp2.yahoo.com with NNFMP; 13 Apr 2012 03:10:27 -0000 Received: from [127.0.0.1] by omp1012.access.mail.sp2.yahoo.com with NNFMP; 13 Apr 2012 03:10:27 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 252011.53968.bm@omp1012.access.mail.sp2.yahoo.com Received: (qmail 71867 invoked by uid 60001); 13 Apr 2012 03:10:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1334286626; bh=csrdP5eV89yIXYc1G5AvAzhym+IZPfFPdMViVArUST8=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=4qZpAos6WvEeNR48N5vFVpUuzWismF0GFRbiWlG3SNlJGY2i/z2AguZ6t+ftr7mb0IrqmE60+oF3F/1i7Gm99llL5s7Pjal+GF06j8H70ydu/KS/FoMckF1qw+D0zL+h4+jP7zWJDgIl2iTP+A+nTQs+A7GeKHvqgIsffipDIvM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=Pne+ZsP8eH3j+OImZqMFosZlUF5BX4wJURUXF9EQxY8pWU/MCXU936v3SabjNtkaLVtxPB55H8DuxnwpLMsNsoD1XizN5zbr/cLFPeAT4o3v32OBC1kEIlmTZz54HrBMytXnEVC39SsqLlZLxS7BjSm0qSPH3lA/0nXF+CoylCs=; X-YMail-OSG: XqNbYJwVM1n16dPg5z5v3dW7xE5UIhwoMSqPtpGmjfKjb7M A0eUco0Tn1LdfJNnac8qd_M6bauB.YjVlFWZcPqPi_d7T.raQaHd9SaRU.mv dO7R1qY.G1kh7_xJ3kMpHSHRSlq.kyI8XJ6NapC0.eefZ39yqx_LJDMRFvyH KtUaCcHeFma8.Vl.LusXhnhJMcmVBLCufHl_I5lPezRIvSFWztpa3qJCjq_P CtYEKVmETs8VVBB2TJm_Eu26T4thpRDxSmERwQCBdL2mVsq0.KMMlTp7A3_i NqUs8.uoOmhyoeEiW7szaVks2FMWzWNW2jbNYvGrZvPYmAXp8lVZphckRvfl 2X0.Ndc9NCKxLpRYKbsW_oy_1xkvtB2MlVVQPDwkyERdg3odejOFh2rkZlxH VFS2y3gmGU7V7d1xgMGlT6ccBkqd0xMnEJPqAWRGBqg0Dm6exoJNUy.jALCU XhZPRRdo- Received: from [209.119.38.67] by web180010.mail.gq1.yahoo.com via HTTP; Thu, 12 Apr 2012 20:10:26 PDT X-Mailer: YahooMailClassic/15.0.5 YahooMailWebService/0.8.117.340979 Message-ID: <1334286626.57057.YahooMailClassic@web180010.mail.gq1.yahoo.com> Date: Thu, 12 Apr 2012 20:10:26 -0700 (PDT) From: Sushanth Rai To: Konstantin Belousov In-Reply-To: <20120411042837.GD2358@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 03:10:28 -0000 > > Then it should be fixed in r190885. > Thanks. That works like a charm. mlockall() mostly works now. There is still a, issue in wiring the stacks of multithreaded program when the program uses default stack allocation scheme. 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 subsequent wiring is done using the original address, which fails. > Could you use something less antique, please ? > I would love to but I don't have control over some of these things. Hopefully some of what we have seen recently will convince higher powers to refresh to a newer release. Thanks, Sushanth