All of lore.kernel.org
 help / color / mirror / Atom feed
* ext4 quota tests?
@ 2010-01-26 17:31 Curt Wohlgemuth
  2010-01-26 18:22 ` Eric Sandeen
  2010-01-26 18:35 ` Jan Kara
  0 siblings, 2 replies; 4+ messages in thread
From: Curt Wohlgemuth @ 2010-01-26 17:31 UTC (permalink / raw)
  To: Jan Kara; +Cc: ext4 development

Hi Jan:

I heard from the ext4 conference call yesterday that you might have
some quota tests that would be useful.  Can you give me a pointer to
where I might find them?

Thanks,
Curt

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

* Re: ext4 quota tests?
  2010-01-26 17:31 ext4 quota tests? Curt Wohlgemuth
@ 2010-01-26 18:22 ` Eric Sandeen
  2010-01-26 18:51   ` Jan Kara
  2010-01-26 18:35 ` Jan Kara
  1 sibling, 1 reply; 4+ messages in thread
From: Eric Sandeen @ 2010-01-26 18:22 UTC (permalink / raw)
  To: Curt Wohlgemuth; +Cc: Jan Kara, ext4 development

Curt Wohlgemuth wrote:
> Hi Jan:
> 
> I heard from the ext4 conference call yesterday that you might have
> some quota tests that would be useful.  Can you give me a pointer to
> where I might find them?
> 
> Thanks,
> Curt

I'm the one who suggested that Jan -might- have some quota test
infrastructure, but I don't know for sure.  :)

Jan, we'd love to pull anything you might have into xfstests if
we can, I think.

-Eric

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

* Re: ext4 quota tests?
  2010-01-26 17:31 ext4 quota tests? Curt Wohlgemuth
  2010-01-26 18:22 ` Eric Sandeen
@ 2010-01-26 18:35 ` Jan Kara
  1 sibling, 0 replies; 4+ messages in thread
From: Jan Kara @ 2010-01-26 18:35 UTC (permalink / raw)
  To: Curt Wohlgemuth; +Cc: linux-ext4

  Hi Curt,

On Tue 26-01-10 09:31:24, Curt Wohlgemuth wrote:
> I heard from the ext4 conference call yesterday that you might have
> some quota tests that would be useful.  Can you give me a pointer to
> where I might find them?
  Hum, I have some scripts I use for testing of quota but it's nothing
too clever. What exactly would you like to test? What generally needs to be
tested from filesystem POV (since I guess that's what you're interested in)
is whether quota accounting matches the real usage. So what I do is:

run the load I want to check
quotaoff -vu $mntpoint
repquota -u $mntpoint | sed -ne '6,$p' | tr -s ' ' | sort >before_check
quotacheck -vu $mntpoint
repquota -u $mntpoint | sed -ne '6,$p' | tr -s ' ' | sort >after_check
diff before_check after_check >/dev/null || echo "Quota usage differs!"

For "load I want to check" I usually use fsstress, fsx-linux or similar
programs.

Oh, and when I want to be nasty, I also test load like:
as root do:
  while true; do
    BLOCKLIMIT=$minblimit+$((RANDOM%($maxblimit-$minblimit)))
    INODELIMIT=$minilimit+$((RANDOM%($maxilimit-$minilimit)))
    setquota -u testuser 0 $BLOCKLIMIT 0 $INODELIMIT $mntpoint
    sleep 1
  done

as testuser do:
  while true; do tar xzf some_larger_archive.tar.gz; rm -rf archive; done

Possibly you might also want to run 'sync' in parallel once in a while to
make the mix more interesting. The point is to test whether allocation
failure paths work right...

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

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

* Re: ext4 quota tests?
  2010-01-26 18:22 ` Eric Sandeen
@ 2010-01-26 18:51   ` Jan Kara
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Kara @ 2010-01-26 18:51 UTC (permalink / raw)
  To: Eric Sandeen; +Cc: Curt Wohlgemuth, Jan Kara, ext4 development

On Tue 26-01-10 12:22:54, Eric Sandeen wrote:
> Curt Wohlgemuth wrote:
> > Hi Jan:
> > 
> > I heard from the ext4 conference call yesterday that you might have
> > some quota tests that would be useful.  Can you give me a pointer to
> > where I might find them?
> > 
> > Thanks,
> > Curt
> 
> I'm the one who suggested that Jan -might- have some quota test
> infrastructure, but I don't know for sure.  :)
> 
> Jan, we'd love to pull anything you might have into xfstests if
> we can, I think.
  Yes, that would be a good idea. As I wrote to Curt, I don't have anything
generally usable. But for example extending fsstress and fsx tests with
quota checking should be pretty straightforward. And the tar test I have
described could be added as well.

									Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

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

end of thread, other threads:[~2010-01-26 18:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-26 17:31 ext4 quota tests? Curt Wohlgemuth
2010-01-26 18:22 ` Eric Sandeen
2010-01-26 18:51   ` Jan Kara
2010-01-26 18:35 ` Jan Kara

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.