mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-08 10:46:01 +00:00
Update cheatsheets
This commit is contained in:
21
tldr/linux/lxc-create
Normal file
21
tldr/linux/lxc-create
Normal 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
29
tldr/linux/mbw
Normal 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`
|
||||
Reference in New Issue
Block a user