Chrysostomos Nanakos 0c8e28fa46
feat(k8s): add Vector logging infrastructure for benchmarks
Add Vector agent/aggregator deployment for collecting logs from Codex
benchmark experiments in K8s. Includes PVC for log storage, S3 secret
template and RBAC.

Vector collects logs from benchmark pods and writes JSONL files for
post-processing by the log-parsing workflow.

Signed-off-by: Chrysostomos Nanakos <chris@include.gr>
2025-10-21 13:13:49 +03:00
2025-01-23 10:18:42 -03:00
2025-02-14 11:00:17 -03:00
2025-02-27 19:00:49 -03:00

bittorrent-benchmarks

TL;DR: the main outcome of this repository, so far, has been this analysis on the performance of Codex versus the Deluge bittorrent client: https://rpubs.com/giuliano_mega/1266876

Scaffolding and experiments for benchmarking Codex against the Deluge bittorrent client. This is general enough that it could be extended to benchmark Codex against any content distribution network, including IPFS.

This experimental harness leans on Kubernetes. It is completely possible to run experiments locally, however, using Minikube (or Kind, or Docker Desktop).

Limits

When running experiments locally in a Linux machine, you will likely need to adjust several of the default OS limits. I won't go into how to make those changes permanent within your system as there's significant variation across distributions.

ARP Cache. The default size for the ARP cache is too small. You should bump it significantly, e.g.:

echo 4096 | sudo tee /proc/sys/net/ipv4/neigh/default/gc_thresh1
echo 8192 | sudo tee /proc/sys/net/ipv4/neigh/default/gc_thresh2
echo 16384 | sudo tee /proc/sys/net/ipv4/neigh/default/gc_thresh3

inotify. Kubernetes seems to enjoy watching the filesystem, so you should increase inotify limits across the board:

sudo sysctl -w fs.inotify.max_user_instances=2099999999
sudo sysctl -w fs.inotify.max_queued_events=2099999999
sudo sysctl -w fs.inotify.max_user_watches=2099999999

Kernel key retention service. Kubernetes also places a large number of keys within the kernel. Make sure you have enough room:

echo 10000 | sudo tee /proc/sys/kernel/keys/maxkeys
Description
No description provided
Readme
Languages
Python 74.6%
R 17.8%
HCL 2.7%
Smarty 2%
Shell 1.5%
Other 1.4%