Skip to contentSkip to conversation

kmalloc memory leak over time.

DISCUSSION Bagas Sanjaya 3 participants 5 messages Sep 28, 2023 – Oct 5, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I notice a regression report on Bugzilla [1]. Quoting from it:

Quoted 1 line

Since 1st weak of Sept I have been observing memory leak in my system, so after doing a little big of digging I found out that the leak is caused by kmalloc. In Linux 6.5.3 memory leak would increase to nearly 50% of my ram over a period of 6-9 hours. In the Newer Linux 6.5.4 I am yet to observe that much memory leak(Haven't used my laptop for that long till now) but over a period of 3 hours I see 2.2GB reserved and it is not used by any program at all. this is just after 3 hours of usage on Linux 6.5.4.

Later, the reporter (Cc'ed) narrowed down the version range, with memory statistics:

Quoted 8 lines

6.4 works fine I down graded to it before linux 6.5.4 was released. no memory leak.

today i ran my laptop for 6 hours and 40 mins and this memory leak is still happening at same rate.

              total        used        free      shared  buff/cache   available
Mem:            15Gi       7.2Gi       2.8Gi       797Mi       6.4Gi       8.1Gi
Swap:             0B          0B          0B
Total:          15Gi       7.2Gi       2.8Gi

See Bugzilla for the full thread.

Anyway, I'm adding this regression to be tracked by regzbot:

#regzbot introduced: v6.4..v6.5 https://bugzilla.kernel.org/show_bug.cgi?id=217943

Thanks.

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=217943

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#1 lore raw

Hi, the regression started from 6.5.3, i failed to mention it in bugzilla.

Original I made ticket on linux-zen, thinking it was their problem. But it turned out to be problem from normal linux itself.

Quoted 42 lines · Bagas Sanjaya,

Hi,

I notice a regression report on Bugzilla [1]. Quoting from it:

Quoted 1 line

Since 1st weak of Sept I have been observing memory leak in my system,

so after doing a little big of digging I found out that the leak is caused by kmalloc. In Linux 6.5.3 memory leak would increase to nearly 50% of my ram over a period of 6-9 hours. In the Newer Linux 6.5.4 I am yet to observe that much memory leak(Haven't used my laptop for that long till now) but over a period of 3 hours I see 2.2GB reserved and it is not used by any program at all. this is just after 3 hours of usage on Linux 6.5.4.

Later, the reporter (Cc'ed) narrowed down the version range, with memory statistics:

Quoted 1 line

6.4 works fine I down graded to it before linux 6.5.4 was released. no

memory leak.

Quoted 2 lines

today i ran my laptop for 6 hours and 40 mins and this memory leak is

still happening at same rate.

Quoted 2 lines

total used free shared buff/cache

available

Quoted 1 line

Mem: 15Gi 7.2Gi 2.8Gi 797Mi 6.4Gi

8.1Gi

Quoted 2 lines
Swap:             0B          0B          0B
Total:          15Gi       7.2Gi       2.8Gi

See Bugzilla for the full thread.

Anyway, I'm adding this regression to be tracked by regzbot:

#regzbot introduced: v6.4..v6.5
https://bugzilla.kernel.org/show_bug.cgi?id=217943

Thanks.

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=217943

--
An old man doll... just what I always wanted! - Clara

#2 lore raw
Quoted 5 lines · On Thu, Sep 28, 2023 at 03:09:05PM +0530, Victor Fries985 wrote:

Hi, the regression started from 6.5.3, i failed to mention it in bugzilla.

Original I made ticket on linux-zen, thinking it was their problem. But it turned out to be problem from normal linux itself.

Please don't top-post; reply inline with appropriate context instead. This allows readers to easily follow conversation flow.

Anyway, does v6.5 mainline tag (not the stable tree) also have this regression?

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#3 lore raw
In reply to Bagas Sanjaya
Quoted 2 lines · Bagas Sanjaya

I notice a regression report on Bugzilla [1]. Quoting from it:

@mm developers: feel free to ignore this, the user has Nvidia's driver loaded (see bugzilla; I'll ask to reproduce without it).

Ciao, Thorsten

Quoted 24 lines
Quoted 1 line

Since 1st weak of Sept I have been observing memory leak in my system, so after doing a little big of digging I found out that the leak is caused by kmalloc. In Linux 6.5.3 memory leak would increase to nearly 50% of my ram over a period of 6-9 hours. In the Newer Linux 6.5.4 I am yet to observe that much memory leak(Haven't used my laptop for that long till now) but over a period of 3 hours I see 2.2GB reserved and it is not used by any program at all. this is just after 3 hours of usage on Linux 6.5.4.

Later, the reporter (Cc'ed) narrowed down the version range, with memory statistics:

Quoted 8 lines

6.4 works fine I down graded to it before linux 6.5.4 was released. no memory leak.

today i ran my laptop for 6 hours and 40 mins and this memory leak is still happening at same rate.

              total        used        free      shared  buff/cache   available
Mem:            15Gi       7.2Gi       2.8Gi       797Mi       6.4Gi       8.1Gi
Swap:             0B          0B          0B
Total:          15Gi       7.2Gi       2.8Gi

See Bugzilla for the full thread.

Anyway, I'm adding this regression to be tracked by regzbot:

#regzbot introduced: v6.4..v6.5 https://bugzilla.kernel.org/show_bug.cgi?id=217943

Thanks.

[1]: https://bugzilla.kernel.org/show_bug.cgi?id=217943

#4 lore raw
Quoted 7 lines · Linux regression tracking (Thorsten Leemhuis)
Quoted 2 lines · Bagas Sanjaya

I notice a regression report on Bugzilla [1]. Quoting from it:

@mm developers: feel free to ignore this, the user has Nvidia's driver loaded (see bugzilla; I'll ask to reproduce without it).

#regzbot invalid: reinstalling nvidia driver solves the regression

Signature · 1 line
An old man doll... just what I always wanted! - Clara