Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kernel memory not released #613

Open
2 tasks done
variantf opened this issue Mar 18, 2024 · 0 comments
Open
2 tasks done

kernel memory not released #613

variantf opened this issue Mar 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@variantf
Copy link

NVIDIA Open GPU Kernel Modules Version

535.161.07

Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.

  • I confirm that this does not happen with the proprietary driver package.

Operating System and Version

Debian GNU/Linux 12 (bookworm)

Kernel Release

Linux kv-research-1 6.1.76 #8 SMP PREEMPT_DYNAMIC Fri Mar 15 01:20:32 PDT 2024 x86_64 GNU/Linux

Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.

  • I am running on a stable kernel release.

Hardware: GPU

NVIDIA GeForce RTX 4090

Describe the bug

leak.zip
please see the reproduce code attached.

I built the kernel myself with CONFIG_DEBUG_KMEMLEAK=y

the reproduce code is simply cudaHostAlloc a large area of memory and copy some random data into GPU memory.

after the program finishes, do
echo 'scan' > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak

and you will got some leak info. please see attached file.

sometimes, maybe need some time. e.g 2-3min to get the kmemleak info after program finished which I don't know why.
kmemleak.log

To Reproduce

leak.zip

please see the reproduce code

Bug Incidence

Always

nvidia-bug-report.log.gz

nvidia-bug-report.log.gz

More Info

No response

@variantf variantf added the bug Something isn't working label Mar 18, 2024
@variantf variantf changed the title kernel memory release kernel memory not released Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant