You signed in with another tab or window. Reload to refresh your session.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
I don't think this is actually a per-process counter;
I think it's just the total interface count from the process' point of view.
using /proc/$pid/io gives better results
rqbit-stats.sh
#!/usr/bin/env bash# monitor network traffic of a process# https://unix.stackexchange.com/a/6929/295986# this is hard without root access# and without extra capabilities: cap_net_admin, cap_new_raw# which are also required by nethogs# so we use total io as a proxy for network ioset -eu
pid=$(pgrep rqbit)whiletrue;doeval$(cat /proc/$pid/io | sed 's/: /=/')
time=$(date --utc +%s)# payload traffic: up 1.450163TiB + down 688.649911MiB# 1718872971,853.397302MiB,-87.720849GiB#out=$((wchar - write_bytes)); in=$((rchar - read_bytes))# 1718873132,108.031573GiB,1.829787TiB#out=$wchar; in=$rchar# 1718873187,107.232708GiB,1.915926TiB#out=$write_bytes; in=$read_bytes# 1718873228,1.916148TiB,107.256169GiB#out=$read_bytes; in=$write_bytes# 1718873309,1.830446TiB,108.136342GiB
out=$rchar; in=$wchar
out=$(echo $out| numfmt --to=iec-i --format=%.6f)B
in=$(echo $in| numfmt --to=iec-i --format=%.6f)B
echo"$time,$out,$in"
sleep 1
done
/proc/$pid/net/dev
shows about 1000x more traffic than rqbit sayscan the DHT overhead be so bad?
is rqbit vulnerable to attacks?
is rqbit flooding the trackers?
im getting the network load from the rqbit api with
rqbit-list.sh
in #142and with
rqbit-stats.sh
from/proc/$pid/net/dev
- see belowrqbit running for 12h40m on a 1Gbit/s connection
to compare, this is qbittorrent
running for 3d17h on a 100+40Mbit/s connection
qbittorrent gui says: uploaded 1.2TiB + downloaded 85GiB
im running rqbit with
maybe the port range is too large?
rqbit-stats.sh
The text was updated successfully, but these errors were encountered: