All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Goodwin <markgw@sgi.com>
To: Tomasz Chmielewski <mangoo@wpkg.org>
Cc: xfs@oss.sgi.com
Subject: Re: is xfs good if I have millions of files and thousands of hardlinks?
Date: Wed, 20 Feb 2008 09:30:11 +1100	[thread overview]
Message-ID: <47BB5873.6040703@sgi.com> (raw)
In-Reply-To: <47BADF75.2070004@wpkg.org>



Tomasz Chmielewski wrote:
> I have a ext3 filesystem with almost 200 million files (1.2 TB fs, ~65% 
> full); most of the files are hardlinked multiple times, some of them are 
> hardlinked thousands of times.
> 
> I described my problem yesterday on linux-fsdev list:
> 
> http://marc.info/?t=120333985100003

quite a long discussion there .. I haven't read it .. but some comments
below anyway ..

> In general, because new files and hardlinks are being added all the time 
> and the old ones are being removed, this leads to a very, very poor 
> performance.
> 
> When I want to remove a lot of directories/files (which will be 
> hardlinks, mostly), I see disk write speed is down to
> 50 kB/s - 200 kB/s (fifty - two hundred kilobytes/s) - this is the 
> "bandwidth" used during the deletion.
> 
> 
> Also, the filesystem is very fragmented ("dd if=/dev/zero of=some_file 
> bs=64k" writes only about 1 MB/s).
> 
> Will xfs handle a large number of files, including lots of hardlinks, 
> any better than ext3?

defragmenting by copying from the ext3 filesystem to a new filesystem
should help, for a while at least. Whether xfs would have an on-going
performance problem compared to ext3 depends on your usage patterns ..
does "all the time" mean you are continuously adding new files and links
and removing files at a high rate/second? Are multiple threads doing this?
Are all the files the same size? Block-size been tuned?

-- Mark

  parent reply	other threads:[~2008-02-19 22:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-19 13:53 is xfs good if I have millions of files and thousands of hardlinks? Tomasz Chmielewski
2008-02-19 21:09 ` Peter Grandi
2008-02-19 22:30 ` Mark Goodwin [this message]
2008-02-19 22:43   ` Tomasz Chmielewski
2008-02-20  9:56   ` Tomasz Chmielewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47BB5873.6040703@sgi.com \
    --to=markgw@sgi.com \
    --cc=mangoo@wpkg.org \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.