CN111580957B - Resource allocation method, equipment and device for virtual space of passive equipment - Google Patents

Resource allocation method, equipment and device for virtual space of passive equipment Download PDF

Info

Publication number
CN111580957B
CN111580957B CN202010307531.0A CN202010307531A CN111580957B CN 111580957 B CN111580957 B CN 111580957B CN 202010307531 A CN202010307531 A CN 202010307531A CN 111580957 B CN111580957 B CN 111580957B
Authority
CN
China
Prior art keywords
operating
resources
utilization rate
virtual dynamic
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010307531.0A
Other languages
Chinese (zh)
Other versions
CN111580957A (en
Inventor
丁良
李在学
蔡富东
郭国信
吕昌峰
文刚
陈雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Senter Electronic Co Ltd
Original Assignee
Shandong Senter Electronic Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Senter Electronic Co Ltd filed Critical Shandong Senter Electronic Co Ltd
Priority to CN202010307531.0A priority Critical patent/CN111580957B/en
Publication of CN111580957A publication Critical patent/CN111580957A/en
Application granted granted Critical
Publication of CN111580957B publication Critical patent/CN111580957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a resource allocation method, equipment and a device for a virtual space of passive equipment, which are used for solving the technical problem of unbalanced resource allocation of the virtual space of the conventional passive equipment. The method comprises the following steps: determining the utilization rate of the operating resources in each virtual dynamic operating space according to the initial values of the operating resources in a plurality of virtual dynamic operating spaces in the passive equipment; determining the falling probability according to the utilization rate of the operating resources in each virtual dynamic operating space and a preset utilization rate interval by taking preset time as a period; and under the condition that the falling probability is lower than a first preset threshold, dynamically adjusting and distributing the operation resources in the plurality of virtual dynamic operation spaces according to a preset minimum adjustment unit until the falling probability is not lower than the first preset threshold. According to the method and the device, the resource allocation amount in the virtual dynamic running space is continuously adjusted through the minimum adjusting unit, so that the utilization rate of the running resources is optimized, and the efficient and balanced allocation of the running resources is realized.

Description

Resource allocation method, equipment and device for virtual space of passive equipment
Technical Field
The present application relates to the field of virtual space technologies, and in particular, to a method, a device, and an apparatus for allocating resources in a virtual space of a passive device.
Background
In recent years, as industrial power consumption and household power consumption have increased, security importance to power transmission lines has also become higher and higher. Inspection personnel usually adopt an image acquisition device to detect the safety of the power transmission line, and adopt various types of sensors to monitor environmental factors around the power transmission line so as to ensure the stable operation of the power transmission line. The monitoring data of each sensor is transmitted to the passive equipment of the power transmission line for analysis, and whether potential safety hazards exist in the environmental factors around the power transmission line can be determined.
The passive equipment of the power transmission line adopts a virtual space technology, but in the use process of the virtual space technology, the problem of resource distribution imbalance exists, so that originally insufficient onboard resources cannot be fully used. In addition, the existing resource allocation methods are mostly completed by adopting complex algorithms and are not suitable for the current system situation of passive equipment.
Disclosure of Invention
The embodiment of the application provides a method, equipment and a device for resource allocation of a virtual space of passive equipment, which are used for solving the technical problems that the resource allocation of the virtual space of the conventional passive equipment is unbalanced, and a method for completing the resource allocation by adopting a complex algorithm is not suitable for the passive equipment.
In a first aspect, an embodiment of the present application provides a method for allocating resources in a virtual space of a passive device, including: determining the utilization rate of the operating resources in each virtual dynamic operating space according to the initial values of the operating resources in a plurality of virtual dynamic operating spaces in the passive equipment; the virtual dynamic operation spaces in the passive equipment are obtained by pre-dividing the passive equipment; determining the falling probability according to the utilization rate of the operating resources in each virtual dynamic operating space and a preset utilization rate interval by taking preset time as a period; the falling probability refers to the utilization rate of the operating resources in the virtual dynamic operating spaces and the probability in a preset utilization rate interval of the operating resources; and under the condition that the falling probability is lower than a first preset threshold, dynamically adjusting and distributing the operation resources in the virtual dynamic operation spaces according to a preset minimum adjustment unit until the falling probability is not lower than the first preset threshold.
In one implementation of the present application, the execution resource includes any one or more of a CPU resource, a memory resource, and an I/O resource.
In an implementation manner of the present application, dynamically adjusting and allocating the operation resources in the plurality of virtual dynamic operation spaces according to a preset minimum adjustment unit specifically includes: under the condition that the utilization rate of any operating resource in any virtual dynamic operating space of the passive equipment is lower than the minimum value of the utilization rate interval corresponding to any operating resource, determining a first difference value between the utilization rate of any operating resource and the minimum value of the corresponding utilization rate interval; and dynamically reducing the allocation amount of any operation resource in any virtual dynamic operation space according to a preset adjustment unit based on the first difference.
In an implementation manner of the present application, dynamically adjusting and allocating the operation resources in the plurality of virtual dynamic operation spaces according to a preset minimum adjustment unit specifically includes: under the condition that the utilization rate of any operating resource in any virtual dynamic operating space of the passive equipment is higher than the maximum value of the utilization rate interval corresponding to any operating resource, determining a second difference value between the utilization rate of any operating resource and the maximum value of the corresponding utilization rate interval; and dynamically increasing the allocation amount of any operating resource in any virtual dynamic operating space according to a preset adjusting unit based on the second difference.
In one implementation of the present application, the method further comprises: under the condition that the first difference value or the second difference value is smaller than or equal to a second preset threshold value, dynamically reducing or increasing the allocation amount of any operating resource in any virtual dynamic operating space according to a preset adjusting unit; the preset adjustment unit is a minimum adjustment unit.
In one implementation of the present application, the method further comprises: under the condition that the first difference value or the second difference value is larger than a second preset threshold value, dynamically reducing or increasing the allocation amount of any operation resource in any virtual dynamic operation space according to a preset adjustment unit; presetting n minimum adjustment units as the preset adjustment units; wherein n is an integer greater than 1.
In an implementation manner of the present application, after dynamically adjusting and allocating the running resources in the virtual dynamic running spaces, the method further includes: and updating the plurality of virtual dynamic operating spaces in real time by using an automatic update method, and acquiring the distribution values of the operating resources in the plurality of virtual dynamic operating spaces after dynamic adjustment.
In one implementation of the present application, the initial value of the allocation of the operating resources is an integer multiple of the minimum adjustment unit.
In a second aspect, an embodiment of the present application provides a resource allocation device for a virtual space of a passive device, including: a processor and a memory; the memory has stored thereon computer executable code that, when executed, causes the processor to perform a method of resource allocation of virtual space for passive devices as described above.
In a third aspect, an embodiment of the present application further provides a device for allocating resources in a virtual space of a passive device, including: the first determining module is used for determining the utilization rate of the operating resources in each virtual dynamic operating space according to the initial values of the operating resources in the virtual dynamic operating spaces in the passive equipment; the virtual dynamic operation spaces in the passive equipment are obtained by pre-dividing the passive equipment; the second determining module is used for determining the falling probability according to the utilization rate of the operating resources in each virtual dynamic operating space and a preset utilization rate interval by taking preset time as a period; the falling probability refers to the utilization rate of the operating resources in the virtual dynamic operating spaces and the probability in a preset utilization rate interval of the operating resources; and the dynamic adjustment module is used for dynamically adjusting and distributing the operation resources in the plurality of virtual dynamic operation spaces according to a preset minimum adjustment unit under the condition that the falling probability is lower than a first preset threshold value until the falling probability is not lower than the first preset threshold value.
The method, the device and the apparatus for allocating the resources of the virtual space of the passive device provided by the embodiment of the application are based on the existing hardware and the existing operating platform, the passive device is divided into a plurality of virtual dynamic operating spaces by cutting in the horizontal dimension and the longitudinal dimension, and the operating resources are allocated to the virtual dynamic operating spaces. And determining the probability that the operating resource utilization rate in each virtual dynamic operating space falls into the preset utilization rate interval through the preset utilization rate interval. And when the falling probability is lower than a first preset threshold value, dynamically adjusting and distributing the operation resources in each virtual dynamic operation space by using a preset minimum adjusting unit so as to optimize the utilization rate of each type of operation resources.
According to the resource allocation method, the device and the device for the virtual space of the passive equipment, the existing running resource monitoring and adjusting scheme with various server levels and high power consumption is abandoned, onboard resources of the passive equipment are fully utilized, and efficient and balanced allocation of the running resources in each virtual dynamic running space is achieved. The operation resource allocation method provided by the embodiment of the application has the characteristics of rapidness and high efficiency, and is more suitable for the passive device mentioned in the embodiment of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram illustrating partitioning of a plurality of virtual dynamic operating spaces in a passive device according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a resource allocation method for a virtual space of a passive device according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of an internal structure of a resource allocation device for a virtual space of a passive device according to an embodiment of the present application;
fig. 4 is a schematic diagram of an internal structure of a resource allocation apparatus for a virtual space of a passive device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In recent years, with the increasing amount of electricity used in industry, agriculture, and household and business, a certain workload is imposed on the transmission line. The safety of the power transmission line is related to the stable operation of industrial and agricultural power utilization and household power utilization at any time. Therefore, the importance of the safety detection of the power transmission line is higher and higher. The inspection staff usually adopts the transmission line inspection robot to detect the faults of the transmission line and adopts passive equipment to receive the monitoring data of various sensors so as to realize the monitoring of the environmental factors around the transmission line. In order to meet the diversity of business requirements and the security of application data, a virtual space technology is adopted in passive equipment.
However, the problem of unbalanced board-mounted resource allocation in the virtual operating space still exists in the use process of the existing passive device. Therefore, dynamic adjustment and allocation of operating resources to virtual spaces in passive devices are required, but most of the existing resource allocation methods in various virtual spaces are completed by adopting complex algorithms, the allocation process is too complex and redundant, and the method is not suitable for the current system situation of the passive devices.
Therefore, a resource allocation method for a virtual space of a passive device is lacking in the prior art to solve the above technical problem.
The embodiment of the application provides a resource allocation method for a virtual space of a passive device, which determines the falling probability that the utilization rate of an operating resource falls into a preset utilization rate interval of the operating resource through the utilization rate of the operating resource in each virtual dynamic operating space. And under the condition that the falling probability is lower than a first preset threshold value, the preset minimum adjusting unit is utilized to dynamically adjust and allocate the operating resources in each virtual dynamic operating space, and finally the utilization rate of various operating resources is optimized.
The technical solutions proposed in the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic diagram illustrating partitioning of a plurality of virtual dynamic operating spaces in a passive device according to an embodiment of the present application.
As shown in fig. 1, the passive device provided in the embodiment of the present application is based on an existing hardware platform and an existing operating system, and adopts a virtual space technology. The virtual dynamic operation space is divided into a plurality of virtual dynamic operation spaces in the transverse dimension and the longitudinal dimension.
The virtual dynamic operating spaces in the embodiment of the application are obtained by partitioning and isolating the onboard resources of the passive devices in a lightweight manner (only aiming at CPU, memory, I/O resources and other resources which are necessary for the operation of the virtual space), so that the purpose of isolating each virtual dynamic operating space from other virtual dynamic spaces or operating systems is achieved.
As shown in fig. 1, the passive device is divided into three layers in the lateral dimension, which are: the data access layer, the data processing layer and the data transmission layer are used for accessing data, processing data and transmitting data. Each horizontal layer is divided into a plurality of virtual dynamic running spaces in the longitudinal dimension and used for storing one or more application programs and data generated by running the application programs.
The data access layer of the passive equipment is accessed to the breeze oscillation sensor and the like and is used for receiving monitoring data uploaded by various environment monitoring sensors, then the accessed data is processed through the data processing layer, and the data is transmitted to other equipment such as a server through the data transmission layer, so that the environment around the power transmission line is monitored, and the safe operation of the power transmission line is ensured.
In an embodiment of the application, the passive device is installed in the transmission line like a storage device and is used for storing received environment monitoring data uploaded by various sensors, so that the inspection device can monitor environmental factors around the transmission line based on various environment monitoring data, and stable operation of the transmission line is guaranteed.
In one embodiment of the present application, any one or more of the following sensors may upload environmental monitoring data to the passive device: a wire icing sensor, a microclimate sensor, a tower inclination sensor and a breeze vibration sensor.
In an application scenario of the application, when the position of the power transmission line is in a windy weather, the amount of environment monitoring data uploaded to the passive device by the breeze sensor is increased, and the breeze vibration sensor is in a working state of monitoring constantly for ensuring smooth operation of the power transmission line. Therefore, the data volume in the virtual dynamic operation space corresponding to the breeze vibration sensor is greatly increased, the utilization rate of the operation resources in the virtual dynamic operation space is high, and even the operation resources are utilized by one hundred percent. At this time, the operating resources in the virtual dynamic operating space corresponding to the breeze vibration sensor are increased and adjusted. Therefore, when one or more sensors of various monitoring sensors of the power transmission line continuously work, the problem that the utilization rate of the operation resources in the virtual dynamic operation space corresponding to the sensor is too high occurs.
Based on this, the embodiment of the application performs dynamic adjustment and allocation on the operating resources in the virtual dynamic operating space with the over-high utilization rate or the low utilization rate, so as to achieve the effect of optimizing the utilization rate of the operating resources in each virtual dynamic operating space. The specific adjustment process is shown in fig. 2.
Fig. 2 is a schematic flowchart of a resource allocation method for a virtual space of a passive device according to an embodiment of the present application. As shown in fig. 2, the method for allocating operating resources in a virtual space of a passive device includes the following steps:
step 201, determining the utilization rate of the operating resources in the virtual dynamic operating spaces.
The passive device is used for receiving environment monitoring data uploaded by various sensors, and is divided into a plurality of virtual dynamic operation spaces in the transverse dimension and the longitudinal dimension in advance. Each virtual dynamic operating space needs various operating resources, and only through reasonable operating resource allocation, the influence of one or more virtual dynamic operating spaces on the performance of other virtual dynamic operating spaces due to the fact that one or more virtual dynamic operating spaces occupy excessive operating resources can be effectively avoided.
When a plurality of virtual dynamic operation spaces are created in the passive device software system, various operation resources are also distributed into the divided virtual dynamic operation spaces.
Furthermore, each virtual dynamic operation space is started based on the distribution initial value of the operation resources in the virtual dynamic operation spaces in the passive device. And then determining the utilization rate of the operating resources in each virtual dynamic operating space based on monitoring data uploaded by various sensors, data generated by passive equipment in the operating process and the like.
In one embodiment of the present application, the execution resources in the virtual dynamic execution space include any one or more of CPU resources, I/O resources, and memory resources.
In another embodiment of the present application, the initial value of the allocation of each type of operating resource is an integer multiple of the preset minimum adjustment unit.
Step 202, with the preset time as a period, determining the falling probability of the utilization rate of various operation resources.
After determining the utilization rate of the operating resources in each virtual dynamic operating space, determining the falling probability according to a preset utilization rate interval by taking preset time as a period. The falling probability refers to the utilization rate of the operating resources in the virtual dynamic operating spaces and the probability in a preset operating resource utilization interval.
In an embodiment of the present application, for example, the memory resources are used, the preset interval of the utilization rate of the memory resources is [ 75%, 80% ], the minimum adjustment unit is aMB, and the initial value of the memory resources in each virtual dynamic operating space is b. And b is an integral multiple of the minimum adjustment unit a, and the accumulated value of b in all the virtual dynamic operating spaces is smaller than the total memory of the system.
When the utilization rate of the memory resource b in a certain virtual dynamic operating space falls within the utilization rate interval [ 75%, 80% ], the utilization rate of the memory resource in the virtual dynamic operating space is optimized.
In one embodiment of the application, the falling probability is determined, and the total number n of virtual dynamic running spaces divided by the passive devices is determined firstly; then determining the number c of the utilization rates of the n memory resources b falling into a utilization rate interval (75%, 80%); finally, the falling probability is determined to be c/n.
In another embodiment of the present application, determining the probability of falling into the virtual dynamic operating space, first determining the utilization rate d of the memory resource b in each virtual dynamic operating space; then, the probability of falling is determined as the utilization rate d of each memory resource b, and the probability of falling into the utilization rate interval [ 75%, 80% ]. The specific determination method comprises the following steps:
determining the number n of the passive devices divided into a plurality of virtual dynamic operating spaces; then determining the utilization rate of n memory resources b and determining the number c of the utilization rate of the n memory resources b falling into a utilization rate interval [ 75%, 80% ]; and determining that the integral body falls into the probability c/n. The overall falling probability represents the operation resource b in each virtual dynamic operation space, and the probability of falling in the utilization rate interval [ 75%, 80% ] is the falling probability.
In an embodiment of the present application, the probability that the memory resource utilization rate in each virtual dynamic operating space falls within the utilization rate interval [ 75%, 80% ] is determined with a period of 30 minutes. And if the falling probability within 30 minutes is less than 70%, dynamically adjusting and distributing the memory resources in the virtual dynamic operating spaces. If the falling probability in 30 minutes is not lower than 70%, continuously determining the utilization rate of the memory resources in the virtual dynamic operating spaces by taking 30 minutes as a period, and determining the falling probability in a utilization rate interval [ 75%, 80% ].
And 203, dynamically adjusting and distributing the running resources under the condition that the falling probability is lower than a first preset threshold value.
After the falling probability is determined, judging the size relation between the falling probability and a first preset threshold, and when the falling probability is lower than the first preset threshold, dynamically adjusting and distributing the operation resources in each virtual dynamic operation space until the falling probability is not lower than the first preset threshold. The specific dynamic adjustment process comprises the following two steps:
step 1: and reducing the allocation amount of any running resource in any virtual dynamic running space.
When the utilization rate of any operating resource in any virtual dynamic operating space is lower than the minimum value of the utilization rate interval corresponding to the operating resource, it is indicated that the allocation amount of any operating resource in any virtual dynamic operating space is too much, so that the utilization rate is low.
Determining the utilization rate of any operating resource in any virtual dynamic operating space and a first difference value between the minimum value of the utilization rate interval corresponding to any operating resource, and reducing the allocation amount of any operating resource according to the first difference value and a preset value.
Step 2: and increasing the allocation amount of any running resource in any virtual dynamic running space.
When the utilization rate of any operating resource in any virtual dynamic operating space is higher than the maximum value of the utilization rate interval corresponding to the operating resource, it is indicated that the allocation amount of any operating resource in any virtual dynamic operating space is too low, and the utilization rate is higher.
And determining the utilization rate of any operating resource in any virtual dynamic operating space and a second difference value between the maximum value of the utilization rate interval corresponding to any operating resource, and increasing the allocation amount of any operating resource according to the second difference value and a preset value.
In an embodiment of the present application, the first difference is equal to a minimum value of the interval of the utilization rate of any operating resource minus the utilization rate of any operating resource; the second difference value is equal to the maximum value of the interval of subtracting the utilization rate of any operating resource from the utilization rate of any operating resource; that is, both the first difference and the second difference in the implementation of the present application are positive values.
It should be noted that, the above step 1 and step 2 are only used to illustrate a process performed by dynamically adjusting the running resources in the virtual dynamic running space in the embodiment of the present application, and are not used to limit an execution sequence of the above two steps. As will be clear to those skilled in the art, there is no fixed execution order for increasing the allocation amount of the operating resource in a virtual dynamic operating space or decreasing the allocation amount of the operating resource in a virtual dynamic operating space, and therefore, the embodiments of the present application are not limited thereto.
In an embodiment of the present application, reducing or increasing the allocation amount of any operating resource in any virtual dynamic operating space according to a preset threshold specifically includes:
under the condition that the first difference value or the second difference value is lower than the second preset threshold value, the utilization rate of any one operation resource is close to a preset utilization rate interval, and at the moment, the utilization rate of any one operation resource can fall into the preset utilization rate interval only by finely adjusting any one operation resource.
At this time, the allocation amount of any operation resource in any virtual dynamic operation space is reduced or increased according to a minimum adjustment unit.
Under the condition that the first difference or the second difference is not lower than the second preset threshold, it is indicated that the utilization rate of any one operating resource is far away from the preset utilization rate interval, and at this time, more adjustment needs to be performed on any one operating resource to enable the utilization rate of any one operating resource to fall into the preset utilization rate interval.
At this time, the allocation amount of any operating resource in any virtual dynamic operating space is reduced or increased according to p minimum adjustment units. Wherein p is an integer greater than 1.
In an embodiment of the present application, after the dynamic adjustment and allocation of the operating resources in the plurality of virtual dynamic operating spaces are completed, the plurality of virtual dynamic operating spaces are updated by using an automatic update method, the utilization rates of the plurality of virtual dynamic operating spaces are continuously determined, and the falling probability of the operating resources is continuously monitored.
Based on the same inventive concept, the embodiment of the application also provides running resource allocation equipment of the virtual space of the passive equipment.
Fig. 3 is a schematic diagram of an internal structure of a resource allocation device for a virtual space of a passive device according to an embodiment of the present application. As shown in fig. 3, the resource allocation apparatus includes a processor 301, a memory 302; and the memory 302 has stored thereon computer executable code which, when executed, causes the processor 301 to perform a method of resource allocation of virtual space of a passive device as described above.
In an embodiment of the present application, the processor 301 is configured to determine, according to an initial value of an operation resource in a plurality of virtual dynamic operation spaces in the passive device, a utilization rate of the operation resource in each virtual dynamic operation space; the virtual dynamic operation spaces in the passive equipment are obtained by pre-dividing the passive equipment; the virtual dynamic operation system is used for determining the falling probability according to the utilization rate of the operation resources in each virtual dynamic operation space and a preset utilization rate interval by taking preset time as a period; the falling probability refers to the utilization rate of the operating resources in the virtual dynamic operating spaces and the probability in a preset utilization rate interval of the operating resources; and the method is also used for dynamically adjusting and distributing the operation resources in the virtual dynamic operation spaces according to a preset minimum adjustment unit under the condition that the falling probability is lower than a first preset threshold value until the falling probability is not lower than the first preset threshold value.
Based on the same inventive concept, the embodiment of the application also provides a running resource allocation device of the virtual space of the passive device.
Fig. 4 is a schematic diagram of an internal structure of a resource allocation apparatus for a virtual space of a passive device according to an embodiment of the present application. As shown in fig. 4, the resource allocation apparatus for a virtual space of a passive device includes:
the first determining module 401 is configured to determine, according to initial values of operating resources in a plurality of virtual dynamic operating spaces in the passive device, utilization rates of the operating resources in the virtual dynamic operating spaces.
A second determining module 402, configured to determine, with a preset time as a period, a falling probability according to a utilization rate of an operating resource in each virtual dynamic operating space and a preset utilization rate interval; the falling probability refers to the utilization rate of the operating resources in the virtual dynamic operating spaces and the probability in a preset utilization rate interval of the operating resources.
The dynamic adjustment module 403 is configured to, when the falling probability is lower than a first preset threshold, dynamically adjust and allocate the operation resources in the plurality of virtual dynamic operation spaces according to a preset minimum adjustment unit until the falling probability is not lower than the first preset threshold.
According to the resource allocation method, the resource allocation device and the resource allocation device for the virtual space of the passive equipment, the operation resource utilization rate in each virtual dynamic operation space is determined, the falling probability in the preset operation resource utilization rate interval is determined, and under the condition that the falling probability is lower than the first preset probability, the preset minimum adjustment unit is used for dynamically adjusting and allocating the operation resources in each virtual dynamic operation space, so that the utilization rate of various operation resources in the virtual space is optimized.
In addition, the resource allocation method provided by the embodiment of the application abandons the existing redundant and complex high-power-consumption adjustment schemes at various server levels, monitors the utilization rate of the operating resources in each virtual dynamic operating space in real time, has the characteristics of rapidness and high efficiency, is more suitable for the passive device in the embodiment of the application, and provides a more efficient resource allocation scheme for the operation of each virtual dynamic operating space in the passive device.
The embodiments in the present application are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for allocating resources of a virtual space of a passive device, the method comprising:
determining the utilization rate of the operating resources in each virtual dynamic operating space according to the initial values of the operating resources in a plurality of virtual dynamic operating spaces in the passive equipment; the virtual dynamic operation spaces in the passive equipment are obtained by pre-dividing the passive equipment;
determining the falling probability according to the utilization rate of the operating resources in each virtual dynamic operating space and a preset utilization rate interval by taking preset time as a period; the falling probability refers to the utilization rate of the operating resources in the virtual dynamic operating spaces and the probability in a preset utilization rate interval of the operating resources;
and under the condition that the falling probability is lower than a first preset threshold, dynamically adjusting and distributing the operation resources in the virtual dynamic operation spaces according to a preset minimum adjustment unit until the falling probability is not lower than the first preset threshold.
2. The method according to claim 1, wherein the operating resources include any one or more of CPU resources, memory resources, and I/O resources.
3. The method according to claim 1, wherein the dynamically adjusting and allocating the operating resources in the virtual dynamic operating spaces according to a preset minimum adjustment unit specifically comprises:
under the condition that the utilization rate of any operating resource in any virtual dynamic operating space of the passive equipment is lower than the minimum value of the utilization rate interval corresponding to any operating resource, determining a first difference value between the utilization rate of any operating resource and the minimum value of the corresponding utilization rate interval;
and dynamically reducing the allocation amount of any operating resource in any virtual dynamic operating space according to a preset adjustment unit based on the first difference.
4. The method according to claim 1, wherein the dynamically adjusting and allocating the operating resources in the virtual dynamic operating spaces according to a preset minimum adjustment unit specifically comprises:
under the condition that the utilization rate of any operating resource in any virtual dynamic operating space of the passive equipment is higher than the maximum value of the utilization rate interval corresponding to any operating resource, determining a second difference value between the utilization rate of any operating resource and the maximum value of the corresponding utilization rate interval;
and dynamically increasing the allocation amount of any operating resource in any virtual dynamic operating space according to a preset adjusting unit based on the second difference.
5. The method of any of claims 3 to 4, wherein the method further comprises:
under the condition that the first difference value or the second difference value is smaller than or equal to a second preset threshold value, dynamically reducing or increasing the allocation amount of any operating resource in any virtual dynamic operating space according to a preset adjusting unit; the preset adjustment unit is one minimum adjustment unit.
6. The method of any of claims 3 to 4, wherein the method further comprises:
under the condition that the first difference value or the second difference value is larger than a second preset threshold value, dynamically reducing or increasing the allocation amount of any operating resource in any virtual dynamic operating space according to a preset adjusting unit; the preset adjusting unit is n minimum adjusting units; wherein n is an integer greater than 1.
7. The method of claim 1, wherein after the dynamic adjustment and allocation of the operating resources in the virtual dynamic operating spaces, the method further comprises:
and updating the plurality of virtual dynamic operating spaces in real time by using an automatic update method, and acquiring the distribution values of the operating resources in the plurality of virtual dynamic operating spaces after dynamic adjustment.
8. The method according to claim 1, wherein the initial value of the allocation of the operating resources is an integer multiple of the minimum adjustment unit.
9. A resource allocation device for a virtual space of a passive device, the device comprising:
a processor;
and a memory having stored thereon computer executable code which, when executed, causes the processor to perform a method of resource allocation of a passive device virtual space as claimed in any one of claims 1 to 8.
10. An apparatus for resource allocation of a virtual space of a passive device, the apparatus comprising:
the first determining module is used for determining the utilization rate of the operating resources in each virtual dynamic operating space according to the initial values of the operating resources in a plurality of virtual dynamic operating spaces in the passive equipment; the virtual dynamic operation spaces in the passive equipment are obtained by pre-dividing the passive equipment;
a second determining module, configured to determine, by using a preset time as a period, a falling probability according to a utilization rate of the operating resource in each virtual dynamic operating space and a preset utilization rate interval; the falling probability refers to the utilization rate of the operating resources in the virtual dynamic operating spaces and the probability in a preset utilization rate interval of the operating resources;
and the dynamic adjustment module is used for dynamically adjusting and distributing the operation resources in the plurality of virtual dynamic operation spaces according to a preset minimum adjustment unit under the condition that the falling probability is lower than a first preset threshold value until the falling probability is not lower than the first preset threshold value.
CN202010307531.0A 2020-04-17 2020-04-17 Resource allocation method, equipment and device for virtual space of passive equipment Active CN111580957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010307531.0A CN111580957B (en) 2020-04-17 2020-04-17 Resource allocation method, equipment and device for virtual space of passive equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010307531.0A CN111580957B (en) 2020-04-17 2020-04-17 Resource allocation method, equipment and device for virtual space of passive equipment

Publications (2)

Publication Number Publication Date
CN111580957A CN111580957A (en) 2020-08-25
CN111580957B true CN111580957B (en) 2022-03-01

Family

ID=72122472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010307531.0A Active CN111580957B (en) 2020-04-17 2020-04-17 Resource allocation method, equipment and device for virtual space of passive equipment

Country Status (1)

Country Link
CN (1) CN111580957B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593133B (en) * 2009-06-29 2012-07-04 北京航空航天大学 Method and device for load balancing of resources of virtual machine
CN102664814B (en) * 2012-05-17 2015-01-07 西安交通大学 Grey-prediction-based adaptive dynamic resource allocation method for virtual network
CN106959889A (en) * 2016-01-11 2017-07-18 阿里巴巴集团控股有限公司 A kind of method and apparatus of server resource adjustment
CN106375115B (en) * 2016-08-30 2019-12-03 东软集团股份有限公司 Resource allocation methods and device
KR102316971B1 (en) * 2017-05-08 2021-10-25 삼성전자 주식회사 Method and apparatus for allocating resource in software defined network

Also Published As

Publication number Publication date
CN111580957A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN112815990B (en) Power distribution equipment monitoring system based on internet of things
US8055933B2 (en) Dynamic updating of failover policies for increased application availability
CN104836819A (en) Dynamic load balancing method and system, and monitoring and dispatching device
CN109451051B (en) Service request processing method and device, electronic equipment and storage medium
US7467291B1 (en) System and method for calibrating headroom margin
CN105491138A (en) Load rate based graded triggering distributed load scheduling method
CN107911399B (en) Elastic expansion method and system based on load prediction
EP3993346B1 (en) Method and device for distributed data storage
US20130246511A1 (en) Systems and Methods for Serving Applications in an Application Server Environment
CN104537013B (en) A kind of method and apparatus of processing data
CN110020061B (en) Smart city space-time information cloud platform service engine
US20120233313A1 (en) Shared scaling server system
CN105491150A (en) Load balance processing method based on time sequence and system
CN104580503A (en) Efficient dynamic load balancing system and method for processing large-scale data
US20110154357A1 (en) Storage Management In A Data Processing System
CN111580957B (en) Resource allocation method, equipment and device for virtual space of passive equipment
CN107040566B (en) Service processing method and device
US9367439B2 (en) Physical memory usage prediction
CN105162837A (en) Method and system for improving I/O throughput rate in massive data storage environment
CN105162866A (en) Application system concurrent access control method
EP3129878B1 (en) Elasticity engine for availability management framework (amf)
CN110874430A (en) Network crawler scheduling method, device and equipment
CN116842299B (en) Dynamic data access risk control system and method
CN114244903B (en) Resource scheduling method, system, server and storage medium
CN117014313B (en) Method and system for analyzing equipment data of edge cloud platform in real time

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant