Debian Codegraph @

docs/content/configuration/config-file/memory-graph.md

raw symbols SCIP
1 # Memory Graph Configuration
2
3 If you want to change some of the default behaviour of the memory graph widget, you can configure things under the `[memory_graph]` (or `[memory]`) section.
4
5 ## Graph legend position
6
7 You can change where the legend for the graph is placed within the widget itself (or hidden with `"none"`). The default is `"top-right"`.
8
9 ```toml
10 [memory_graph]
11 # One of ["none", "top-left", "top", "top-right", "left", "right", "bottom-left", "bottom", "bottom-right"]
12 legend_position = "top-left"
13 ```
14
15 ## Collect/show cache memory
16
17 On Linux, you can change whether the memory used by [cache/slabs](https://serverfault.com/a/1025189) is collected and
18 shown. By default, it is `false`.
19
20 <!--TODO: Note this affects basic too... should I separate out a "general memory" setting and specific graph ones?-->
21
22 ```toml
23 [memory_graph]
24 cache_memory = true
25 ```
26
27 ## Short GPU names
28
29 If GPU support is enabled, you can use `short_gpu_names` to display simplified GPU names in the memory graph widget
30 instead of the full GPU names. If enabled, then if there's only one GPU, it'll just list the entry as `GPU`;
31 if there are multiple GPUs, it'll use entries like `GPU0`, `GPU1`, etc. By default, this is disabled.
32
33 ```toml
34 [memory_graph]
35 short_gpu_names = true
36 ```
37
38 ## Subtract free-able ARC from memory
39
40 If ZFS is detected (note that the `zfs` feature must be enabled if built manually), you can enable `memory_graph.free_arc` to
41 not count [ARC](https://www.45drives.com/community/articles/zfs-caching/) memory in the RAM usage calculations. Disabled
42 by default.
43
44 ```toml
45 [memory_graph]
46 free_arc = true
47 ```