diff --git a/tldr/linux/lxc-create b/tldr/linux/lxc-create new file mode 100644 index 00000000..6011879f --- /dev/null +++ b/tldr/linux/lxc-create @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# lxc-create + +> Create linux containers. +> More information: . + +- 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}}` diff --git a/tldr/linux/mbw b/tldr/linux/mbw new file mode 100644 index 00000000..4e8d64a0 --- /dev/null +++ b/tldr/linux/mbw @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# mbw + +> Memory Bandwidth Benchmark. +> More information: . + +- 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`