All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH 0/3] ocfs2: fix slow deleting
@ 2011-07-06  4:38 Wengang Wang
  2011-07-06  6:17 ` Sunil Mushran
  0 siblings, 1 reply; 10+ messages in thread
From: Wengang Wang @ 2011-07-06  4:38 UTC (permalink / raw)
  To: ocfs2-devel

There is a use case that the app deletes huge number(XX kilo) of files in every
5 minutes. The deletions of some specific files are extreamly slow(costing
xx~xxx seconds). That is unacceptable.

Reading out the dir entries and the relavent inodes cost time. And we are doing
that with i_mutex held, it causes unlink path waiting on the mutex for long time.

fix:
We drops and retake the mutex in the duration giving change to unlink to go on.
Also, for live nodes, one node only scan and recover this slot where the node
resides(helps performance). And always do it at each scan time. For those dead
(not mounted), we do it when we "should". And for dead slots, no dropping-retaking
mutex is needed.

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

end of thread, other threads:[~2011-07-28 10:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-06  4:38 [Ocfs2-devel] [PATCH 0/3] ocfs2: fix slow deleting Wengang Wang
2011-07-06  6:17 ` Sunil Mushran
2011-07-06  6:41   ` Wengang Wang
2011-07-06  6:48     ` Wengang Wang
2011-07-07  6:19   ` Srinivas Eeda
2011-07-07 20:02     ` Sunil Mushran
2011-07-07 20:26       ` Sunil Mushran
2011-07-08  7:02         ` Srinivas Eeda
2011-07-08 16:18           ` Sunil Mushran
2011-07-28 10:14           ` Joel Becker

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.