diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-09-30 08:34:05 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-09-30 08:34:05 -0400 |
| commit | a8df9c6a703e496e59aeb3b77ae03585d8e597b8 (patch) | |
| tree | 788b5a9de02583ad33970efd2f27bba3a6d96621 /docs | |
| parent | d20edfef949d0747f377c500b1c132eb89ea05da (diff) | |
update config for memory pool
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/code.md | 14 | ||||
| -rw-r--r-- | docs/containers.md | 2 | ||||
| -rw-r--r-- | docs/io.md | 2 | ||||
| -rw-r--r-- | docs/process.md | 18 |
4 files changed, 29 insertions, 7 deletions
diff --git a/docs/code.md b/docs/code.md index c49193f..85b9d04 100644 --- a/docs/code.md +++ b/docs/code.md @@ -2,8 +2,16 @@ --- -## Namespace +## Code Queue -## Module +A ring queue for files, statements and regex for execution -## REPL +## Namespace Tree + +## Module Tree + +## Configuration + +### `--code-queue-pow2=[NUMBER]` + +Set code queue size to `2 ** [NUMBER]` diff --git a/docs/containers.md b/docs/containers.md index da895db..764a6d1 100644 --- a/docs/containers.md +++ b/docs/containers.md @@ -155,3 +155,5 @@ Errors are read only, data can only be copied from them * ```log`` ### De-structuring + +# Nullable @@ -12,6 +12,6 @@ ## Configuration -### `--io-queue-pow=[NUMBER] +### `--io-queue-pow2=[NUMBER] Power of two for calculating the size of `io_uring` submission and completion queue, default is `12` diff --git a/docs/process.md b/docs/process.md index 3852496..51c6faf 100644 --- a/docs/process.md +++ b/docs/process.md @@ -6,18 +6,30 @@ ### Object +All objects sizes are rounded up to the next power of two + +The minimum allocation size is `2 ** 5` and the max is `2 ** 27` + ### Executable Memory ### Pooling +Each pool is an atomic ring buffer of size aligned to a power of two + +Every each power of two from the min to max allocation size gets its own ring buffer + ### Garbage Collection -## Task Queue +## Per Task Queue -## Action Queue +An atomic linked list to allow any thread to add to any queue but on the owning thread to read from the queue ## Configuration ### `--thread-count=[NUMBER]` -Total threads to spawn, default is `$(nproc) - 1` +Total threads to spawn, default is `$(nproc)` + +### `--memory-pool-pow2=[POOL POW],[ENTRIES POW] + +Set the memory pool of size `2 ** [POOL POW]` to have a total number of entries of `2 ** [ENTRIES POW]` |
