[PATCH] [act] UBUNTU: SAUCE: ubuntu_kernel_selftests: disable memory-hotplug

Po-Hsu Lin po-hsu.lin at canonical.com
Wed Jun 30 06:55:03 UTC 2021


On Thu, Jun 24, 2021 at 4:03 PM Krzysztof Kozlowski
<krzysztof.kozlowski at canonical.com> wrote:
>
> On 23/06/2021 16:32, Paolo Pisati wrote:
> > On Wed, Jun 23, 2021 at 3:24 PM Krzysztof Kozlowski
> > <krzysztof.kozlowski at canonical.com
> > <mailto:krzysztof.kozlowski at canonical.com>> wrote:
> >
> >
> >     Why the filesystem fills up? Journald should have strict limits for its
> >     logs... unless we keep logging it to a file and ignore any journald
> >     MaxUse/KeepFree?
> >
> >
> > /var/log/journald is about 1GB, the rest are kernel.log and syslog - 10G
> > is the default openstack fs size:
> >
> >  $ df -h /
> > Filesystem      Size  Used Avail Use% Mounted on
> > /dev/vda1       9.7G  9.7G     0 100% /
> >
> > $ du -hx --max-depth=1 /
> > 9.6G    /
> > 5.3G    /var
> > 2.2G    /usr
> > 2.1G    /home
> > ...
> >
> > -rw-r----- 1 syslog adm  1948643300 Jun 23 09:01 /var/log/kern.log
> > -rw-r----- 1 syslog adm  1949290433 Jun 23 14:12 /var/log/syslog
>
> It's the old-syslog logging which can eat entire disk without any
> self-control. :)
>
> I understand the problem now and indeed disabling test makes sense.
> However how about still keep it for few selected (always passing)
> systems? This could be specific flavor/cloud with free disk space
> constraint.
>
Hello Paolo,

As Krzysztof mentioned this test can be useful for testing memory
management,if this is just failing for newer release I think we can
disable it on H/I.
This can be achieved by either:
1. Have a series check to determine if we need to run this.
2. Or make a copy of the control file, name it as
control.ubuntu.bionic / control.ubuntu.focal and etc to host different
test plans in the ubuntu_kernel_selftest directory and the mem-hp test
can be removed from the control file, this control file will be used
by other releases.

(off-topic, we might need to review our ubuntu_kernel_selftests test
plan as there are more tests have been added to the kselftest
directory)
Thoughts?

Thanks
Sam
> >
> > $ du -h --max-depth=1 /var/log/journal
> > 970M    journal
> >
> > $ tail -n10 /var/log/syslog
> > Jun 23 09:00:21 ppisati-ppc64el-large kernel: [ 1293.949015] flags:
> > 0x3ffff80000202a(referenced|dirty|active|private)
> > Jun 23 09:00:21 ppisati-ppc64el-large kernel: [ 1293.949018] raw:
> > 003ffff80000202a c00000000d657960 c00000000d657960 c00000000bb66068
> > Jun 23 09:00:21 ppisati-ppc64el-large kernel: [ 1293.949020] raw:
> > 0000000000008000 c00000001653c5d8 00000003ffffffff c00000000dc43000
> > Jun 23 09:00:21 ppisati-ppc64el-large kernel: [ 1293.949022] page dumped
> > because: migration failure
> > Jun 23 09:00:21 ppisati-ppc64el-large kernel: [ 1293.949023] pages's
> > memcg:c00000000dc43000
> > Jun 23 09:00:21 ppisati-ppc64el-large kernel: [ 1293.949057] migrating
> > pfn 179a failed ret:1
> > Jun 23 09:00:21 ppisati-ppc64el-large kernel: [ 1293.949059]
> > page:000000000f1e9b6f refcount:3 mapcount:0 mapping:00000000652d2e2f
> > index:0x8000 pfn:0x179a
> > Jun 23 09:00:21 ppisati-ppc64el-large kernel: [ 1293.949061]
> > aops:def_blk_aops ino:fc00001
> > Jun 23 09:00:21 ppisati-ppc64el-large kernel: [ 1293.949063] flags:
> > 0x3ffff80000202a(referenced|dirty|active|private)
> > Jun 23 09:00:21 ppisati-ppc64el-large kernel: [ 1293.949066] raw:
> > 003ffff80000202a c00000000d657960 c00000000d657960 c00000000bb66068
> >
>
>
> Best regards,
> Krzysztof
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team



More information about the kernel-team mailing list