[PR #2337] [CLOSED] sycl serve: STRATA_SYCL_MEMLOCK=0 leaves out --ulimit memlock=-1 (unprivileged LXC, rootless Docker) #3989

Closed
opened 2026-11-07 15:32:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2337
Author: @leadgtr7
Created: 10/13/2026
Status: ❌ Closed

Base: main ← Head: sycl-serve-memlock-opt-out


📝 Commits (1)

  • 7065c1b sycl serve: STRATA_SYCL_MEMLOCK=0 leaves out --ulimit memlock=-1 (unprivileged LXC, rootless Docker)

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 sycl/serve/strata-sycl.sh (+6 -1)

📄 Description

What it changes: sycl/serve/strata-sycl.sh keeps --ulimit memlock=-1 by default; STRATA_SYCL_MEMLOCK=0 leaves it out. One header line documents it.

Why: since 0.1.42 (e02bd99) the launcher always passes --ulimit memlock=-1. Docker inside an unprivileged LXC container (and, as far as we know, rootless Docker) may not raise that limit, and docker run then fails before the engine starts:

error setting rlimit type 8: operation not permitted

The server only sees the engine exit at start, and there is no setting to avoid it short of editing the launcher. On our host the engine ran without the flag up to 0.1.41 and runs on 0.1.44 with this setting (below).

What it leaves alone: the default (--ulimit memlock=-1 is still passed; the docker run arguments are identical to main, checked with a docker stub that prints them), and everything else in the launcher. CUDA/HIP untouched.

How it was checked:

  • The docker stub: default identical to main; with STRATA_SYCL_MEMLOCK=0 the argument list has no --ulimit.
  • On one Arc Pro B65 in an unprivileged LXC container (xe driver), with upstream's launcher every engine start failed with the rlimit error above. With STRATA_SYCL_MEMLOCK=0 a v0.1.44 engine started (docker inspect: no ulimits) and ran Swift 1.5 IQ3_S: pinned host mirror, KV streaming and a 61,052-token prompt worked, 36.8 tok/s decode.

Not tested: rootless Docker and Podman themselves (the LXC case is the one we hit), and whether pinned-memory speed differs with the flag on a host that accepts it.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2337 **Author:** [@leadgtr7](https://github.com/leadgtr7) **Created:** 10/13/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `sycl-serve-memlock-opt-out` --- ### 📝 Commits (1) - [`7065c1b`](https://github.com/Niko1221/Strata/commit/7065c1b8659325769a444d9f1e78fe41d7f4693c) sycl serve: STRATA_SYCL_MEMLOCK=0 leaves out --ulimit memlock=-1 (unprivileged LXC, rootless Docker) ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `sycl/serve/strata-sycl.sh` (+6 -1) </details> ### 📄 Description **What it changes:** `sycl/serve/strata-sycl.sh` keeps `--ulimit memlock=-1` by default; `STRATA_SYCL_MEMLOCK=0` leaves it out. One header line documents it. **Why:** since 0.1.42 (e02bd99) the launcher always passes `--ulimit memlock=-1`. Docker inside an unprivileged LXC container (and, as far as we know, rootless Docker) may not raise that limit, and `docker run` then fails before the engine starts: error setting rlimit type 8: operation not permitted The server only sees the engine exit at start, and there is no setting to avoid it short of editing the launcher. On our host the engine ran without the flag up to 0.1.41 and runs on 0.1.44 with this setting (below). **What it leaves alone:** the default (`--ulimit memlock=-1` is still passed; the `docker run` arguments are identical to main, checked with a `docker` stub that prints them), and everything else in the launcher. CUDA/HIP untouched. **How it was checked:** - The `docker` stub: default identical to main; with `STRATA_SYCL_MEMLOCK=0` the argument list has no `--ulimit`. - On one Arc Pro B65 in an unprivileged LXC container (xe driver), with upstream's launcher every engine start failed with the rlimit error above. With `STRATA_SYCL_MEMLOCK=0` a v0.1.44 engine started (`docker inspect`: no ulimits) and ran Swift 1.5 IQ3_S: pinned host mirror, KV streaming and a 61,052-token prompt worked, 36.8 tok/s decode. **Not tested:** rootless Docker and Podman themselves (the LXC case is the one we hit), and whether pinned-memory speed differs with the flag on a host that accepts it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:32:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3989
No description provided.