public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Performance degradation over time
@ 2012-10-10  8:51 Marcin Deranek
  2012-10-10 13:17 ` Stan Hoeppner
  2012-10-10 23:37 ` Dave Chinner
  0 siblings, 2 replies; 8+ messages in thread
From: Marcin Deranek @ 2012-10-10  8:51 UTC (permalink / raw)
  To: xfs

Hi,

We are running XFS filesystem on one of out machines which is a big
store (~3TB) of different data files (mostly images). Quite recently we
experienced some performance problems - machine wasn't able to keep up
with updates. After some investigation it turned out that open()
syscalls (open for writing) were taking significantly more time than
they should eg. 15-20ms vs 100-150us.
Some more info about our workload as I think it's important here:
our XFS filesystem is exclusively used as data store, so we only
read and write our data (we mostly write). When new update comes it's
written to a temporary file eg.

/mountpoint/some/path/.tmp/file

When file is completely stored we move it to final location eg.

/mountpoint/some/path/different/subdir/newname

That means that we create lots of files in /mountpoint/some/path/.tmp
directory, but directory is empty as they are moved (rename() syscall)
shortly after file creation to a different directory on the same
filesystem.
The workaround which I found so far is to remove that directory
(/mountpoint/some/path/.tmp in our case) with its content and re-create
it. After this operation open() syscall goes down to 100-150us again.
Is this a known problem ?
Information regarding our system:
CentOS 5.8 / kernel 2.6.18-308.el5 / kmod-xfs-0.4-2
Let me know if you need to know anything more.
Cheers,

Marcin

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-10-17 21:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-10  8:51 Performance degradation over time Marcin Deranek
2012-10-10 13:17 ` Stan Hoeppner
2012-10-10 14:31   ` Eric Sandeen
2012-10-11  8:33     ` Marcin Deranek
2012-10-11  9:15       ` Marcin Deranek
2012-10-14 19:31         ` Peter Grandi
2012-10-10 23:37 ` Dave Chinner
2012-10-11  8:42   ` Marcin Deranek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox