-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle exceptions for malformed lines at vector log parser
- Loading branch information
Showing
2 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,39 @@ | ||
# bittorrent-benchmarks | ||
|
||
Scaffolding and experiments for benchmarking Codex against the Deluge bittorrent client. | ||
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](https://minikube.sigs.k8s.io/) (or Kind, or Docker Desktop). | ||
|
||
## Limits | ||
|
||
When running experiments locally in a Linux machine, you will bump onto a number of | ||
limitations. I have documented those here. 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.: | ||
|
||
```bash | ||
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: | ||
|
||
```bash | ||
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: | ||
|
||
```bash | ||
echo 10000 | sudo tee /proc/sys/kernel/keys/maxkeys | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters