From owner-freebsd-hackers@freebsd.org Tue Aug 18 19:42:40 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2255F9BCE22 for ; Tue, 18 Aug 2015 19:42:40 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0DE418AF for ; Tue, 18 Aug 2015 19:42:39 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from yuri.doctorlan.com (c-50-184-63-128.hsd1.ca.comcast.net [50.184.63.128]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id t7IJfX7p076134 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Tue, 18 Aug 2015 12:41:34 -0700 (PDT) (envelope-from yuri@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host c-50-184-63-128.hsd1.ca.comcast.net [50.184.63.128] claimed to be yuri.doctorlan.com To: Freebsd hackers list From: Yuri Subject: System briefly freezes every time when a very large UFS directory is filled with files Message-ID: <55D38A75.6090508@rawbw.com> Date: Tue, 18 Aug 2015 12:41:41 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2015 19:42:40 -0000 I have one directory that has ~1.2M files on UFS system. Every time when the process that creates files there reaches a particular point (~0.9M files), system invariably freezes for ~10 seconds, after which it continues and process succeeds. I know that this is quite an extreme number of files but, other than this problem, it is usable in this setup. Maybe someone can think of some fix or the immediate reason of such freezes? This isn't a good problem to have, even in the view of an extremity of this situation. Yuri