From owner-freebsd-fs@FreeBSD.ORG Wed Feb 16 23:31:54 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A12E106566C for ; Wed, 16 Feb 2011 23:31:54 +0000 (UTC) (envelope-from pipatron@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id DD92B8FC16 for ; Wed, 16 Feb 2011 23:31:53 +0000 (UTC) Received: by yie19 with SMTP id 19so888577yie.13 for ; Wed, 16 Feb 2011 15:31:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=PqYBPhwVBvT1pQhUhOUpjxS0Advth8jtrg49EGUpXmU=; b=Vewai8htBV57VJpDHkiTkAcR1rcreKohV02R6vlFVlV9u6opYrAw/Zt8+0CO8yrbER lRXYop9CwZND9I5z6KzW920OV5Lx0cPCQGVt9dOiPyvQjZb6oL5zN84Tp7ZeAtDUlVnq SxH2UBU9SFHnF3lZv3FD1ok30mNH+q/RHUmmI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=l6m9/CB6wqi3/c+7Rxc6567La54uEgCF3+LM0gPVcOZxsjgKg9dL50evdygy8yF1Fc zGdHwst+8TLUTEg0aZb5Gx8o7h2PgyPbOckN+yAGquUv/bhuRWV2fFNFSDdhQJK7HKmU U/GW62XE620yMyozp+u2FHjOlld322O+p8OjM= MIME-Version: 1.0 Received: by 10.150.185.5 with SMTP id i5mr1503219ybf.271.1297899112939; Wed, 16 Feb 2011 15:31:52 -0800 (PST) Received: by 10.150.196.17 with HTTP; Wed, 16 Feb 2011 15:31:52 -0800 (PST) In-Reply-To: References: Date: Thu, 17 Feb 2011 00:31:52 +0100 Message-ID: From: Anders Andersson To: Andrew Thompson Content-Type: text/plain; charset=UTF-8 Cc: freebsd-fs@freebsd.org Subject: Re: zfs directory listing X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Feb 2011 23:31:54 -0000 > mqueue has a link count of 522824. I can not list the contents of this > directory, when I do the number of read IOPS sits > 100 and it will > never complete > if I ^C the ls then the read ops drops back to zero. If I leave a `ls` > or `find /var/spool/mqueue` running then they will churn the disks > indefinitely without producing output. Now, I just joined to get help from UFS2-people, but when I am doing things like this in linux, I use "ls -lU" or "ls -lf". "ls -U" means that it doesn't try to sort the entries at all, but outputs them in the order they are found. This means that there is no longer a delay from collecting them in memory and sorting, but it outputs each entry as soon as they are found. This may help you unless there is something else wrong, or unless such a flag does not exist in your version of ls. You also have the utility "find", which might work better in this case. Forgive me if these seem trivial and obvious. :) // pipe