chore(wolf): update memory index; add simulator REPL notes

Captured simulator REPL session findings from bug-1790 verification:
incorrect maxswap resource value display and a suggestion to show
per-worker slot allocation counts in `info worker` output.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019jaMf9QEwpugH2W9KAuc7f
This commit is contained in:
Rongsong Shen 2026-09-09 03:06:36 +00:00
parent ad912e0e13
commit 7bcafa68e7
No known key found for this signature in database
GPG key ID: 5BCDAAE0123E9FE2
2 changed files with 67 additions and 0 deletions

View file

@ -4468,3 +4468,8 @@
| 04:06 | Edited src/scheduler/src/resource.c | modified sched_fill_limit_requests() | ~1036 |
| 04:07 | Edited src/scheduler/testsuite/test_resource_accounting.c | modified regression() | ~1052 |
| 04:07 | Edited src/scheduler/testsuite/test_resource_accounting.c | inline fix | ~20 |
## Session: 2026-09-09 19:55
| Time | Action | File(s) | Outcome | ~Tokens |
|------|--------|---------|---------|--------|

62
issues/simulator-1.md Normal file
View file

@ -0,0 +1,62 @@
Simluator REPL output
```
rshen@pc13v ~/p/x/w/s/src (scheduler-framework)> ./build.dbg/scheduler/xce_scheduler -i -s /tmp/scheduler-replay-20260907-032446.replay
[2026-09-07 11:25:55,060] [32922] [ WARN] [xce_sched_core_load_snapshot] xce_sched_core_load_snapshot failed to resolve job picker plugin (rc=-2); picker rebuild will be skipped for this load
[sim] replay file contains 33 sessions
[sim] loaded: 2 jobs, snapshot @ ts=1788751486917208975 (2026-09-07T03:24:46Z)
[sim] (jobs above reflect this snapshot only -- step/continue to replay later events)
[sim] ready. type 'help' for commands.
(sim) info summary
[sim] summary: 2 jobs (0 pending, 1 running), 1 workers (1 online), 4 queues, 33 resources
(sim) info jobs
[sim] jobs:
0-14-1788751409-0 DONE xce
0-14-1788751435-0 RUN xce
[sim] info jobs: 2 job(s)
(sim) info worker pc13v
[sim] worker pc13v: status=online
[sim] -- Consumable/Capacity --
[sim] resource slots: value=22.00 used=2.00
[sim] resource mem: value=25749303296.00 used=0.00
[sim] resource swp: value=16384.00 used=0.00
[sim] resource tmp: value=541460271104.00 used=0.00
[sim] -- Load Metrics --
[sim] resource r1m: value=0.16
[sim] resource r15m: value=1.27
[sim] resource r15s: value=0.16
[sim] resource ut: value=1.19
[sim] resource pg: value=129.07
[sim] resource ls: value=1
[sim] resource it: value=57.83
[sim] resource io: value=0
[sim] resource cpuf: value=1
[sim] resource maxcpus: value=22
[sim] resource maxmem: value=33182072832.000000 (30.90 GB)
[sim] resource maxswap: value=10000.000000 (9.77 KB)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^I think maxswap is not 10 KB
[sim] resource maxtmp: value=2147483648.000000 (2.00 GB)
[sim] resource ndisks: value=1
[sim] -- Static Hardware Attributes --
[sim] resource type: value=x86_64-linux-gnu
[sim] resource model: value=x86_64-linux-gnu
[sim] assigned jobs: 0-14-1788751435-0
(sim)
```
xce_test output
```
xce/client>workerlist
HostName Status HostType HostModel CPUfactor MaxCPU MaxMem MaxSwap MaxTmp NDisks
pc13v OK x86_64-linux-gnu x86_64-linux-gnu 1.000000 22 30.90 GB 1.00 GB 2.00 GB 1
```
Issues:
- resource maxswap value is not correct
Improvement:
- It will be better to show number of slots allocated in the worker node, so following will be better?
```
[sim] assigned jobs: 0-14-1788751435-0*2
^ indicate 2 slots
```