Commit Graph

1956 Commits

Author SHA1 Message Date
Robert Chacón
77f21b4118
Update .gitignore 2023-04-19 19:14:47 -06:00
Robert Chacón
71e7610c75
Update .gitignore 2023-04-19 19:09:56 -06:00
Robert Chacón
f68da7f7a2
Merge pull request #342 from LibreQoE/main
UISP Integration Improvements -> Develop
2023-04-19 19:02:25 -06:00
Robert Chacón
111272e3e1
Merge pull request #341 from LibreQoE/bpf_map_performance
Bpf map performance
2023-04-19 18:37:40 -06:00
Herbert Wolverson
54d59af347 Reduce default maximum tracked hosts to 64k from 128k 2023-04-19 21:29:15 +00:00
Herbert Wolverson
1727468e66 Remove now unused code. 2023-04-19 20:56:56 +00:00
Herbert Wolverson
775a903f2d Missing doctag 2023-04-19 20:55:16 +00:00
Herbert Wolverson
1e8ac64074 Update Heimdall to also use eBPF iterators
This eliminates another set of syscalls per cycle. The old per_cpu
map system is now removed, in favor of direct iteration of maps.
2023-04-19 20:54:10 +00:00
Herbert Wolverson
d5becf7190 Now that we're differentiating between single-CPU and per-CPU map types, we can eliminate 8 bytes of bus traffic by not reporting CPU counts (and padding) 2023-04-19 20:17:19 +00:00
Herbert Wolverson
239b271e0a Add a little padding to the output stream kernel side, to nicely align on 64-bit boundaries. Then use aligned casting for zero-copy userspace access to the data. Another smallish speed increase. 2023-04-19 18:31:16 +00:00
Herbert Wolverson
9261641f42 Avoid reallocation of multi-cpu vectors during iteration. 2023-04-19 16:38:39 +00:00
Herbert Wolverson
1c588a5a48 Start documenting the types created in this patch-chain. 2023-04-19 13:12:18 +00:00
Herbert Wolverson
122caaf10b Remove a no-longer-needed import. 2023-04-19 13:02:11 +00:00
Herbert Wolverson
04ff52a007 Remove 2 more syscalls by removing a useless mutex. 2023-04-18 21:51:50 +00:00
Herbert Wolverson
78e36d2e21 Handle per-CPU maps correctly in eBPF iterators
The eBPF iterator interface is now per-CPU aware, and correctly
extracts a slice of data for each per-CPU map (or a slice of 1
when using a non-CPU divided map).
2023-04-18 20:37:49 +00:00
Herbert Wolverson
f0975ccbcd Use eBPF iterators (requires kernel 5.8+) instead of next_entry
Replaces the eBPF interface "bpf_map_get_next_key" followed by
"bpf_map_lookup_elem" cycle for iterating maps with a call to
the kernel-provided eBPF iterator service.

Currently only implemented for throughput and RTT tracking.
Further commits will tighten the scope and eventually remove
the legacy setup completely.

For 10k hosts, this reduces the number of system calls from
20,002 to 4. The remaining items are a futex lock (required
for safety), and an iterator call.
2023-04-18 17:24:25 +00:00
Herbert Wolverson
cc88ed1c62 Add the new tool to the git ignore list. 2023-04-18 13:05:55 +00:00
Herbert Wolverson
80a1356720 Add a tool to track eBPF map performance
New tool: lqos_map_perf is included in the distribution. It
runs the two map iterators that pound the lqosd/eBPF system
with map iterations, counts the number of entries returned
and reports on overall performance (in µs).

