Update cheatsheets

This commit is contained in:
ivuorinen
2025-01-22 00:17:28 +00:00
parent 11e0e72150
commit bf8ec1afd3
2 changed files with 50 additions and 0 deletions

21
tldr/linux/lxc-create Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# lxc-create
> Create linux containers.
> More information: <https://linuxcontainers.org/lxc/getting-started>.
- Create a container interactively in `/var/lib/lxc/`:
`lxc-create --name {{container}} --template download`
- Create a container in a target directory:
`lxc-create --lxcpath {{/path/to/directory/}} --name {{container}} --template download`
- Create a container passing options to a template:
`lxc-create --name {{name}} --template download -- --dist {{distro-name}} --release {{release-version}} --arch {{arch}}`

29
tldr/linux/mbw Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# mbw
> Memory Bandwidth Benchmark.
> More information: <https://github.com/raas/mbw>.
- Run 3 memory bandwidth tests with 512MB size:
`mbw -n 3 512`
- Run 3 memory bandwidth tests with 512MB memory size, output only statistics, not averages:
`mbw -n 3 -q -a 512`
- Run memcpy test 3 times with 512MB size, only display statistics:
`mbw -n 3 -q -t{{0}} 512`
- Run the memcpy test 10 times with 1024 byte blocks allocated 8192MB of memory:
`mbw -n 10 -q -t{{2}} -b 1024 8192`
- Run dumb test with 2048MB size, output only statistics, run forever:
`mbw -n 0 -t{{1}} -q 2048`