From owner-freebsd-amd64@FreeBSD.ORG Mon Sep 18 09:11:43 2006 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 368F516A407 for ; Mon, 18 Sep 2006 09:11:43 +0000 (UTC) (envelope-from garyj@jennejohn.org) Received: from mail08b.verio.de (mail08b.verio.de [213.198.55.74]) by mx1.FreeBSD.org (Postfix) with SMTP id 470FD43D5D for ; Mon, 18 Sep 2006 09:11:42 +0000 (GMT) (envelope-from garyj@jennejohn.org) Received: from mx34.stngva01.us.mxservers.net (204.202.242.42) by mail08b.verio.de (RS ver 1.0.95vs) with SMTP id 3-02143698; Mon, 18 Sep 2006 11:11:40 +0200 (CEST) Received: from www.jennejohn.org [213.198.5.174] (EHLO peedub.jennejohn.org) by mx34.stngva01.us.mxservers.net (mxl_mta-1.3.8-10p4) with ESMTP id cc26e054.27422.276.mx34.stngva01.us.mxservers.net; Mon, 18 Sep 2006 05:11:40 -0400 (EDT) Received: from jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.13.7/8.11.6) with ESMTP id k8I9BZjS001141; Mon, 18 Sep 2006 11:11:35 +0200 (CEST) (envelope-from garyj@jennejohn.org) Message-Id: <200609180911.k8I9BZjS001141@peedub.jennejohn.org> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.0.4 To: Danny Braniss In-reply-to: Your message of "Mon, 18 Sep 2006 10:11:39 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 18 Sep 2006 11:11:35 +0200 From: Gary Jennejohn X-Spam: [F=0.4661187465; heur=0.500(-19800); stat=0.466; spamtraq-heur=0.500(2006091702)] X-MAIL-FROM: X-SOURCE-IP: [213.198.5.174] X-Loop-Detect: 1 X-DistLoop-Detect: 1 Cc: Christos Zoulas , freebsd-amd64@FreeBSD.org, am-utils@fsl.cs.sunysb.edu Subject: Re: mlockall() failes on amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Gary Jennejohn List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Sep 2006 09:11:43 -0000 Danny Braniss writes: > > > On Sep 16, 7:17pm, danny@cs.huji.ac.il (Danny Braniss) wrote: > > > -- Subject: Re: mlockall() failes on amd64 > > > > > > | > On Sep 16, 2:55pm, danny@cs.huji.ac.il (Danny Braniss) wrote: > > > | > -- Subject: mlockall() failes on amd64 > > > | > > > > | > | with am-utils 6.1.5, on a amd64 6.1-STABLE kernel i see: > > > | > | Couldn't lock process pages in memory using mlockall() > > > | > | while it's ok on a i386: > > > | > | Locked process pages in memory > > > | > | > > > | > > > > | > We should really fix amd to print the errno string when system calls > > > | > fail; now we can only scratch our heads. > > > | > > > > | > christos > > > | sorry, here is the full message: > > > | Couldn't lock process pages in memory using mlockall(): Resource tempor > arily > > > | unavailable > > > | > > > | or error = EAGAIN (ED :-) > > > > > > heh! > > > > > > FreeBSD's vm system is very different from NetBSD's, and I am not familia > r > > > with it. The first and easiest thing to do is to check if the resource li > mit > > > for locked memory is set too low. Then hunt in the kernel sources for mlo > ckall > > > and print the arguments it passes to the vm system. Anyway, the error is > not > > > fatal, and amd should keep working after that. > > > > > > christos > > > > im trying to figure out why it core dumped, for the very first time, > > (and i don't have the core :-(, and the only thing that was special > > on this host, is that we are trying out postgres with allot of memory > > requierements, so i thought that maybe it's memory ... > > oh well, bug-hunting hat still on :-) > > some more information: > an am-utils child will exit on signal 11 > (so far can't get the core) whenever memory gets tite. > Maybe you need to set kern.sugid_coredump to 1? --- Gary Jennejohn / garyjATjennejohnDOTorg gjATfreebsdDOTorg garyjATdenxDOTde