[PR #64] [MERGED] README: STRATA_GLM_CPU_PIN is Linux-only (on Windows and with one GPU, 0 changes nothing) #311

Closed
opened 2026-10-29 21:24:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mw00/project-maya/pull/64
Author: @needmorevram
Created: 10/9/2026
Status: ✅ Merged
Merged: 10/9/2026
Merged by: @mw00

Base: main ← Head: glm-cpu-pin-windows


📝 Commits (1)

  • 731d1bd README: STRATA_GLM_CPU_PIN is Linux-only - on Windows the engine pins nothing whatever it says, and one GPU is never pinned, so 0 changes nothing there; a two-socket Windows PC whose decode differs between starts (#56) differs in something else: compare the starts' CPU lane log lines

📊 Changes

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

View changed files

📝 README.md (+1 -1)

📄 Description

Summary

Refs #56. This documents, next to #44's notes in the README's tuning table, that STRATA_GLM_CPU_PIN is Linux-only.

  • Default column: "Linux: on with two GPUs or more on a host with two NUMA nodes or more. Windows: never".
  • Description: on Windows the engine pins nothing whatever the setting says, and one GPU is never pinned anywhere, so 0 changes nothing there. A two-socket Windows PC whose decode differs between two starts (#56: 15.1 and 19.4 tok/s) differs in something else between them, and the two starts' glm fast: CUDA<n> CPU lane: log lines are the place to compare.

Why

In src/core/glm_fast_path.cu, every piece of the pin is Linux-only:

  • The automatic default: numa_nodes() reads /sys/devices/system/node/online, so on Windows it finds no nodes and the default is off.
  • The CPUs a part gets: cpu_groups() and part_cpus() read sysfs and sched_getaffinity, so on Windows they return no CPUs.
  • The GPU's node: gpu_numa_node() reads sysfs, so on Windows it returns -1.
  • The pin itself: glmfast::pin_thread() calls pthread_setaffinity_np, and elsewhere it does nothing.

The pin also applies only to a layer split (n_parts_ >= 2), so a single GPU runs unpinned on every OS.

No code changes.


🔄 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/mw00/project-maya/pull/64 **Author:** [@needmorevram](https://github.com/needmorevram) **Created:** 10/9/2026 **Status:** ✅ Merged **Merged:** 10/9/2026 **Merged by:** [@mw00](https://github.com/mw00) **Base:** `main` ← **Head:** `glm-cpu-pin-windows` --- ### 📝 Commits (1) - [`731d1bd`](https://github.com/mw00/project-maya/commit/731d1bd7a53427de28a8ec7a65fc01e76f401116) README: STRATA_GLM_CPU_PIN is Linux-only - on Windows the engine pins nothing whatever it says, and one GPU is never pinned, so 0 changes nothing there; a two-socket Windows PC whose decode differs between starts (#56) differs in something else: compare the starts' CPU lane log lines ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) </details> ### 📄 Description ## Summary Refs #56. This documents, next to #44's notes in the README's tuning table, that `STRATA_GLM_CPU_PIN` is Linux-only. - **Default column:** "Linux: on with two GPUs or more on a host with two NUMA nodes or more. Windows: never". - **Description:** on Windows the engine pins nothing whatever the setting says, and one GPU is never pinned anywhere, so `0` changes nothing there. A two-socket Windows PC whose decode differs between two starts (#56: 15.1 and 19.4 tok/s) differs in something else between them, and the two starts' `glm fast: CUDA<n> CPU lane:` log lines are the place to compare. ## Why In `src/core/glm_fast_path.cu`, every piece of the pin is Linux-only: - **The automatic default:** `numa_nodes()` reads `/sys/devices/system/node/online`, so on Windows it finds no nodes and the default is off. - **The CPUs a part gets:** `cpu_groups()` and `part_cpus()` read sysfs and `sched_getaffinity`, so on Windows they return no CPUs. - **The GPU's node:** `gpu_numa_node()` reads sysfs, so on Windows it returns -1. - **The pin itself:** `glmfast::pin_thread()` calls `pthread_setaffinity_np`, and elsewhere it does nothing. The pin also applies only to a layer split (`n_parts_ >= 2`), so a single GPU runs unpinned on every OS. No code changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:24:04 +07:00
Sign in to join this conversation.
No labels
pull-request
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
mw00/project-maya#311
No description provided.