You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 534537c
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Bound Windows integrated-GPU cache sizing by available commit (#175)
* eos: accept volumes whose performance sector hint exceeds the logical sector
The direct-I/O check rejected this NVMe with "direct I/O sector size 32768 does
not divide 4096" because it read PhysicalBytesPerSectorForPerformance, which is
a hint, not a constraint. The check now covers LogicalBytesPerSector and
PhysicalBytesPerSectorForAtomicity.
Validation: eos tests report 5 passed; 4096-byte unbuffered reads were measured
completing on this device, and package serving reads through the same path.
Limitations: measured on one NVMe; volumes that genuinely cannot support
4096-byte unbuffered reads still fail the check.
Design-Signed-Off-By: Hermes Agent (deepseek-v4.1-flash); design-review=1c01
Signed-off-by: R4yharris <harray86@me.com>
Signed-off-by: Jason Cook <1637905+original-el8@users.noreply.github.com>
* runtime_package: read the primary container for an empty relative name
A payload entry whose relative name is empty denotes the primary container, but
asset_path joined the empty name onto the entry directory and returned the
directory itself. Loading a package then failed reading the tokenizer.
asset_path now returns the container path when the relative name is empty and
joins otherwise.
Validation: a published package loads and serves; chat completions return with
finish_reason stop. runtime_package tests report 108 passed.
Limitations: the remaining failure in that module is
authenticated_handles_survive_rename_and_replacement, which conflicts with the
immutability guard in eos::windows::direct_read_guard (FILE_SHARE_READ only)
and needs a maintainer decision, not a patch here.
Design-Signed-Off-By: Hermes Agent (deepseek-v4.1-flash); design-review=1c01
Signed-off-by: R4yharris <harray86@me.com>
Signed-off-by: Jason Cook <1637905+original-el8@users.noreply.github.com>
* naming: recognise the RTX Spark N1X PCI device id
platform_from_pci only knew 0x2e12 (DGX Spark) as a GB10 device, so NVML
naming refused the export on an RTX Spark N1X with "NVML reports unsupported
GPU PCI id 0x2e03". Both ids are the same SM121 platform, so GB10_DEVICES now
carries both and the PCI test iterates the table.
Validation: cargo test package::naming reports 6 passed on
x86_64-pc-windows-msvc and on the native aarch64 host. A full-capacity export
named and published its package on this device.
Limitations: no other GB10 ids were available to test; the table is the only
place device identity is decided.
Design-Signed-Off-By: Hermes Agent (deepseek-v4.1-flash); design-review=1c01
Signed-off-by: R4yharris <harray86@me.com>
Signed-off-by: Jason Cook <1637905+original-el8@users.noreply.github.com>
* Bound Windows integrated-GPU cache sizing by available commit
On an RTX Spark under WDDM, every CUDA allocation, including the dedicated
carveout, is charged against the system commit limit: CPU-visible RAM plus
the page files. Cache sizing read only CUDA's free memory, so the memory
reserve did not protect commit. On an RTX Spark N1X with 30.4 GiB of RAM and
a system-managed page file whose maximum is 92 GiB, serving
qwen38-spark-tp1-mtp5 with `[memory] reserve = "8G"` committed 101.7 GiB and
left 0.9 GiB of the 122.4 GiB maximum commit limit; other processes then
failed to create threads.
Integrated-GPU memory observations on Windows are now also bounded by the
commit this process can obtain: GlobalMemoryStatusEx's available commit plus
each page file's remaining growth to its maximum size, read through
NtQuerySystemInformation(SystemPageFileInformationEx). The growth term is
required because Windows grows a system-managed page file on demand; before
loading, the current limit on the same host was 76.4 GiB, too small for the
package's 75.9 GiB of fixed device storage plus other processes' commit.
Cache budgets subtract the reserve, driver margin, and host headroom from
the bounded value as before, so the reserve remains available to other
processes as commit. docs/windows.md describes the limit.
Compatibility: Linux and discrete GPUs are unchanged. On Windows integrated
GPUs, KV capacity shrinks when RAM plus the maximum page-file size cannot
hold the server's footprint, the reserve, and other processes' commit; a
larger page-file maximum or a smaller reserve restores it. Package formats
and execution contracts are unchanged.
Validation on an RTX Spark N1X, Windows 11 ARM64, aarch64-pc-windows-msvc,
serving qwen38-spark-tp1-mtp5 with an 8 GiB reserve,
--embedding-table-resident-scales, and --embedding-table-cache-size 2G:
- Without this commit (b21878b with the RTX Spark serving fixes): 0.9 GiB
of commit available at the maximum limit, 101.7 GiB server commit,
16,576 KV pages of 64 tokens.
- With this commit: 15.5 GiB available at the maximum limit, 91.2 GiB
server commit, 4,160 KV pages (266,240 tokens), 11.3 GiB of the carveout
free. A chat completion finished with stop, and Ctrl-C shut the server
down cleanly.
- helios runtime_package::memory tests 13 passed, including page-file entry
parsing; runtime_package::protection 14 and package::naming 6 passed;
eos tests 5 passed.
Limitations: measured on one RTX Spark N1X with one system-managed page
file. SystemPageFileInformationEx is an ntdll information class that the
Windows SDK does not document. Discrete GPUs under WDDM were not measured.
Ignition's Windows preparation budgets still read available physical RAM.
Linux was not rebuilt; the change compiles only on Windows.
Design-Signed-Off-By: Claude Code (Claude Opus 5.5); design-review=1c01
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Jason Cook <1637905+original-el8@users.noreply.github.com>
---------
Signed-off-by: R4yharris <harray86@me.com>
Signed-off-by: Jason Cook <1637905+original-el8@users.noreply.github.com>
Co-authored-by: R4yharris <harray86@me.com>
Co-authored-by: Jason Cook <1637905+original-el8@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments