linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Fwd: kmalloc memory leak over time.
@ 2023-09-28  8:40 Bagas Sanjaya
  2023-09-28  9:39 ` Victor Fries985
  2023-09-28 12:55 ` Fwd: " Linux regression tracking (Thorsten Leemhuis)
  0 siblings, 2 replies; 5+ messages in thread
From: Bagas Sanjaya @ 2023-09-28  8:40 UTC (permalink / raw)
  To: Kees Cook, Daniel Micay, Nick Desaulniers, Andrew Morton, freeze0985
  Cc: Linux Kernel Mailing List, Linux Regressions,
	Linux Memory Management List

Hi,

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

> 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:

> 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

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kmalloc memory leak over time.
  2023-09-28  8:40 Fwd: kmalloc memory leak over time Bagas Sanjaya
@ 2023-09-28  9:39 ` Victor Fries985
  2023-09-28 11:01   ` Bagas Sanjaya
  2023-09-28 12:55 ` Fwd: " Linux regression tracking (Thorsten Leemhuis)
  1 sibling, 1 reply; 5+ messages in thread
From: Victor Fries985 @ 2023-09-28  9:39 UTC (permalink / raw)
  To: Bagas Sanjaya
  Cc: Kees Cook, Daniel Micay, Nick Desaulniers, Andrew Morton,
	Linux Kernel Mailing List, Linux Regressions,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 1775 bytes --]

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.

On Thu, 28 Sept, 2023, 2:10 pm Bagas Sanjaya, <bagasdotme@gmail.com> wrote:

> Hi,
>
> I notice a regression report on Bugzilla [1]. Quoting from it:
>
> > 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:
>
> > 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
>
> --
> An old man doll... just what I always wanted! - Clara
>

[-- Attachment #2: Type: text/html, Size: 2502 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: kmalloc memory leak over time.
  2023-09-28  9:39 ` Victor Fries985
@ 2023-09-28 11:01   ` Bagas Sanjaya
  0 siblings, 0 replies; 5+ messages in thread
From: Bagas Sanjaya @ 2023-09-28 11:01 UTC (permalink / raw)
  To: Victor Fries985
  Cc: Kees Cook, Daniel Micay, Nick Desaulniers, Andrew Morton,
	Linux Kernel Mailing List, Linux Regressions,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

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?

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fwd: kmalloc memory leak over time.
  2023-09-28  8:40 Fwd: kmalloc memory leak over time Bagas Sanjaya
  2023-09-28  9:39 ` Victor Fries985
@ 2023-09-28 12:55 ` Linux regression tracking (Thorsten Leemhuis)
  2023-10-05 14:14   ` Bagas Sanjaya
  1 sibling, 1 reply; 5+ messages in thread
From: Linux regression tracking (Thorsten Leemhuis) @ 2023-09-28 12:55 UTC (permalink / raw)
  To: Bagas Sanjaya, Kees Cook, Daniel Micay, Nick Desaulniers,
	Andrew Morton, freeze0985
  Cc: Linux Kernel Mailing List, Linux Regressions,
	Linux Memory Management List

On 28.09.23 10:40, Bagas Sanjaya wrote:
> 
> 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

>> 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:
> 
>> 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
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Fwd: kmalloc memory leak over time.
  2023-09-28 12:55 ` Fwd: " Linux regression tracking (Thorsten Leemhuis)
@ 2023-10-05 14:14   ` Bagas Sanjaya
  0 siblings, 0 replies; 5+ messages in thread
From: Bagas Sanjaya @ 2023-10-05 14:14 UTC (permalink / raw)
  To: Linux regressions mailing list, Kees Cook, Daniel Micay,
	Nick Desaulniers, Andrew Morton, freeze0985
  Cc: Linux Kernel Mailing List, Linux Memory Management List

On 28/09/2023 19:55, Linux regression tracking (Thorsten Leemhuis) wrote:
> On 28.09.23 10:40, Bagas Sanjaya wrote:
>>
>> 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

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-10-05 14:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-28  8:40 Fwd: kmalloc memory leak over time Bagas Sanjaya
2023-09-28  9:39 ` Victor Fries985
2023-09-28 11:01   ` Bagas Sanjaya
2023-09-28 12:55 ` Fwd: " Linux regression tracking (Thorsten Leemhuis)
2023-10-05 14:14   ` Bagas Sanjaya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox