facebookincubator / dynolog

Dynolog is a telemetry daemon for performance monitoring and tracing. It exports metrics from different components in the system like the linux kernel, CPU, disks, Intel PT, GPUs etc. Dynolog also integrates with pytorch and can trigger traces for distributed training applications.
MIT License
188 stars 34 forks source link

no obvious way to launch on kernel with ipv6 disabled #176

Open tryauuum opened 9 months ago

tryauuum commented 9 months ago
root@transformer-model-inference:~# cat /proc/cmdline 
BOOT_IMAGE=/boot/vmlinuz-5.4.0-152-generic root=UUID=760ef146-37b2-4fe1-ba27-cc52ddebc7c7 ro ipv6.disable=1 console=tty1 console=ttyS0
root@transformer-model-inference:~# dynolog 
I20230918 12:52:05.305244 1843052 Main.cpp:151] Starting dynolog, version = 0.2.1, build git-hash = 
I20230918 12:52:05.305972 1843053 Main.cpp:82] Running kernel monitor loop : interval = 60 s.
socket(): Address family not supported by protocol
I20230918 12:52:05.308105 1843052 SimpleJsonServer.cpp:229] Launching RPC thread

It's mostly normal for programs to not work without IPv6, but it would be nice to have an option to select IP to listen on.

briancoutinho commented 7 months ago

Sorry about the delay, yes this could be addressed. The server logic is fairly simpe, i think this part needs updating on IPv4 https://github.com/facebookincubator/dynolog/blob/main/dynolog/src/rpc/SimpleJsonServer.cpp#L34-L52