Skip to content

Commit 27db05b

Browse files
authored
Merge pull request #245 from parca-dev/resource-usage
Resource usage
2 parents 374ada3 + 89ece08 commit 27db05b

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

docs/resource-usage.mdx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Resource Usage
2+
3+
Parca retains profile samples in memory and rotates the in-memory block out
4+
when it reaches a certain size in bytes based on configuration settings.
5+
6+
# Recommended resources
7+
8+
We recommend a rule of thumb of 60 bytes of memory for each sample.
9+
By default the Parca-Agent profiles each core at 19Hz, which means you can expect
10+
Parca to require 60 bytes * 19 * number of cores. So if you were profiling a 100 cores at a time
11+
you'd expect Parca to ingest 114Kb/s.
12+
13+
## Flags to adjust the active memory footprint
14+
15+
| Flag | Usage |
16+
--------------------------------------------------------------
17+
| `--storage-granule-size` | By increasing the granule size you'll decrease nominal memory footprint but increase memory usage during compaction. |
18+
| `--storage-active-memory` | Adjust the number of bytes held in memory before being rotated out. This is the easiest way to adjust Parca's memory footprint. |
19+
| `--storage-row-group-size`| Smaller row groups increase memory footprint but increase query speed. Increasing row group size results in lower memory usage but slower queries. |

sidebars.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,15 @@ module.exports = {
3939
label: "gRPC APIs",
4040
href: "https://buf.build/parca-dev/parca",
4141
},
42-
"observability",
43-
"configuration",
42+
{
43+
type: "category",
44+
label: "Operation",
45+
items: [
46+
"observability",
47+
"configuration",
48+
"resource-usage",
49+
],
50+
},
4451
{
4552
type: "category",
4653
label: "Profile Visualization",

0 commit comments

Comments
 (0)