[GSD-13675] Lunar Lake: large Level Zero allocation leaks system memory after process exit
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- cpp, linux, ubuntu
- Lĩnh vực
- backend, computer-graphics, operating-systems
Hướng nghiên cứu
Start by compiling and running the attached ze-memory-lifetime-repro.c with the 21,022 MiB allocation, then compare it with the 256 MiB case using free -h before and after cleanup. Trace the Level Zero allocation, zeMemFree(), context destruction, and process-exit paths; the issue is done when the large allocation no longer leaves system memory unavailable after exit.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Pre-submission Checklist
- I am using the latest GPU driver version published by
ppa:kobuk-team/intel-graphicsfor Ubuntu 26.04 - I searched for similar issues and found none
System Information
GPU Hardware
Intel Core Ultra 7 258V / Lunar Lake Arc 140V (8086:64a0, rev 04)
DRI Devices Information
0 crw-rw----+ 1 root video 226, 1 /dev/dri/card1
0 crw-rw----+ 1 root render 226, 128 /dev/dri/renderD128
pci-0000:00:02.0-card -> ../card1
pci-0000:00:02.0-render -> ../renderD128
GPU Detailed Information (lspci output)
00:02.0 VGA compatible controller: Intel Corporation Lunar Lake [Intel Arc Graphics 130V / 140V] (rev 04)
Subsystem: Lenovo Device 233d
Region 0: Memory at 204e000000 (64-bit, prefetchable) [size=16M]
Region 2: Memory at 2000000000 (64-bit, prefetchable) [size=256M]
Kernel driver in use: xe
Kernel modules: xe
Driver Version
libze-intel-gpu1 26.31.39395.14-1~26.04~ppa1
Installed GPU Driver Packages
intel-ocloc 26.31.39395.14-1~26.04~ppa1
intel-opencl-icd 26.31.39395.14-1~26.04~ppa1
libigc2 2.40.13+ds1-1~26.04
libigdfcl2 2.40.13+ds1-1~26.04
libigdgmm12 22.10.1-1~26.04~ppa1
libze-dev 1.32.0-1~26.04~ppa1
libze-intel-gpu1 26.31.39395.14-1~26.04~ppa1
libze1 1.32.0-1~26.04~ppa1
Driver Installation Details
Installed from ppa:kobuk-team/intel-graphics.
Linux Distribution
Other: Ubuntu 26.04.1 LTS
Kernel Version & Boot Parameters
Kernel: 7.0.0-34-generic
BOOT_IMAGE=/vmlinuz-7.0.0-34-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro quiet splash mitigations=off isolcpus=managed_irq,0-3
xe 4415488 26
gpu_sched 69632 1 xe
drm_gpuvm 57344 1 xe
drm_buddy 28672 1 xe
drm_ttm_helper 20480 1 xe
ttm 135168 2 drm_ttm_helper,xe
drm_exec 12288 2 drm_gpuvm,xe
drm_suballoc_helper 24576 1 xe
Issue Description
Actual Behavior
A large Level Zero device allocation leaves approximately 13.6 GiB of system memory unavailable after zeMemFree() returns success, the Level Zero context is destroyed, and the process exits. The memory is recovered only by rebooting.
With libze-intel-gpu1 26.31.39395.14, MemAvailable fell from 26,066,300 kB to 11,836,096 kB and remained there after approximately 50 seconds. The reproducer had exited and no xe fault or reset was logged.
A 256 MiB allocation using the same reproducer frees normally.
Expected Behavior
The backing system memory should become reclaimable after zeMemFree(), context destruction, and process exit.
Reproduction Rate
Always reproduces — 100%
Steps to Reproduce
Using the attached reproducer:
free -h
./ze-memory-lifetime-repro 21022
sleep 20
free -h
The program allocates 21,022 MiB with ZE_RELAXED_ALLOCATION_LIMITS_EXP_FLAG_MAX_SIZE, touches the allocation from the GPU, synchronizes, frees it, destroys the context, and exits normally.
Diagnostics & Logs
System Logs / dmesg Output
No GPU fault or reset was logged during reproduction.
Reproducer Information
Source Code / Reproducer
While this issue was originally encountered using a SYCL build of llama.cpp, the reproducer above relies only on raw Level Zero.
Command Line / Application Details
./ze-memory-lifetime-repro 21022
A 256 MiB control run does not leak:
./ze-memory-lifetime-repro 256
- Ngôn ngữ chính
- C++
- Star
- 1.5k
- Fork
- 303
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của intel/compute-runtime
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
intel/compute-runtime#943 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
intel/compute-runtime#1024 ·
-
【资源分享】Gemini Pro 稳定号(高质量已过验证反重力)Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 1/100
intel/compute-runtime#1022 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
intel/compute-runtime#1019 ·
-
OS: Linux Type: Bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 34/100
intel/compute-runtime#1017 ·
Tất cả issue của intel/compute-runtime
Issue tương tự
-
agent:Windows bug code-review LOW testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Cleanup] Include the public header in work_split.cppCó thể đã có người làm @blozano-tt đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
tenstorrent/tt-metal#60850 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Build: the CUDA backend fails without cuDNN instead of skipping the cuDNN shim (as the cuDF shim does)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
beehive-lab/TornadoVM#1248 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
SimVascular/svZeroDSolver#253 ·
-
bug Filter
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
BlueQuartzSoftware/simplnx#1825 ·
Maintainer thường phản hồi trong vòng 3 ngày