You signed in with another tab or window. Reload to refresh your s
8000
ession.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
pynixd: a darwin host reports no memory, load or CPU in its health #1391
health_from_files (pynixd/monitor.py) builds a sample from SAMPLED_FILES: /proc/pressure/*, /proc/meminfo, /proc/loadavg, /sys/fs/cgroup/cpu.stat. The agent (agent/src/main.rs, FILES) reads the same list. On darwin none of them exist, so a sample carries only disk (and cores from the local poller):
Effect: placement sees a darwin builder or a darwin pynixd with no memory and no load, so pressure-based decisions treat it as unknown.
Sources on darwin: os.getloadavg() for load1; sysctl hw.memsize and host_statistics64 (vm_stat) for MemInfo; host_processor_info for CPU time. PSI has no darwin equivalent.
Tests that show it, marked as expected failures on darwin: test_agent.py::test_the_real_agent_speaks_what_the_parser_reads, ::test_the_local_store_runs_the_agent_for_its_triggers, test_peer_health_stream.py::test_the_peer_samples_itself_when_its_monitor_cannot_serve.
Activity
pynixd: Linux-only unit tests skip on darwin, and known gaps are xfail
pynixd: Linux-only unit tests skip on darwin, and known gaps are xfail