myxce/src/worker/src
Rongsong Shen a35f597e06
fix(worker): real maxswap/maxtmp detection; feat(scheduler): annotate multi-slot assigned jobs
bug-1554: init_host_attrs() replaces hardcoded placeholder stubs with real
detection -- maxswap from sysinfo()'s totalswap (reusing the same syscall
snapshot already taken for maxmem), maxtmp from a fresh statvfs("/tmp")
total-capacity measurement. No synthetic fallback on detection failure, so
a system with swap genuinely disabled correctly reports 0.

bug-1776: the scheduler simulator's "info worker" assigned-jobs listing now
annotates a job consuming more than one "slots" unit (e.g. "jobid*2"),
using per-host allocation data that was already being walked but discarded.
Falls back to the pre-existing per-job listing when jobs on the same worker
have differing slot counts, since a single suffix on a compressed range
would be ambiguous.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hb6Edtj4KbS8CrgEWYdA2E
2026-09-07 04:39:22 +00:00
..
connection_handler.c use clang-format to format code 2025-11-25 14:58:09 +08:00
controller_connector.c feat(worker-rejoin-resync): task 6.1 - trigger reconciliation on rejoin 2026-09-01 19:43:18 +00:00
hardware_monitor.c fix(worker): real maxswap/maxtmp detection; feat(scheduler): annotate multi-slot assigned jobs 2026-09-07 04:39:22 +00:00
inter_job_utils.c use clang-format to format code 2025-11-25 14:58:09 +08:00
job_information.c use clang-format to format code 2025-11-25 14:58:09 +08:00
main.c fix(worker): job ids print human-readable format via fmt_jobid() (bug-1588) 2026-08-22 02:42:01 +00:00
node_information.c fix(controller): close 6 data-safety races + apply-pump O(N^2) regression + boot TOCTOU 2026-08-16 10:20:02 +00:00
process_manager.c job submit and support run in worker 2025-11-28 17:24:31 +08:00
process_worker_manager.c use clang-format to format code 2025-11-25 14:58:09 +08:00
resource_sync.c fix(worker-rejoin-resync): task 4.4 - gate periodic load-indices send on resync_pending 2026-09-02 03:01:56 +00:00
static_array.c use clang-format to format code 2025-11-25 14:58:09 +08:00
system_monitor.c use clang-format to format code 2025-11-25 14:58:09 +08:00
thread_pool.c use clang-format to format code 2025-11-25 14:58:09 +08:00
uv_ipc.c feat(worker): distinguish signal-killed job exits from real crashes in logs 2026-08-29 11:43:52 +00:00
uv_proc.c merge job rusage and pending reason support 2025-12-16 14:36:28 +08:00
xcecd.c fix(worker): real maxswap/maxtmp detection; feat(scheduler): annotate multi-slot assigned jobs 2026-09-07 04:39:22 +00:00
xcecd_cgroups.c fix(worker): job ids print human-readable format via fmt_jobid() (bug-1588) 2026-08-22 02:42:01 +00:00
xcecd_db.c merge job rusage and pending reason support 2025-12-16 14:36:28 +08:00
xcecd_dbus_manager.c fix(worker): job ids print human-readable format via fmt_jobid() (bug-1588) 2026-08-22 02:42:01 +00:00
xcecd_exdata.c merge job rusage and pending reason support 2025-12-16 14:36:28 +08:00
xcecd_resync.c feat(worker-rejoin-resync): task 4.3 - wire query receipt and post-join gate 2026-09-01 18:01:03 +00:00
xcecd_sig.c use clang-format to format code 2025-11-25 14:58:09 +08:00
xcecd_worker.c fix(worker): job ids print human-readable format via fmt_jobid() (bug-1588) 2026-08-22 02:42:01 +00:00
xcecd_worker_utils.c feat(worker-rejoin-resync): task 4.2 - worker answers job-state query with extras 2026-09-01 16:35:28 +00:00
xrun.c use clang-format to format code 2025-11-25 14:58:09 +08:00