Re: Reading `/sys/kernel/debug/kmemleak` takes 3 s and content not shown

From: Paul Menzel
Date: Tue Mar 26 2019 - 09:17:06 EST


Dear Christophe,


On 26.03.19 13:55, Christophe Leroy wrote:

Le 26/03/2019 Ã 13:49, Paul Menzel a ÃcritÂ:

On 19.02.19 10:44, Paul Menzel wrote:

On a the IBM S822LC (8335-GTA) with Ubuntu 18.10, and Linux 5.0-rc5+
accessing `/sys/kernel/debug/kmemleak` takes a long time. According to
strace it takes three seconds.

$ dmesg | grep leak
[ÂÂÂ 4.407957] kmemleak: Kernel memory leak detector initialized
[ÂÂÂ 4.407959] kmemleak: Automatic memory scanning thread started
[745989.625624] kmemleak: 1 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
[1002619.951902] kmemleak: 1 new suspected memory leaks (see /sys/kernel/debug/kmemleak)
```

Unfortunately, the leaks supposedly stored in that file are not shown
either.

The problem is still present with Linux 5.0. Do you have an idea, how to fix this?

Have you identified a previous version that works properly?

It seems to have worked with Linux 4.18-rc4+ [1].

If so, have you been able to bisect the problem?

No, sorry, I have not. I do not have resources for this.


Kind regards,

Paul


[1]: https://lists.ozlabs.org/pipermail/linuxppc-dev/2018-July/175658.html