Repository navigation
Commit 92eac8f
committed
Release 26.09.44: Control Center writes /sys in place (#93)
skillfish-cc-helper wrote every file through a .tmp and a rename. sysfs has
no rename and no file creation, so every write to /sys failed with EACCES,
even as root: Tuner > Cores > Apply ("Permission denied: .../cpu1/online.tmp"),
the SMT switch, and the performance governor the CPU benchmark sets (that one
was swallowed, so the benchmark silently ran on whatever governor was on).
The old tuner helper wrote directly; this came with the Control Center.
_wr now writes /sys and /proc in place and keeps the .tmp route for real
files. The helper also keeps the core_id of every CPU it sees online in
/var/lib/skillfish/cpu-topology.json, because an offline CPU has no topology
in sysfs: the n // 2 guess is right on the BC-250 (threads 2k, 2k+1) and
wrong on PCs numbered otherwise.
Tested on the .32 by the other session: the installed helper reproduces the
user's error on cpu6/online.tmp; the fixed one switched core 3 off and on
(16, 14, 16 threads, cpu6/7 0 then 1) and recorded all sixteen core_ids as
n // 2. The board was left as it was.1 parent e8762bb commit 92eac8f
3 files changed
Lines changed: 58 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
72 | 85 | | |
73 | 86 | | |
74 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
87 | 99 | | |
88 | 100 | | |
89 | 101 | | |
| |||
454 | 466 | | |
455 | 467 | | |
456 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
457 | 495 | | |
458 | 496 | | |
| 497 | + | |
| 498 | + | |
459 | 499 | | |
460 | 500 | | |
461 | 501 | | |
| |||
465 | 505 | | |
466 | 506 | | |
467 | 507 | | |
| 508 | + | |
468 | 509 | | |
469 | 510 | | |
470 | 511 | | |
| |||
479 | 520 | | |
480 | 521 | | |
481 | 522 | | |
482 | | - | |
| 523 | + | |
483 | 524 | | |
484 | 525 | | |
| 526 | + | |
| 527 | + | |
485 | 528 | | |
486 | 529 | | |
487 | 530 | | |
| |||
0 commit comments