From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 19 02:22:25 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4901AF81 for ; Wed, 19 Nov 2014 02:22:25 +0000 (UTC) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0A7A0885 for ; Wed, 19 Nov 2014 02:22:25 +0000 (UTC) Received: by mail-ig0-f178.google.com with SMTP id hl2so209199igb.5 for ; Tue, 18 Nov 2014 18:22:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=FHlPbVVa2WelSR5mLdnZElnTI+dN+QU0k9kj7O+r0d4=; b=LtirPTV5slX56lAPDSfXGhVSwhZoU4pa/8+BZJ+DrGNhPUgNYN4yQ9gWFYkqKR4mYX mwSbAy8rTUMrEu6VtGqm8o4SyecT+z2qWDq7Ygc3vQiQQsLfmPadNlpWocZKlvubr2tB TL57AzvuxjsFy3Dq21sG+7qTTpcTL35pJCWvPYrgpizL2ct6FDSx/4Krm0qRlwepR8MA TjlB0xTh6mE4tLpOBet7L9NxQV1avstVVjOrytWfipXP80z6lq0tHjeckbkp/U+0Jgem 9maxDzyau1xKILbjrAhzb9e3noafuKZGjwS8DKFZfC0SF0T3PGV2IBrlxdEJ4poMiPjG IGZQ== MIME-Version: 1.0 X-Received: by 10.50.73.67 with SMTP id j3mr697590igv.1.1416363744237; Tue, 18 Nov 2014 18:22:24 -0800 (PST) Received: by 10.64.147.164 with HTTP; Tue, 18 Nov 2014 18:22:24 -0800 (PST) Date: Tue, 18 Nov 2014 18:22:24 -0800 Message-ID: Subject: Re: Running 8 building 10 gives "Out of file descriptors" ? From: Dieter BSD To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2014 02:22:25 -0000 > I've been building 10.x and 11.x world and kernel from source on an 8.2 > (and more recently now 8.4) system for a couple years, as recently as > last night. I've never needed to do anything special. When I check > sysctl kern.maxfiles it's set to 12328, not so different from yours. > > I wonder if some long-running process on your system is leaking away > descriptors? A 'procstat -af' might help find that. Uptime is less than 3 days. (System hung a couple days ago, shutting off the signal to the display. No core dump. No clues as to *why* it hung. *grumble* ) >> getdtablesize() returned 11095 kern.maxfiles: 12328 # procstat -af | wc -l 1912 I ran while true ; do procstat -af | wc -l; sleep 0.03 ; done in one window, and make kernel-toolchain in another window. Never got above 2000. Not absolute proof, but it looks like it is not really running out of descriptors. chmod 0 /usr/bin/mkdep gives the expected permission denied. (proves that it is trying to run /usr/bin/mkdep) Restore the mode and change /usr/bin/mkdep to #!/bin/sh echo hello from mkdep and I'm back to "Out of file descriptors". And it doesn't print hello. So... make (I assume?) thinks (incorrectly?) that it is running out of file descriptors attempting to run /usr/bin/mkdep?