mbox series

[0/6] Track minimal size per filesystem

Message ID 20220827002815.19116-1-pvorel@suse.cz
Headers show
Series Track minimal size per filesystem | expand

Message

Petr Vorel Aug. 27, 2022, 12:28 a.m. UTC
Hi all,

This patchset require to be on the top of:

[RFC,1/1] API: Allow to use xfs filesystems < 300 MB
https://lore.kernel.org/ltp/20220817204015.31420-1-pvorel@suse.cz/
https://patchwork.ozlabs.org/project/ltp/patch/20220817204015.31420-1-pvorel@suse.cz/

It replaces previous effort to just increase loop device size to 300 MB
https://lore.kernel.org/ltp/20220818100945.7935-1-pvorel@suse.cz/
https://patchwork.ozlabs.org/project/ltp/list/?series=314303&state=*

This patchset tracks minimal filesystem requirements as we agreed.
It fixes both C and shell API.

** Please test the patchset in your setup. **

I tried to find all tests with problems, but likely I missed some.

I have no idea why sendfile09 fails:

tst_test.c:1540: TINFO: Timeout per run is 0h 00m 30s
sendfile09.c:88: TPASS: sendfile() with offset at 0
Test timeouted, sending SIGKILL!
tst_test.c:1590: TINFO: If you are running on slow machine, try
exporting LTP_TIMEOUT_MUL > 1
tst_test.c:1591: TBROK: Test killed! (timeout?)

Summary:
passed   1
failed   0
broken   1
skipped  0
warnings 0

df01.sh and mkfs01.sh (except -f exfat) are shell tests which use loop
device. mkfs01.sh -t exfat fails (not yet in the runtest file).

If applied, "v3 shell: nfs: $TST_ALL_FILESYSTEMS (.all_filesystems)"
patchset will need to be rebased (not a problem, I'd just like to get
both into LTP release in September)
https://patchwork.ozlabs.org/project/ltp/list/?series=312567&state=*
https://lore.kernel.org/ltp/20220804121946.19564-1-pvorel@suse.cz/

Kind regards,
Petr

Petr Vorel (6):
  tst_fs_type: Add nsfs, vfat, squashfs to tst_fs_type_name()
  API: tst_device: Track minimal size per filesystem
  tst_test: Use 16 MB also for tmpfs
  tst_device: Use getopts
  tst_device: Add support -f filesystem
  tst_test.sh: Pass used filesystem to tst_device

 include/old/old_device.h                      |  6 +-
 include/tst_fs.h                              | 21 ++++-
 lib/tst_device.c                              | 36 +++++++--
 lib/tst_fs_type.c                             | 34 ++++++++
 lib/tst_test.c                                |  9 ++-
 testcases/kernel/fs/squashfs/squashfs01.c     |  1 +
 .../kernel/syscalls/fanotify/fanotify05.c     |  1 +
 testcases/kernel/syscalls/preadv2/preadv203.c |  1 +
 .../kernel/syscalls/readahead/readahead02.c   |  1 +
 testcases/lib/tst_device.c                    | 81 ++++++++++++-------
 testcases/lib/tst_test.sh                     |  4 +-
 testcases/misc/lvm/cleanup_lvm.sh             |  2 +-
 testcases/misc/lvm/prepare_lvm.sh             |  8 +-
 13 files changed, 157 insertions(+), 48 deletions(-)

Comments

Cyril Hrubis Aug. 29, 2022, 10:43 a.m. UTC | #1
Hi!
> This patchset require to be on the top of:
> 
> [RFC,1/1] API: Allow to use xfs filesystems < 300 MB
> https://lore.kernel.org/ltp/20220817204015.31420-1-pvorel@suse.cz/
> https://patchwork.ozlabs.org/project/ltp/patch/20220817204015.31420-1-pvorel@suse.cz/

I'm not that sure if we want to run tests for xfs filesystem that is
smaller than minimal size used in production. I bet that we will cover
different codepaths that eventually end up being used in production
that way.
Petr Vorel Aug. 29, 2022, 11:39 a.m. UTC | #2
Hi Cyril,

> Hi!
> > This patchset require to be on the top of:

> > [RFC,1/1] API: Allow to use xfs filesystems < 300 MB
> > https://lore.kernel.org/ltp/20220817204015.31420-1-pvorel@suse.cz/
> > https://patchwork.ozlabs.org/project/ltp/patch/20220817204015.31420-1-pvorel@suse.cz/

> I'm not that sure if we want to run tests for xfs filesystem that is
> smaller than minimal size used in production. I bet that we will cover
> different codepaths that eventually end up being used in production
> that way.

	> > LTP community: do we want to depend on this behavior or we just increase from 256MB to 301 MB
	> > (either for XFS or for all). It might not be a good idea to test size users are required
	> > to use.

	> It might *not*? <confused>
	Again, I'm sorry, missing another not. I.e. I suppose normal users will not try
	to go below 301MB, therefore LTP probably should not do it either. That's why
	RFC.

