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

From: Christophe Leroy
Date: Tue Mar 26 2019 - 08:55:50 EST




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


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 ?

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

Christophe