From owner-freebsd-questions@FreeBSD.ORG Sat Apr 12 15:17:09 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2DA64106566B for ; Sat, 12 Apr 2008 15:17:09 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from parsely.rain.com (parsely.rain.com [199.26.172.196]) by mx1.freebsd.org (Postfix) with ESMTP id CF5518FC15 for ; Sat, 12 Apr 2008 15:17:08 +0000 (UTC) (envelope-from freebsd@sopwith.solgatos.com) Received: from sopwith.solgatos.com (uucp@localhost) by parsely.rain.com (8.11.4/8.11.4) with UUCP id m3CFH7o52660 for freebsd-questions@freebsd.org; Sat, 12 Apr 2008 08:17:07 -0700 (PDT) (envelope-from freebsd@sopwith.solgatos.com) Received: from localhost by sopwith.solgatos.com (8.8.8/6.24) id PAA01187; Sat, 12 Apr 2008 15:15:41 GMT Message-Id: <200804121515.PAA01187@sopwith.solgatos.com> To: freebsd-questions@freebsd.org Date: Sat, 12 Apr 2008 08:15:41 +0100 From: Dieter Subject: 6.2 -> 7.0 now mlock(2) fails X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@sopwith.solgatos.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2008 15:17:09 -0000 I never saw mlock(2) fail in 6.2 but with 7.0 I sometimes get mlock(2) failed: Resource temporarily unavailable. I commented out a ton of drivers in the kernel config file, which I didn't do in 6.2, so the 7.0 kernel should be using less memory, unless something still in there gained a lot of bloat. dmesg says: usable memory = 2139107328 (2040 MB) avail memory = 2064769024 (1969 MB) pstat -s says: Device 1M-blocks Used Avail Capacity /dev/ad6s10 4482 0 4482 0% so there should be far more than enough memory. systat -vmstat says: Mem:KB REAL VIRTUAL VN PAGER SWAP PAGER Tot Share Tot Share Free in out in out Act 213464 8460 442088 17796 72928 count All 255092 8900 4688532 19072 pages and mlock is failing. What changed and how do I fix it?