From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] ❌ FAIL: Waiting for review: Test report for kernel 5.6.14-dbf782f.cki (stable-queue)
Date: Tue, 26 May 2020 02:11:59 -0400 (EDT) [thread overview]
Message-ID: <218996157.13586289.1590473519056.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <CAEemH2dCnkczxB2jWrGprRGQ=F7PB=o53MmUNDrcfhB34z4P9A@mail.gmail.com>
----- Original Message -----
> On Mon, May 25, 2020 at 10:15 PM Jan Stancek <jstancek@redhat.com> wrote:
>
> >
> > ...
>
>
> > > > > s390x:
> > > > > ? LTP
> > > >
> > > > @Li, any thoughts on hugetlb TBROKs here? I thought you said
> > > > 'request_hugepages'
> > > > was not supposed to be hard test requirement.
> > > >
> > >
> > > The hugemmap05.c doesn't goes the new 'request_hugepages' way in the huge
> > > page reserving. it tries to reserve 128 hpages and overcommits 192 hpages
> > > in hard coding, and probably touch the memory available uplimit on s390x.
> > > static long size = 128, length = 384;
> > > ...
> > > addr = SAFE_MMAP(ADDR, (length / 2 * hugepagesize), PROTECTION, FLAGS,
> > fd,
> > > 0);
> > >
> > > We could convert this to use the new request_hugepages API and do the
> > > requested number of huge page checking at setup() to make sure the system
> > > only running in a reasonable situation.
> >
> > Sorry, I didn't make it clear I was talking about hugemmap06. The patch is
> > OK,
> > since it makes both use request_hugepages API. But should we also do
> > something
> > with this TBROK?
> >
>
> It seems unkind and useless to exit with TBROK when failed to reserve with
> 80% max_hpages again. I'm thinking if it could be directly replaced by
> TCONF to skip the whole test?
I think it can fail even when request is less than 80%, when memory is too fragmented.
I agree with TCONF, but I'd keep numbers (val, tst_hugepages) in output, so we know
how close it was to the requested number.
>
> --- a/lib/tst_hugepage.c
> +++ b/lib/tst_hugepage.c
> @@ -43,7 +43,7 @@ unsigned long tst_request_hugepages(unsigned long hpages)
> SAFE_FILE_PRINTF(PATH_NR_HPAGES, "%lu", tst_hugepages);
> SAFE_FILE_SCANF(PATH_NR_HPAGES, "%lu", &val);
> if (val != tst_hugepages)
> - tst_brk(TBROK, "nr_hugepages = %lu, but expect %lu", val,
> tst_hugepages);
> + tst_brk(TCONF, "Not enough hugepages for testing.");
>
> tst_res(TINFO, "%lu hugepage(s) reserved", tst_hugepages);
> out:
>
>
> >
> > tst_hugepage.c:46: BROK: nr_hugepages = 171, but expect 255
> >
> >
>
> --
> Regards,
> Li Wang
>
prev parent reply other threads:[~2020-05-26 6:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cki.5639E3C778.X5N9P4R7GB@redhat.com>
[not found] ` <2102236949.13452256.1590328678642.JavaMail.zimbra@redhat.com>
[not found] ` <CAEemH2dNB3Ktt5LeBLxMKekv7-gj4d=EkQouYmO1SgbyzjLEaw@mail.gmail.com>
[not found] ` <1440024610.13546915.1590416134343.JavaMail.zimbra@redhat.com>
2020-05-26 3:22 ` [LTP] ❌ FAIL: Waiting for review: Test report for kernel 5.6.14-dbf782f.cki (stable-queue) Li Wang
2020-05-26 6:11 ` Jan Stancek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=218996157.13586289.1590473519056.JavaMail.zimbra@redhat.com \
--to=jstancek@redhat.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox