mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2412] Arc B390 (Panther Lake iGPU, xe): SYCL port runs; long outputs degenerate; TTM page pool hides ~30 GB from MemAvailable #976
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#976
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hansy2 on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2412
Summary
The experimental SYCL port runs on the Arc B390 iGPU (Panther Lake,
xe) on Linux without code changes. This consolidates an earlier comment on #515 (now removed) and follow-up tests. It covers short-answer performance, a reproducible problem with long outputs degenerating, and a memory finding on shared-memory iGPUs: the TTM page pool hides up to half the RAM fromMemAvailable. The last point relates to theMemAvailablefinding in #2282 (Meteor Lake iGPU).System
8086:b080, driverxe), 61 GiB LPDDR5X shared with the GPUlibze-intel-gpu1/intel-opencl-icd26.05.37020.3296b59d2(engine 0.1.44.1)mtp_fetch.py/mtp_pack.py/mtp_rt.pyBuild without Docker or root:
dpcpp_linux-64=2026.1 mkl-devel-dpcpp=2026.1 level-zero-devel cmake ninjacmake -S sycl -B build-sycl -G Ninja -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DSTRATA_SYCL_PARITY=OFFsycl-ls:[level_zero:gpu][level_zero:0] Intel(R) oneAPI Unified Runtime over Level-Zero V2, Intel(R) Graphics [0xb080] 30.0.4 [1.14.37020]Command used (
--expert-cachegiven explicitly, see section 3):1. Performance: works, short answers are correct
--mtp(suffix drafts only), first start incl. JIT--mtp, short code answer (256 tok)--mtp, 1,966-token code-review prompt (300 tok)--mtp, long generation (7,000-8,000 tok)is_primefunction, and a correct explanation of a 2K-token Python file. The German question got a partly English answer.2. Long outputs degenerate (3 of 3 runs)
Task: a single-file HTML page (668-token prompt, German, full prompt below),
--max-new 7000-8000,--max-context 12288.<!DOCTYPE html>/ "I'm stuck in a loop. Let me write it." repeated ~800x from the start<|im_end|>was ever produced.The prompt (German)
Wrapped in
<|im_start|>user\n…<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n(thinking off).(The prompt's sentence about the memory pool reflects what I believed at the time. Section 3 is the corrected finding.)
3. Shared-memory iGPU: the TTM page pool hides memory from
MemAvailableWhat happens: after the engine exits, ~30 GB stay "used". No process holds an xe fd, and the memory does not count in
MemAvailable. The cause is the kernel's TTM page pool, which keeps the freed write-combined pages:/sys/kernel/debug/ttm/page_poolshowed 7,822,251 pages (29.8 GiB), almost all order-10 WC pages./sys/module/ttm/parameters/page_pool_size, defaults to half the RAM (8,033,006 pages).Why it matters for Strata:
--expert-cache 12288became 11,361 slots once, and 223 slots another time. My memory guard then killed that run at 5 GBMemAvailable. This is the sameMemAvailabledependency described in #2282./proc/meminfoalso showedGPUActive: 153183560 kB(more than the RAM) andGPUReclaim: 0. That looks like a kernel accounting bug, not Strata's.Workaround (it worked here, the memory came back without swapping):
Suggestion for the iGPU memory planning: setup and the engine could read
/sys/module/ttm/parameters/page_pool_sizeand warn when it is large on an integrated GPU. They could also count the pool as reclaimable, since a large pool makesMemAvailabletoo low right after a previous run.4. Safety note for others testing on an iGPU
On
xe, a GPU allocation past what is free can livelock the machine (INTEL.md describes this for the B70). On an iGPU all of it is system RAM, so I ran every test with a small watchdog. It pollsMemAvailableevery 0.2 s and sends SIGKILL tostratabelow 6 GB. It fired once (see 3.), and the machine stayed fine.Happy to run more tests on the B390 (other flags,
--serve, a gate, a patched build) if useful.@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.