[GH-ISSUE #3830] [Benchmark] standard-run: 1x RTX 3090 Ti / Qwen3.8-Flash-Next / IQ3_S (With Memory Optimization) #1622

Closed
opened 2026-11-04 01:52:42 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Huwmungous on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3830

Community benchmark on NVIDIA GeForce RTX 3090 Ti

Measured on 2026-10-23 with tools/strata_bench.py (suite 1, 3 runs per test, medians with ranges). Speeds are the engine's own timings; first-token times are measured by the client over HTTP. Speed only: no correctness check was run.

Hardware and software

  • GPU and VRAM: NVIDIA GeForce RTX 3090 Ti, 24 GiB VRAM
  • CPU: AMD Ryzen 9 7900X 12-Core Processor (12 cores, 24 threads); installed RAM: 124.9 GiB; storage: not measured
  • OS: Linux 7.2.10-200.fc44.x86_64; GPU driver: 615.71.09; CUDA: not read
  • : project 0.1.48, commit 5c8dd322; engine 0.1.43.1
  • Background workloads and power limits: not recorded

Model and configuration

  • Model and quantization: qwen3.8-flash-next-iq3_s
  • Context: 131072 tokens; parallel slots: 1
  • Settings: the install's own configuration, unchanged; thinking off for the suite; temperature 0
<user> --pack iq3_s --native Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --ple-gguf Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf --expert-profile expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp rt --max-context 131072 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 700

Method

Run by python tools/strata_bench.py against the HTTP API of a server (already running); model loading is not timed. One warm-up chat and a 1K prompt are discarded first. Every prompt starts with a unique tag, so the conversation cache cannot help the fresh-prompt tests.

  • short chat: the three questions of tools/ab_engine.py, up to 100 new tokens, 3 runs
  • 4K / 16K prompts: generated word lists sized by a calibration request, 24 new tokens, 3 fresh prompts each
  • agent session: system prompt and four tools, then 5 turns that each add about 1500 words of a project file and continue from the model's own earlier answers (the way agent clients resend a conversation), 64 new tokens per turn, 3 sessions; the cache numbers come from the answer's usage (cached_tokens) and timings (prompt_n)
  • concurrency (when run): N requests sent at the same moment, total tokens over the wall time of the burst, latency over all requests

Results

Configuration Actual prompt tokens Reused tokens Generated tokens Runs Prompt tok/s median and range Decode tok/s median and range TTFT seconds median and range
short chat 46 (43-51) 0 100 (100-100) 9 not measured 95.5 (72.1-117.3) 0.35 (0.28-0.39)
4K prompt, fresh 4019 (4019-4019) 0 (0-0) 24 cap 3 2351.8 (2048.9-2363.0) not measured 1.73 (1.72-1.98)
16K prompt, fresh 16058 (16058-16058) 0 (0-0) 24 cap 3 2863.4 (2773.4-2865.7) not measured 5.63 (5.62-5.81)
agent session, follow-up turns 14580 (14564-14596) at the last turn see below up to 64 3 see below 112.4 (92.7-136.5) 1.87 (1.65-2.30)

Ranges are the lowest and highest of the runs; Runs counts requests that returned a token.

Agent session (conversation cache)

Cache hit over the follow-up turns: 69.6 % (69.4-69.6); earlier-turn tokens read again per session: 3 (3-74) (earlier turns that the cache did not hold; the 13729 (13729-13730) new tokens of the files are read once); first turn (nothing cached) first token: 0.99 s (0.97-0.99).

Turn (run 1) Prompt tokens Reused Read Prompt tok/s First token (s) Decode tok/s
0 609 0 609 635.2 0.973 77.8
1 4091 623 3468 1517.8 2.304 92.9
2 5624 4084 1540 831.6 1.869 112.4
3 9057 5687 3370 1515.4 2.241 102.8
4 11817 9109 2708 1297.7 2.104 117.1
5 14580 11863 2717 1355.5 2.022 107.9

Per-request data: results.json. Engine log lines from the start: engine-log-excerpt.txt (when this run started the server).

Correctness and limitations

Not measured: this is a speed suite. The conversation uses the model's own replies, so token counts differ a little between runs. Machine details come from the server, nvidia-smi/rocm-smi and the OS; background load and power limits are not recorded. Total time of the suite: 79 s.


⚙️ Performance Tuning & Kernel Mitigations Applied

During structural testing on this machine, we identified a critical OS performance bottleneck where text generation dropped progressively down to ~110 tokens/sec over extended contexts. The following manual kernel adjustments were implemented to stabilize the inference framework:

1. The Virtual Memory & zram Choke Problem

  • Discovery: A direct telemetry readout revealed that Fedora 44's default virtual memory paging strategy had completely exhausted the system's 8 GiB zram0 device (99% swap utilisation).
  • The BottleNeck: When Strata needed to rapidly stream uncached MoE experts across the PCIe bus from system RAM, the Linux scheduler forced the host CPU to constantly pause, allocate pages, and uncompress old background processes out of the saturated zram block, degrading expert handoff timings.

2. Manual Swap Interventions Executed

To completely bypass this latency wall, we ran the following system overrides to flush the memory landscape before launching the latest engine update:

# Force the Linux kernel to prioritize physical memory pools over swap allocation
sudo sysctl vm.swappiness=10

# Evict all choked background pages from zram and cycle the memory stack cleanly
sudo swapoff -a && sudo swapon -a

3. Strata Service Resource Hardening

We bound the memory footprint securely within the local systemd daemon layer to guarantee that the RAM blocks dedicated to Strata's expert layers can never be fragmented or swapped away by the OS again:

# Applied via systemctl edit strata.service
[Service]
Environment=MALLOC_ARENA_MAX=4
LimitMEMLOCK=infinity

💡 Multi-GPU Architecture Strategy

  • GPU Hardware Constraints: The host workstation operates an RTX 3090 Ti and an standard RTX 3090 on a Gigabyte B650 motherboard. Because of B650 layout designs, the primary slot runs at full x16 Gen 4, while the auxiliary slot is electrically hardwired to a throttled PCIe x1 link width.
  • Isolation Mapping: Running a unified model split across both cards caused catastrophic token velocity drops. Performance was fully reclaimed by mapping Strata exclusively to GPU 0 (the 3090 Ti) via CUDA_VISIBLE_DEVICES=0, while dedicating the restricted GPU 1 entirely to isolated background batches on Ollama.

Result: Prompt prefill velocities stabilized completely, and text decode rates achieved a verified 130.4 tokens/second peak baseline under high dense context loads.

Originally created by @Huwmungous on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3830 # Community benchmark on NVIDIA GeForce RTX 3090 Ti Measured on 2026-10-23 with `tools/strata_bench.py` (suite 1, 3 runs per test, medians with ranges). Speeds are the engine's own timings; first-token times are measured by the client over HTTP. Speed only: no correctness check was run. ## Hardware and software - GPU and VRAM: NVIDIA GeForce RTX 3090 Ti, 24 GiB VRAM - CPU: AMD Ryzen 9 7900X 12-Core Processor (12 cores, 24 threads); installed RAM: 124.9 GiB; storage: not measured - OS: Linux 7.2.10-200.fc44.x86_64; GPU driver: 615.71.09; CUDA: not read - <user>: project 0.1.48, commit 5c8dd322; engine 0.1.43.1 - Background workloads and power limits: not recorded ## Model and configuration - Model and quantization: qwen3.8-flash-next-iq3_s - Context: 131072 tokens; parallel slots: 1 - Settings: the install's own configuration, unchanged; thinking off for the suite; temperature 0 ```text <user> --pack iq3_s --native Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --ple-gguf Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf --expert-profile expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp rt --max-context 131072 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 700 ``` ## Method Run by `python tools/strata_bench.py` against the HTTP API of a <user> server (already running); model loading is not timed. One warm-up chat and a 1K prompt are discarded first. Every prompt starts with a unique tag, so the conversation cache cannot help the fresh-prompt tests. - short chat: the three questions of `tools/ab_engine.py`, up to 100 new tokens, 3 runs - 4K / 16K prompts: generated word lists sized by a calibration request, 24 new tokens, 3 fresh prompts each - agent session: system prompt and four tools, then 5 turns that each add about 1500 words of a project file and continue from the model's own earlier answers (the way agent clients resend a conversation), 64 new tokens per turn, 3 sessions; the cache numbers come from the answer's usage (`cached_tokens`) and timings (`prompt_n`) - concurrency (when run): N requests sent at the same moment, total tokens over the wall time of the burst, latency over all requests ## Results | Configuration | Actual prompt tokens | Reused tokens | Generated tokens | Runs | Prompt tok/s median and range | Decode tok/s median and range | TTFT seconds median and range | | --- | ---: | ---: | ---: | ---: | --- | --- | --- | | short chat | 46 (43-51) | 0 | 100 (100-100) | 9 | not measured | 95.5 (72.1-117.3) | 0.35 (0.28-0.39) | | 4K prompt, fresh | 4019 (4019-4019) | 0 (0-0) | 24 cap | 3 | 2351.8 (2048.9-2363.0) | not measured | 1.73 (1.72-1.98) | | 16K prompt, fresh | 16058 (16058-16058) | 0 (0-0) | 24 cap | 3 | 2863.4 (2773.4-2865.7) | not measured | 5.63 (5.62-5.81) | | agent session, follow-up turns | 14580 (14564-14596) at the last turn | see below | up to 64 | 3 | see below | 112.4 (92.7-136.5) | 1.87 (1.65-2.30) | Ranges are the lowest and highest of the runs; `Runs` counts requests that returned a token. ### Agent session (conversation cache) Cache hit over the follow-up turns: 69.6 % (69.4-69.6); earlier-turn tokens read again per session: 3 (3-74) (earlier turns that the cache did not hold; the 13729 (13729-13730) new tokens of the files are read once); first turn (nothing cached) first token: 0.99 s (0.97-0.99). | Turn (run 1) | Prompt tokens | Reused | Read | Prompt tok/s | First token (s) | Decode tok/s | | ---: | ---: | ---: | ---: | ---: | ---: | ---: | | 0 | 609 | 0 | 609 | 635.2 | 0.973 | 77.8 | | 1 | 4091 | 623 | 3468 | 1517.8 | 2.304 | 92.9 | | 2 | 5624 | 4084 | 1540 | 831.6 | 1.869 | 112.4 | | 3 | 9057 | 5687 | 3370 | 1515.4 | 2.241 | 102.8 | | 4 | 11817 | 9109 | 2708 | 1297.7 | 2.104 | 117.1 | | 5 | 14580 | 11863 | 2717 | 1355.5 | 2.022 | 107.9 | Per-request data: `results.json`. Engine log lines from the start: `engine-log-excerpt.txt` (when this run started the server). ## Correctness and limitations Not measured: this is a speed suite. The conversation uses the model's own replies, so token counts differ a little between runs. Machine details come from the server, `nvidia-smi`/`rocm-smi` and the OS; background load and power limits are not recorded. Total time of the suite: 79 s. --- ## ⚙️ Performance Tuning & Kernel Mitigations Applied During structural testing on this machine, we identified a critical OS performance bottleneck where text generation dropped progressively down to ~110 tokens/sec over extended contexts. The following manual kernel adjustments were implemented to stabilize the inference framework: ### 1. The Virtual Memory & zram Choke Problem * **Discovery:** A direct telemetry readout revealed that Fedora 44's default virtual memory paging strategy had completely exhausted the system's `8 GiB zram0` device (**99% swap utilisation**). * **The BottleNeck:** When Strata needed to rapidly stream uncached MoE experts across the PCIe bus from system RAM, the Linux scheduler forced the host CPU to constantly pause, allocate pages, and uncompress old background processes out of the saturated zram block, degrading expert handoff timings. ### 2. Manual Swap Interventions Executed To completely bypass this latency wall, we ran the following system overrides to flush the memory landscape before launching the latest engine update: ```bash # Force the Linux kernel to prioritize physical memory pools over swap allocation sudo sysctl vm.swappiness=10 # Evict all choked background pages from zram and cycle the memory stack cleanly sudo swapoff -a && sudo swapon -a ``` ### 3. Strata Service Resource Hardening We bound the memory footprint securely within the local systemd daemon layer to guarantee that the RAM blocks dedicated to Strata's expert layers can never be fragmented or swapped away by the OS again: ```ini # Applied via systemctl edit strata.service [Service] Environment=MALLOC_ARENA_MAX=4 LimitMEMLOCK=infinity ``` ### 💡 Multi-GPU Architecture Strategy * **GPU Hardware Constraints:** The host workstation operates an RTX 3090 Ti and an standard RTX 3090 on a Gigabyte B650 motherboard. Because of B650 layout designs, the primary slot runs at full x16 Gen 4, while the auxiliary slot is electrically hardwired to a throttled **PCIe x1 link width**. * **Isolation Mapping:** Running a unified model split across both cards caused catastrophic token velocity drops. Performance was fully reclaimed by mapping Strata **exclusively to GPU 0 (the 3090 Ti)** via `CUDA_VISIBLE_DEVICES=0`, while dedicating the restricted GPU 1 entirely to isolated background batches on Ollama. **Result:** Prompt prefill velocities stabilized completely, and text decode rates achieved a verified **130.4 tokens/second peak baseline** under high dense context loads.
Author
Owner

@Niko1221 commented on GitHub (Oct 29, 2026):

Thank you for measuring this and writing it up. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.

<!-- gh-comment-id:6495731825 --> @Niko1221 commented on GitHub (Oct 29, 2026): Thank you for measuring this and writing it up. We are building a Strata website with a page for community benchmarks, and results like these will be added there when it launches, so we are closing this here. If your numbers change with a new version, you are welcome to post them again.
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#1622
No description provided.