Skip to content

Checking your reading list…

Retry verification

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

OpenCloudOS Cloud‑Native Practices, Resource Utilization Enhancements, and Testing Framework Overview
Cloud Native 14 min read

OpenCloudOS Cloud‑Native Practices, Resource Utilization Enhancements, and Testing Framework Overview

The article introduces OpenCloudOS’s cloud‑native initiatives—including a mixed‑workload CPU QoS scheduler, the RUE resource‑utilization enhancement, the eBPF‑based nettrace network‑diagnosis tool, and the TCase/TSuite testing platform—highlighting how these innovations improve CPU utilization, cut costs, and ensure high‑quality releases.

OpenCloudOS positions itself as a next‑generation cloud‑native operating system, covering the full stack from upstream (L0) to community stable releases (L3). To address low CPU utilization in mixed online/offline workloads, the project introduced a low‑level resource isolation (RUE) layer and a BT scheduler that provides absolute pre‑emptive CPU QoS, effectively doubling resource usage while keeping online‑task interference below 1%.

The RUE solution extends QoS guarantees to memory, I/O, and network resources, exposing interfaces for Kubernetes to schedule containers based on fine‑grained metrics, thereby achieving higher overall efficiency and a 50% cost reduction.

In response to national carbon‑neutral goals, OpenCloudOS also developed the "Wuneng" power‑optimization subsystem, which enables elastic CPU operation and deep‑sleep states, reducing server energy consumption by 5‑30% with negligible performance impact.

For network troubleshooting in cloud‑native environments, the team built nettrace, an eBPF‑based tool that combines packet tracing, fault diagnosis, anomaly monitoring, and container‑level packet coloring. It replaces traditional utilities such as tcpdump, ftrace, kprobe, and dropwatch, offering faster root‑cause analysis and automated remediation suggestions.

The testing side is handled by the TCase platform, which automates test case import, supports suite and template cases, and integrates with CI pipelines (e.g., Jenkins). TSuite, a test‑suite framework written in C, Shell, and Python, organizes tests into directories with shared resources, provides automatic build/run hooks, and records results for Allure reporting.

Overall, OpenCloudOS’s combined efforts in resource isolation, power optimization, network observability, and a robust testing infrastructure demonstrate a comprehensive strategy to improve performance, lower operational costs, and maintain high reliability for cloud‑native deployments.

suite_example           ---------> test suite top‑level directory, absolute path stored in $TST_TS_TOPDIR
├── cmd                 ---------> suite common commands
│   ├── hello.c
│   └── Makefile
├── tst_common          -----> [do not modify] submodule, common code library
│   ├── cmd
│   │   ├── Makefile
│   │   └── tsuite.c
│   ├── kmod
│   │   ├── kmod_common.c
│   │   └── Makefile
│   ├── lib
│   │   ├── assert.sh
│   │   ├── common.c
│   │   ├── common_func.sh
│   │   ├── common.h
│   │   ├── common.sh
│   │   ├── main.h
│   │   ├── Makefile
│   │   ├── signature.sh
│   │   ├── tst_ts_setup
│   │   ├── tst_ts_teardown
│   │   └── tsuite_func.sh
│   ├── Makefile
│   └── tsuite
├── kmod                ---------> kernel modules, each .c compiled to a .ko
│   ├── kmod_common.c
│   └── Makefile
├── lib                 ---------> suite shared libraries (.sh sourced, .c compiled, .py imported)
│   ├── common.sh
│   ├── Makefile
│   ├── other_common.sh
│   ├── ts_setup
│   └── ts_teardown
├── logs                ---------> logs and temporary runtime data
├── Makefile
├── testcase            ---------> test case directory, all cases placed here
│   ├── Makefile
│   ├── test_cmd_ls.sh  ---------> test case, .sh/.py executed directly, .c compiled then run
│   └── test_c_testcase.c -------> test case
└── tsuite -> ./common/tsuite ---> symlink to tsuite file in common code library
About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

Report an issue with this article
testingLinuxeBPFResource UtilizationOpen-source

Reader feedback

Was this useful?

Useful0

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion