Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Aug 2011 10:52:00 +0200
From:      Damien Fleuriot <ml@my.gd>
To:        freebsd-stable@freebsd.org
Subject:   Re: ZFS directory with a large number of files
Message-ID:  <4E40F530.8020507@my.gd>
In-Reply-To: <CAJGy1F0d7jeyaFuNdXe%2BucTL2r7R4suCyu8xG7WRHenMFZH-6g@mail.gmail.com>
References:  <CAJGy1F0d7jeyaFuNdXe%2BucTL2r7R4suCyu8xG7WRHenMFZH-6g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/2/11 9:39 AM, seanrees@gmail.com wrote:
> Hi there,
> 
> I Googled around and checked the PRs and wasn't successful in finding
> any reports of what I'm seeing. I'm hoping someone here can help me
> debug what's going on.
> 
> On my FreeBSD 8.2-S machine (built circa 12th June), I created a
> directory and populated it over the course of 3 weeks with about 2
> million individual files. As you might imagine, a 'ls' of this
> directory took quite some time.
> 
> The files were conveniently named with a timestamp in the filename
> (still images from a security camera, once per second) so I've since
> moved them all to timestamped directories (yyyy/MM/dd/hh/mm). What I
> found though was the original directory the images were in is still
> very slow to ls -- and it only has 1 file in it, another directory.
> 

While not addressing your original question, which many people have
already, I'll toss in the following:

I do hope you've disabled access times on your ZFS dataset ?

zfs set atime=off YOUR_DATASET/supercamera/captures




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E40F530.8020507>