Skip to content

Instantly share code, notes, and snippets.

From 58fb1b6a924538b7ff8b0b38efb9e5c1b894e3ed Mon Sep 17 00:00:00 2001
From: Nils Andreas Svee <me@lochnair.net>
Date: Tue, 11 Jan 2022 10:37:53 +0100
Subject: [PATCH] set names on threads for debugging
---
lib/sqm-autorate.lua | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/lib/sqm-autorate.lua b/lib/sqm-autorate.lua
We can't make this file beautiful and searchable because it's too large.
times,timens,rxload,txload,deltadelaydown,deltadelayup,dlrate,uprate
1641763224,416810649,0.001261,0.004559,0.303480,6.299135,18000,9000
1641763224,919624067,0.007364,0.020875,0.383142,6.537334,18000,9000
1641763225,422365612,0.376150,0.035837,2.711701,6.105081,18000,9000
1641763225,925111006,0.055495,0.017278,3.712213,7.343274,18000,9000
1641763226,428490095,0.000966,0.003593,2.395319,10.431884,18000,9000
1641763226,931871291,0.001186,0.003645,1.860819,10.752289,18000,9000
1641763227,436194737,0.001159,0.003758,1.061972,5.832451,18000,9000
1641763227,938910739,0.001033,0.003976,0.543064,9.661770,18000,9000
1641763228,441724044,0.001517,0.007554,1.039327,8.986866,18000,9000
This file has been truncated, but you can view the full file.
Internet ifb4Internet
log_time; rx_load; tx_load; min_downlink_delta; min_uplink_delta; cur_dl_rate; cur_ul_rate;
[INFO - 20211223T21:20:44]: Reflector 65.21.108.153 up baseline = 20 down baseline = 37
[INFO - 20211223T21:20:44]: Reflector 65.21.108.153 up baseline = 20 down baseline = 37
[INFO - 20211223T21:20:44]: Reflector 5.161.66.148 up baseline = 72 down baseline = 72
[INFO - 20211223T21:20:44]: Reflector 65.21.108.153 up baseline = 20 down baseline = 37
[INFO - 20211223T21:20:44]: Reflector 5.161.66.148 up baseline = 72 down baseline = 72
[INFO - 20211223T21:20:44]: Reflector 65.21.108.153 up baseline = 20 down baseline = 37
[INFO - 20211223T21:20:44]: Reflector 5.161.66.148 up baseline = 72 down baseline = 72
[INFO - 20211223T21:20:44]: Reflector 216.128.149.82 up baseline = 67 down baseline = 85
We can't make this file beautiful and searchable because it's too large.
times,timens,rxload,txload,deltadelaydown,deltadelayup,dlrate,uprate
1639949658,461150493,0.000938,0.001123,0.000000,0.000000,30000,10000
1639949658,971569569,0.000153,0.000753,0.000000,0.000000,30000,10000
1639949659,477303560,0.001550,0.002531,0.000000,0.000000,30000,10000
1639949659,989425349,0.004168,0.015284,0.672000,0.000000,30000,10000
1639949660,499422025,0.003803,0.008001,0.000000,0.000000,30000,10000
1639949661,65904,0.004973,0.005190,0.000000,0.000000,30000,10000
1639949661,511170553,0.003450,0.004007,0.039962,1.010240,30000,10000
1639949662,18434554,0.004786,0.008074,0.000000,0.000000,30000,10000
1639949662,529186448,0.002407,0.003033,0.350347,1.720410,30000,10000
We can't make this file beautiful and searchable because it's too large.
times,timens,rxload,txload,deltadelaydown,deltadelayup,dlrate,uprate
1639830073,386958658,0.000473,0.007415,0.000000,0.000000,30000,10000
1639830073,890674224,0.000744,0.001321,0.000000,0.000000,30000,10000
1639830074,393194961,0.000369,0.001503,0.000000,0.000000,30000,10000
1639830074,907843857,0.000596,0.003059,0.000000,0.000000,30000,10000
1639830075,416396539,0.000327,0.001208,0.000000,0.000000,30000,10000
1639830075,919912187,0.000332,0.001017,0.000000,0.000000,30000,10000
1639830076,427644442,0.001018,0.001210,0.000000,0.000000,30000,10000
1639830076,940428490,0.000299,0.006764,0.000000,0.000000,30000,10000
1639830077,454727574,0.000373,0.001195,0.000000,0.000000,30000,10000
1639182124.602868646 : 30000 : 10000
1639182125.443585092 : 30000 : 10000
1639182126.385573196 : 30000 : 10000
1639182127.238606622 : 30000 : 10000
1639182128.131552014 : 30000 : 10000
1639182129.055631227 : 30000 : 10000
1639182130.216299047 : 30000 : 10000
1639182131.387067185 : 30149 : 10000
1639182132.486214877 : 30299 : 10000
1639182133.578984149 : 30450 : 10000
rx_bytes_path: /sys/class/net/ifb4Internet/statistics/tx_bytes
tx_bytes_path: /sys/class/net/Internet/statistics/tx_bytes
log_time; rx_load; tx_load; min_dl_delta; min_ul_delta; cur_dl_rate; cur_ul_rate; ;
194.242.2.2; -694699.00; -694694.00; 5.00; 694758.00; 694757.00; -1.00;
149.112.112.10; 40.80; 46.30; 5.50; 39.00; 37.00; -2.00;
193.19.108.2; -694695.00; -694695.00; 0.00; 694773.00; 694758.00; -15.00;
193.19.108.3; -694695.00; -694695.00; 0.00; 694774.00; 694761.00; -13.00;
194.242.2.3; -694695.00; -694694.00; 1.00; 694763.00; 694746.00; -17.00;
149.112.112.11; 46.30; 44.70; -1.60; 41.00; 31.00; -10.00;
149.112.112.112; 54.90; 44.70; -10.
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'eip197-mini-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'r8169-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'e100-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'bnx2-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'bnx2x-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'ar3k-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'mwifiex-sdio-firmware', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-phy-bcm-ns-usb2', which does not exist
WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'edgeport-firmware', which does not exist
WARNING: Makefile 'packa
#
# No change to .config
#
make[1]: Entering directory '/home/lochnair/Work/Network/openwrt-sdk-21.02.1-octeon_gcc-8.4.0_musl.Linux-x86_64'
make[2]: Entering directory '/home/lochnair/Work/Network/openwrt-sdk-21.02.1-octeon_gcc-8.4.0_musl.Linux-x86_64/package/toolchain'
echo "libc" >> /home/lochnair/Work/Network/openwrt-sdk-21.02.1-octeon_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips64_octeonplus_64_musl/pkginfo/toolchain.default.install
echo "libgcc" >> /home/lochnair/Work/Network/openwrt-sdk-21.02.1-octeon_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips64_octeonplus_64_musl/pkginfo/toolchain.default.install
echo "libpthread" >> /home/lochnair/Work/Network/openwrt-sdk-21.02.1-octeon_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips64_octeonplus_64_musl/pkginfo/toolchain.default.install
echo "librt" >> /home/lochnair/Work/Network/openwrt-sdk-21.02.1-octeon_gcc-8.4.0_musl.Linux-x86_64/staging_dir/target-mips64_octeonplus_64_musl/pkginfo/toolchain.default.install
touch -r /home/lochnair/Work/Network
@Lochnair
Lochnair / ubnt-kernels-git-import.py
Last active April 16, 2023 04:40
UBNT kernels Git repo import
import os
import re
import shutil
import tarfile
from operator import itemgetter
import git
import requests
import sys
from git import Repo, Actor, Head, GitCmdObjectDB, InvalidGitRepositoryError