-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
excessive network load by /proc/$pid/net/dev #143
Comments
aah. nevermind. i skipped the fine print of https://unix.stackexchange.com/a/6914/295986
using 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 io
set -eu
pid=$(pgrep rqbit)
while true; do
eval $(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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/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: