Container QoS Control via Bus Management Module
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing computers cannot perform effective Quality of Service (QoS) control on containers when they occupy or access hardware devices, leading to unmet resource requirements for process groups.
Innovation Solution
A computer system allocates a container ID to each container using a scheduling subsystem, sending a bus request with the container ID and hardware device ID to a system bus, where a bus management module searches for and configures QoS parameters to manage resource allocation, ensuring that hardware devices meet the resource requirements of process groups.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If a container accesses a hardware device without QoS control, then the container can freely use hardware resources, but the resource requirements of the process group in the container cannot be met
Solution Approach 1:
The patent applies preliminary action by pre-configuring QoS parameters in the bus management module before the container accesses the hardware device. The system pre-establishes the mapping relationship between container IDs and QoS parameters, so that when a bus request is received, the QoS control can be immediately applied without real-time computation delays.
Solution Approach 2:
The bus management module acts as an intermediary between the container and the hardware device. It intercepts bus requests, identifies the container ID, retrieves the corresponding QoS parameters, and applies the appropriate resource allocation control. This intermediary mechanism enables QoS control without requiring modifications to the container or hardware device themselves.
2Reliability
If QoS parameters are configured for each container-hardware device pair, then resource requirements can be met, but the system complexity increases
Solution Approach 1:
The bus management module serves multiple functions: it manages bus requests, identifies containers, retrieves QoS parameters, and applies resource allocation control. By making this single component multi-functional, the patent avoids creating separate complex systems for each function, thereby reducing overall system complexity while still providing comprehensive QoS control.
Solution Approach 2:
The system uses parameter changes by storing QoS configurations as adjustable parameters in the bus management module. These parameters (such as bandwidth limits, priority levels, and response time requirements) can be modified without changing the underlying system structure, allowing flexible QoS control while maintaining system simplicity.
3Reliability
If the bus management module searches for QoS parameters for every bus request, then accurate QoS control is achieved, but the processing time increases
Solution Approach 1:
The QoS parameters are pre-configured and stored in the bus management module before runtime. When a bus request arrives, the module only needs to perform a simple lookup based on the container ID rather than performing complex real-time calculations or searches, significantly reducing processing time while maintaining accurate QoS control.
Solution Approach 2:
The system uses copying by storing QoS parameter templates in the bus management module that can be quickly retrieved and applied. Instead of generating QoS parameters on-demand, the system copies pre-defined parameter sets based on container ID, which is a much faster operation that maintains accuracy while reducing processing time.
Data Source
Figure 1A
Figure 1B~2
Figure 3
AI summary
The present invention discloses a computer and a quality of service control method and apparatus, and pertains to the computer field. The method includes: allocating, to at least one container of a computer, a container ID that corresponds one-to-one to the container; sending a bus request to a system bus, where the bus request carries the container ID and a hardware device ID of a hardware device used by the container indicated by the container ID; searching, according to the bus request, for a quality of service QoS parameter corresponding to both the container ID and the hardware device ID, where the QoS parameter is stored in a bus management module; and configuring, according to the found QoS parameter, a resource required when the container corresponding to the QoS parameter uses the hardware device corresponding to the QoS parameter. According to the present invention, the system bus may perform corresponding QoS control according to the QoS parameter corresponding to both the container ID and the hardware device ID, so that the hardware device allocated to the container can meet resource requirements of a process group in the container.