[Ocfs2-devel] [PATCH 3/4] ocfs2: fix slow deleting

Joel Becker jlbec at evilplan.org
Sun Aug 21 21:45:57 PDT 2011


On Fri, Jul 29, 2011 at 06:06:14PM +0800, Wengang Wang wrote:
> There is a case that the application deletes a large number(XX kilo) of files in
> short time (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:
> make the orphanscan work with lower priority. That means when unlink/delete_inode,
> come, orphanscan should break the walking in orphandir and release the lock(mutex and
> cluster lock). 

	I see what you're getting at here, but I'm not sure I like the
flag method.  Gotta think about it.

Joel

-- 

"The trouble with being punctual is that nobody's there to
 appreciate it."
	- Franklin P. Jones

			http://www.jlbec.org/
			jlbec at evilplan.org



More information about the Ocfs2-devel mailing list