diff --git a/Others/sysbench/README.md b/Others/sysbench/README.md new file mode 100644 index 0000000000000000000000000000000000000000..7583832d95288a4df2b4bc1d0fcf54235c2918d1 --- /dev/null +++ b/Others/sysbench/README.md @@ -0,0 +1,62 @@ +# Quick reference + +- The official sysbench docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative). + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community). + +# sysbench | openEuler +Current sysbench docker images are built on the [openEuler](https://repo.openeuler.org/). This repository is free to use and exempted from per-user rate limits. + +sysbench is a scriptable multi-threaded benchmark tool based on LuaJIT. It is most frequently used for database benchmarks, but can also be used to create arbitrarily complex workloads that do not involve a database server. + +# Supported tags and respective Dockerfile links +The tag of each `sysbench` docker image is consist of the version of `sysbench` and the version of basic image. The details are as follows + +| Tag | Currently | Architectures | +|----------|-------------|------------------| +|[1.0.20-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/sysbench/1.0.20/24.03-lts-sp1/Dockerfile)| sysbench 1.0.20 on openEuler 24.03-LTS-SP1 | amd64, arm64 | + +# Usage +In this usage, users can select the corresponding `{Tag}` based on their requirements. + +- Pull the `openeuler/sysbench` image from docker + + ```bash + docker pull openeuler/sysbench:{Tag} + ``` + +- Run with an interactive shell + + You can also start the container with an interactive shell to use sysbench. + ``` + docker run -it --rm openeuler/sysbench:{Tag} bash + ``` + +- CPU Benchmark + + Measure how many arithmetic operations (calculating prime numbers) your CPU can perform under multi-threaded load. + Example: + ``` + sysbench cpu --cpu-max-prime=20000 --threads=4 run + ``` + `Options:` + * `--cpu-max-prime=20000`: Defines the maximum prime number to calculate. Higher values generate a heavier CPU worload. + * `--threads=4`: Number of worker threads to use. You can set this according you physical CPU cores. + * `run`: Execute the test. + +- Memory benchmark + + Measure your system`s memory bandwidth by continuously reading and writing memory blocks. + Example: + ``` + sysbench memory --memory-block-size=1M --memory-total-size=10G run + ``` + `Options:` + * `--memory-block-size=1M:` Size of each memory block for read/write operations. Default is 1k. + * `--memory-total-size=10G:` Total amount of data to transfer. Larger values produce more stable results. + * `run:` Execute the test. + +# Question and answering +If you have any questions or want to use some special features, please submit an issue or a pull request on [openeuler-docker-images](https://gitee.com/openeuler/openeuler-docker-images). \ No newline at end of file diff --git a/Others/sysbench/doc/image-info.yml b/Others/sysbench/doc/image-info.yml new file mode 100644 index 0000000000000000000000000000000000000000..098455aca7120d791f7c788cf20c2d9baaa48332 --- /dev/null +++ b/Others/sysbench/doc/image-info.yml @@ -0,0 +1,60 @@ +name: sysbench +category: others +description: sysbench 是一个轻量级的、模块化的多线程基准测试工具,常用于测试 Linux 系统的 CPU 性能、内存读写、磁盘 I/O、线程调度、互斥锁,以及数据库(MySQL、PostgreSQL)负载。 +environment: | + 本应用在Docker环境中运行,安装Docker执行如下命令 + ``` + yum install -y docker + ``` +tags: | + sysbench镜像的Tag由其版本信息和基础镜像版本信息组成,详细内容如下 + + | Tag | Currently | Architectures | + |----------|-------------|------------------| + |[1.0.20-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/sysbench/1.0.20/24.03-lts-sp1/Dockerfile)| sysbench 1.0.20 on openEuler 24.03-LTS-SP1 | amd64, arm64 | + +download: | + 拉取镜像到本地 + ``` + docker pull openeuler/sysbench:{Tag} + ``` + +usage: | + - 以交互式Shell运行容器: + + 通过交互式 Shell 启动容器,使用sysbench: + ``` + docker run -it --rm openeuler/sysbench:{Tag} bash + ``` + + - CPU测试 + + 模拟大量算术计算,看 CPU 能处理多少次 + ``` + sysbench cpu --cpu-max-prime=20000 --threads=4 run + ``` + **选项:** + * `--cpu-max-prime=20000:` 计算素数的最大值,越大越耗 CPU + * `--threads=4:` 线程数 + * `run:` 执行测试 + + - 内存测试 + + 测试内存读写带宽 + ``` + sysbench memory --memory-block-size=1M --memory-total-size=10G run + ``` + **选项:** + * `--memory-block-size=1M:` 每次读写块大小,默认 1K + * `--memory-total-size=10G:` 总读写数据量 + * `run:` 执行测试 + +license: GPL-2.0 license +similar_packages: + - UnixBench: UnixBench 是一个经典的、跨 Unix/Linux 平台的系统基准测试套件,主要用于衡量操作系统和硬件整体性能表现。 +dependency: + - openssl + - mariadb + - libaio + - pkgconfig + - libtool diff --git a/Others/sysbench/doc/picture/logo.png b/Others/sysbench/doc/picture/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..4b31773bf6c2a4d66f2464d14e865372acdc9d04 Binary files /dev/null and b/Others/sysbench/doc/picture/logo.png differ diff --git a/Others/unixbench/README.md b/Others/unixbench/README.md new file mode 100644 index 0000000000000000000000000000000000000000..32a365fa01d307d17e48a3fbc571c0eca2851f9a --- /dev/null +++ b/Others/unixbench/README.md @@ -0,0 +1,46 @@ +# Quick reference + +- The official UnixBench docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative). + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community). + +# UnixBench | openEuler +Current UnixBench docker images are built on the [openEuler](https://repo.openeuler.org/). This repository is free to use and exempted from per-user rate limits. + +UnixBench is the original BYTE UNIX benchmark suite, updated and revised by many people over the years. + +# Supported tags and respective Dockerfile links +The tag of each `unixbench` docker image is consist of the version of `unixbench` and the version of basic image. The details are as follows + +| Tag | Currently | Architectures | +|----------|-------------|------------------| +|[6.0.0-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/unixbench/6.0.0/24.03-lts-sp1/Dockerfile)| UnixBench 6.0.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 | + +# Usage +In this usage, users can select the corresponding `{Tag}` based on their requirements. + +- Pull the `openeuler/unixbench` image from docker + + ```bash + docker pull openeuler/unixbench:{Tag} + ``` + +- Run with an interactive shell + + You can also start the container with an interactive shell to use unixbench. + ``` + docker run -it --rm openeuler/unixbench:{Tag} bash + ``` + +- System Benchmark + + Run is the main script used to run UnixBench, a widely used system benchmark suite for Unix-like operating systems. + ``` + ./Run dhry2reg + ``` + Executing the `Dhrystone 2` benchmark instead of running the full UnixBench suite. + +# Question and answering +If you have any questions or want to use some special features, please submit an issue or a pull request on [openeuler-docker-images](https://gitee.com/openeuler/openeuler-docker-images). \ No newline at end of file diff --git a/Others/unixbench/doc/image-info.yml b/Others/unixbench/doc/image-info.yml new file mode 100644 index 0000000000000000000000000000000000000000..36371242c88ff86099dd3f894745027db966e7a6 --- /dev/null +++ b/Others/unixbench/doc/image-info.yml @@ -0,0 +1,44 @@ +name: unixbench +category: others +description: UnixBench 是一个经典的、跨 Unix/Linux 平台的系统基准测试套件,主要用于衡量操作系统和硬件整体性能表现。 +environment: | + 本应用在Docker环境中运行,安装Docker执行如下命令 + ``` + yum install -y docker + ``` +tags: | + unixbench镜像的Tag由其版本信息和基础镜像版本信息组成,详细内容如下 + + | Tag | Currently | Architectures | + |----------|-------------|------------------| + |[ 6.0.0-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/unixbench/ 6.0.0/24.03-lts-sp1/Dockerfile)| UnixBench 6.0.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 | + +download: | + 拉取镜像到本地 + ``` + docker pull openeuler/unixbench:{Tag} + ``` + +usage: | + - 以交互式Shell运行容器: + + 通过交互式 Shell 启动容器,使用unixbench: + ``` + docker run -it --rm openeuler/unixbench:{Tag} bash + ``` + + - 系统测试 + + Run 是用于执行 UnixBench 的主脚本,UnixBench 是一个在类 Unix 操作系统上广泛使用的系统基准测试套件。 + ``` + ./Run dhry2reg + ``` + 只执行 `Dhrystone 2` 基准测试,而不是运行完整的 UnixBench 测试套件。 + +license: GPL-2.0 license +similar_packages: + - sysbench: sysbench 是一个轻量级的、模块化的多线程基准测试工具,常用于测试 Linux 系统的 CPU 性能、内存读写、磁盘 I/O、线程调度、互斥锁,以及数据库(MySQL、PostgreSQL)负载。 +dependency: + - openssl + - systemd + - perl diff --git a/Others/unixbench/doc/picture/logo.png b/Others/unixbench/doc/picture/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..cf1efbb740c06dcdec447d38cae362fcf4cda6b4 Binary files /dev/null and b/Others/unixbench/doc/picture/logo.png differ diff --git a/Others/wrk/README.md b/Others/wrk/README.md new file mode 100644 index 0000000000000000000000000000000000000000..8b2029a07a273f18dfeaba45394f688426e8f75b --- /dev/null +++ b/Others/wrk/README.md @@ -0,0 +1,59 @@ +# Quick reference + +- The official wrk docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative). + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community). + +# wrk | openEuler +Current wrk docker images are built on the [openEuler](https://repo.openeuler.org/). This repository is free to use and exempted from per-user rate limits. + +wrk is a modern HTTP benchmarking tool capable of generating significant load when run on a single multi-core CPU. It combines a multithreaded design with scalable event notification systems such as epoll and kqueue. + +# Supported tags and respective Dockerfile links +The tag of each `wrk` docker image is consist of the version of `wrk` and the version of basic image. The details are as follows + +| Tag | Currently | Architectures | +|----------|-------------|------------------| +|[4.2.0-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/wrk/4.2.0/24.03-lts-sp1/Dockerfile)| wrk 4.2.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 | + +# Usage +In this usage, users can select the corresponding `{Tag}` based on their requirements. + +- Pull the `openeuler/wrk` image from docker + + ```bash + docker pull openeuler/wrk:{Tag} + ``` + +- Run with an interactive shell + + You can start the container with an interactive shell to use wrk. + ``` + docker run -it --rm openeuler/wrk:{Tag} bash + ``` + +- Start a simple HTTP server + + In the directory containing you `index.html` file, run: + ``` + nohup python3 -m http.server 8080 & + ``` + * This command will serve files from the current directory on port `8080`. + * `nohup` and `&` allow the sever to keep running in the background. + +- Run a stress test using `wrk` + + Once the server is running, use `wrk` to generate HTTP load: + ``` + wrk -t12 -c400 -d30s http://127.0.0.1:8080/index.html + ``` + `Options:` + * `-t12:` Use 12 threads to generate load. + * `-c400:` Use 400 open HTTP connections. + * `-d30s:` Run the test for 30 seconds. + * `http://127.0.0.1:8080/index.html:` Target URL to test. + +# Question and answering +If you have any questions or want to use some special features, please submit an issue or a pull request on [openeuler-docker-images](https://gitee.com/openeuler/openeuler-docker-images). \ No newline at end of file diff --git a/Others/wrk/doc/image-info.yml b/Others/wrk/doc/image-info.yml new file mode 100644 index 0000000000000000000000000000000000000000..15681f08b3ab1836da26310286aecc186ecf7081 --- /dev/null +++ b/Others/wrk/doc/image-info.yml @@ -0,0 +1,56 @@ +name: wrk +category: others +description: wrk 是一个开源的、现代化的 HTTP 压力测试工具,支持多线程、多连接。 +environment: | + 本应用在Docker环境中运行,安装Docker执行如下命令 + ``` + yum install -y docker + ``` +tags: | + wrk镜像的Tag由其版本信息和基础镜像版本信息组成,详细内容如下 + + | Tag | Currently | Architectures | + |----------|-------------|------------------| + |[4.2.0-oe2403sp1](https://gitee.com/openeuler/openeuler-docker-images/blob/master/Others/wrk/4.2.0/24.03-lts-sp1/Dockerfile)| wrk 4.2.0 on openEuler 24.03-LTS-SP1 | amd64, arm64 | + +download: | + 拉取镜像到本地 + ``` + docker pull openeuler/wrk:{Tag} + ``` + +usage: | + - 以交互式Shell运行容器: + + 通过交互式 Shell 启动容器,使用wrk: + ``` + docker run -it --rm openeuler/wrk:{Tag} bash + ``` + + - 启动一个简单的HTTP服务 + + 在有index.html文件(任意内容)的目录下执行: + ``` + nohup python3 -m http.server 8080 & + ``` + * 该命令会将当前目录作为文件根目录,通过端口 8080 提供 HTTP 服务。 + * 使用 nohup 和 & 可以让服务器在后台持续运行,不会因关闭终端而中断。 + + - 使用 wrk 进行压力测试 + + 当服务器正常运行后,使用 wrk 来生成 HTTP 压力: + ``` + wrk -t12 -c400 -d30s http://127.0.0.1:8080/index.html + ``` + `参数说明:` + * `-t12:` 使用 12 个线程来产生负载。 + * `-c400:` 使用 400 个并发 HTTP 连接。 + * `-d30s:` 压测持续 30 秒。 + * `http://127.0.0.1:8080/index.html:` 目标 URL。 + +license: Apache-2.0 License +similar_packages: + - JMeter: Apache JMeter 是一个开源的性能测试工具,主要用于对各种服务进行负载测试和功能测试。 +dependency: + - openssl + - pkgconf diff --git a/Others/wrk/doc/picture/logo.png b/Others/wrk/doc/picture/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..e4a4ccbc93fe6bdcb0cea400d240d953a0abb61d Binary files /dev/null and b/Others/wrk/doc/picture/logo.png differ