@Darrick, others (kernel/LTP maintainers, embedded folks) WDYT?

I'm personally OK to use 300 MB (safer to use code paths which are used in
production), it's just that for older kernels even with xfs-progs installed it's
unnecessary boundary. We could base XFS size on runtime kernel, but unless it's
300 MB a real problem for anybody I would not address it. i.e. is there anybody
using XFS on old kernels? (old LTS, whey sooner or later need to use these
variables themselves).

Kind regards,
Petr

[1] https://lore.kernel.org/ltp/Yv4ABHlsP+BZ3bRD@pevik/
Li Wang Aug. 30, 2022, 5:52 a.m. UTC | #3
Hi Petr, All,

On Mon, Aug 29, 2022 at 7:40 PM Petr Vorel <pvorel@suse.cz> wrote:

> Hi Cyril,
>
> > Hi!
> > > This patchset require to be on the top of:
>
> > > [RFC,1/1] API: Allow to use xfs filesystems < 300 MB
> > > https://lore.kernel.org/ltp/20220817204015.31420-1-pvorel@suse.cz/
> > >
> https://patchwork.ozlabs.org/project/ltp/patch/20220817204015.31420-1-pvorel@suse.cz/
>
> > I'm not that sure if we want to run tests for xfs filesystem that is
> > smaller than minimal size used in production. I bet that we will cover
> > different codepaths that eventually end up being used in production
> > that way.
>
>         > > LTP community: do we want to depend on this behavior or we
> just increase from 256MB to 301 MB
>         > > (either for XFS or for all). It might not be a good idea to
> test size users are required
>         > > to use.
>
>         > It might *not*? <confused>
>         Again, I'm sorry, missing another not. I.e. I suppose normal users
> will not try
>         to go below 301MB, therefore LTP probably should not do it either.
> That's why
>         RFC.
>
> @Darrick, others (kernel/LTP maintainers, embedded folks) WDYT?
>
> I'm personally OK to use 300 MB (safer to use code paths which are used in
> production), it's just that for older kernels even with xfs-progs
> installed it's
> unnecessary boundary. We could base XFS size on runtime kernel, but unless
> it's
> 300 MB a real problem for anybody I would not address it. i.e. is there
> anybody
> using XFS on old kernels? (old LTS, whey sooner or later need to use these
> variables themselves).
>

Another compromised way I can think of is to let LTP choose
300MB for XFS by default, if the test bed can't provide that size,
simply go back to try 16MB.  Does this sound acceptable?
Petr Vorel Aug. 30, 2022, 8:18 a.m. UTC | #4
> Hi Petr, All,

> On Mon, Aug 29, 2022 at 7:40 PM Petr Vorel <pvorel@suse.cz> wrote:

> > Hi Cyril,

> > > Hi!
> > > > This patchset require to be on the top of:

> > > > [RFC,1/1] API: Allow to use xfs filesystems < 300 MB
> > > > https://lore.kernel.org/ltp/20220817204015.31420-1-pvorel@suse.cz/

> > https://patchwork.ozlabs.org/project/ltp/patch/20220817204015.31420-1-pvorel@suse.cz/

> > > I'm not that sure if we want to run tests for xfs filesystem that is
> > > smaller than minimal size used in production. I bet that we will cover
> > > different codepaths that eventually end up being used in production
> > > that way.

> >         > > LTP community: do we want to depend on this behavior or we
> > just increase from 256MB to 301 MB
> >         > > (either for XFS or for all). It might not be a good idea to
> > test size users are required
> >         > > to use.

> >         > It might *not*? <confused>
> >         Again, I'm sorry, missing another not. I.e. I suppose normal users
> > will not try
> >         to go below 301MB, therefore LTP probably should not do it either.
> > That's why
> >         RFC.

> > @Darrick, others (kernel/LTP maintainers, embedded folks) WDYT?

> > I'm personally OK to use 300 MB (safer to use code paths which are used in
> > production), it's just that for older kernels even with xfs-progs
> > installed it's
> > unnecessary boundary. We could base XFS size on runtime kernel, but unless
> > it's
> > 300 MB a real problem for anybody I would not address it. i.e. is there
> > anybody
> > using XFS on old kernels? (old LTS, whey sooner or later need to use these
> > variables themselves).


> Another compromised way I can think of is to let LTP choose
> 300MB for XFS by default, if the test bed can't provide that size,
> simply go back to try 16MB.  Does this sound acceptable?

I'll try to have look into this, but it'd would be quite special case given we
don't try to detect and recovery mkfs.* failures.

Kind regards,
Petr