Re: [PATCH] ext4: Always journal quota file modifications

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Kara
Date: Wednesday, June 2, 2010 - 4:46 pm

On Wed 02-06-10 16:39:59, Eric Sandeen wrote:
  With quota a bit tricky thing is that amount of load depends on the
amount of different groups / users doing IO (and to some extent on how
much these users / groups share blocks of quota file). One can make a
simplistic upper estimate: 1 journalled block per user / group who modified
something in a transaction...
  Just out of curiosity I have created 10000 files in 10 directories, each
file belonging to a different user. Then I run:
sync; time { for (( i = 0; i < 10000; i++ )); do echo "aaaaaaaa"

and

sync; time { for (( i = 0; i < 10000; i++ )); do

  With journaled quotas enabled the times were pretty consistently around
2.9s for writes and 2.1s for truncates, without quotas the times were
around 2.7s for writes and 1.7s for truncates. So this gives some rough
idea how much quota costs for this rather extreme use case.

  Another case where quota impact is measurable is when several threads
bang files of the same user. Then we hit lock contention on the single dquot
structure, most notably on journaling it whenever it gets modified. Dmitry
was looking into addressing this...

									Honza

-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] ext4: Always journal quota file modifications, Jan Kara, (Wed Jun 2, 4:46 pm)
Re: [PATCH] ext4: Always journal quota file modifications, Dmitry Monakhov, (Thu Jun 3, 2:07 am)
Re: [PATCH] ext4: Always journal quota file modifications, Dmitry Monakhov, (Thu Jun 3, 7:13 am)
Re: [PATCH] ext4: Always journal quota file modifications, Bernd Schubert, (Thu Jun 3, 9:47 am)