This is intended to help with diagnosing map reading
performance issues and act as a bench-test to see if
using eBPF iterators actually helps.
2023-04-17 13:28:09 +00:00
Herbert Wolverson
6337bdb3d0 WIP - sumissions transition to a processing queue. Beginnings of some early Influx code. 2023-04-17 13:10:54 +00:00
Robert Chacón
c7d501a957
Add option to control frequency of queue refreshes in minutes - queueRefreshIntervalMins 2023-04-16 09:32:17 -06:00
Robert Chacón
d965f51a64
Update ispConfig.example.py 2023-04-16 09:28:53 -06:00
Robert Chacón
1ee7484d86
Add 'type' to network.json. For https://github.com/LibreQoE/LibreQoS/issues/308 2023-04-15 11:24:07 -06:00
Robert Chacón
4861b5f2fd
Rename integrationUISProutes.csv to integrationUISProutes.template.csv 2023-04-15 10:37:21 -06:00
Robert Chacón
ffda0a08f1
Render network map graph horizontally. Makes much more efficient use of space. 2023-04-15 10:29:49 -06:00
Robert Chacón
286c2a4931
Only print warning if actual site goes off PtMP AP, not client sites 2023-04-15 10:03:41 -06:00
Robert Chacón
2b16930586
https://github.com/LibreQoE/LibreQoS/issues/336 2023-04-15 09:56:45 -06:00
Robert Chacón
c62f6d3e3c
Fix https://github.com/LibreQoE/LibreQoS/issues/309 2023-04-15 09:44:50 -06:00
Robert Chacón
3d6d32c300
Update integrationUISP.py 2023-04-15 09:42:03 -06:00
Robert Chacón
eced3e2ac5
Update integrationUISP.py 2023-04-14 23:56:08 -06:00
Robert Chacón
d80be2bd4c
Merge pull request #333 from LibreQoE/partialReloadImprovement
Partial reload improvement
2023-04-14 16:17:13 -06:00
Robert Chacón
33e94b5fd7
Merge pull request #337 from LibreQoE/fixUISPmultiWAN
UISP Handle Multiple Internet-Connected Sites
2023-04-14 16:16:38 -06:00
Robert Chacón
9657796270
Update integrationUISP.py 2023-04-14 16:02:21 -06:00
Robert Chacón
5c5f9ee1e5
Update integrationUISP.py 2023-04-14 16:00:22 -06:00
Robert Chacón
2d3ff07f9e
Update integrationUISP.py 2023-04-14 14:45:13 -06:00
Herbert Wolverson
3e57a5098a End-to-end encryption is working for stats submissions. 2023-04-14 20:42:05 +00:00
Robert Chacón
13f0df7e0c
Update integrationUISP.py 2023-04-14 13:26:28 -06:00
Robert Chacón
3bb8a30152
Update integrationUISP.py 2023-04-14 13:24:12 -06:00
Herbert Wolverson
403dddd1b9 PKI for the license server. Replies to public key exchange requests with a server-cluster side public key. 69 bytes, not too heavy. 2023-04-14 17:52:42 +00:00
Herbert Wolverson
86dabaeded Client-side PKI is in place. Unit tests for the round-trip and serialization. Generate a new keypair or load from (lqos_dir)/lts_keys.bin. Lazy-load (or generate) the keys when needed, so no cost if the LTS system never fires. Basic submission of public key on the client-side only. 2023-04-14 17:34:22 +00:00
Robert Chacón
24b4609fd5
Merge pull request #335 from LibreQoE/fix334
UISP Integration Improvements
2023-04-14 05:49:36 -06:00
Robert Chacón
5f30799538
Add files via upload 2023-04-13 20:16:33 -06:00
Robert Chacón
e5d70d4e7a
Update integrationUISP.py 2023-04-13 19:32:00 -06:00
Robert Chacón
25ffa131b3
Update integrationUISP.py 2023-04-13 09:32:50 -06:00
Robert Chacón
942e4db89d
Update integrationUISP.py 2023-04-13 09:28:59 -06:00
Robert Chacón
ec2ed8e4ad
Update integrationUISP.py 2023-04-13 09:03:30 -06:00
Robert Chacón
8f55f4ac4e
Update integrationUISP.py 2023-04-13 08:51:53 -06:00
Robert Chacón
99c716de86
Update integrationUISP.py 2023-04-13 08:48:00 -06:00
Herbert Wolverson
19f34f252e WIP 2023-04-13 14:40:27 +00:00
Robert Chacón
855b838831
Update integrationUISP.py 2023-04-12 20:52:42 -06:00
Herbert Wolverson
b0a14a1a27 Start to integrate a PKI system, and keep messing up the merges 2023-04-12 21:02:55 +00:00