Host resource allocation method and device and storage medium

By monitoring and optimizing resource occupancy, user experience problems caused by insufficient host resource allocation are solved, intelligent allocation and release of resources are realized, and user experience is improved.

CN118733235APending Publication Date: 2024-10-01XIAN WANXIANG ELECTRONICS TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310318555.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

When multiple user sessions are applied concurrently, insufficient allocation of host resources or virtual resources leads to poor user experience.

Method used

By obtaining the resource occupancy rate of each session, determine whether the user needs are met, determine the target session and allocate the corresponding resources according to the user needs, release the resources of the session whose resource occupancy rate is within the second preset threshold to the target session, and optimize resource allocation to Meet user needs.

Benefits of technology

Improves user experience, ensures that resource allocation can meet the needs of target sessions, and avoids the problem of insufficient resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733235A_ABST
    Figure CN118733235A_ABST
Patent Text Reader

Abstract

The invention provides a host resource allocation method and device and a storage medium. The method comprises the following steps: acquiring the current resource occupancy rate of each session; wherein the resource occupancy rate comprises at least one of a CPU occupancy rate, a memory occupancy rate and a GPU occupancy rate; judging whether the current resource occupancy rate of each session meets the use requirement of a user corresponding to each session or not; determining the session which does not meet the use requirement of the user as a target session; and allocating a corresponding number of resources to the target session according to the use demand of the user corresponding to the target session. According to the host resource allocation method provided by the invention, the problem of poor user experience caused by insufficient allocation of host resources or virtual resources to users can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of host resource allocation, and in particular to a host resource allocation method, device and storage medium. Background Art

[0002] The application technology of host resources or virtual resources has developed rapidly in recent years. When multiple user sessions are used concurrently, it may happen that the host resources or virtual resources allocated to users are insufficient, such as CPU, memory, GPU, etc. This may cause users to feel poor application and experience. Summary of the invention

[0003] The purpose of the present disclosure is to overcome the deficiencies of the prior art and to provide a host resource allocation method, device and storage medium. The host resource allocation method can solve the problem of poor user experience caused by insufficient host resources or virtual resources allocated to users.

[0004] According to a first aspect of an embodiment of the present disclosure, a host resource allocation method is provided, the method comprising:

[0005] Obtaining the current resource occupancy rate of each session; wherein the resource occupancy rate includes at least one of the CPU occupancy rate, the memory occupancy rate and the GPU occupancy rate;

[0006] Determining whether the current resource occupancy rate of each session meets the usage requirements of the users corresponding to each session;

[0007] Determine the session that does not meet the user's usage requirements as the target session;

[0008] A corresponding amount of resources is allocated to the target session according to the usage requirements of the user corresponding to the target session.

[0009] In one embodiment, determining whether the current resource occupancy rate of each session meets the usage requirements of the users corresponding to each session includes:

[0010] Determining whether the current resource occupancy rate of each session exceeds a first preset threshold;

[0011] If the current resource occupancy rate of each session exceeds a first preset threshold, it is determined that the current resource occupancy rate of each session does not meet the usage requirements of the users corresponding to each session.

[0012] In one embodiment, allocating a corresponding amount of resources to the target session according to the usage requirements of the user corresponding to the target session includes:

[0013] Obtaining current resource occupancy rates of other sessions other than the target session;

[0014] Determine whether there is a session among other sessions whose current resource occupancy rate is within a second preset threshold;

[0015] If there is a session whose current resource occupancy rate is within the second preset threshold value among other sessions, releasing the current resources of the session whose current resource occupancy rate is within the second preset threshold value;

[0016] The released current resources of the session whose current resource occupancy rate is within the second preset threshold are allocated to the target session.

[0017] In one embodiment, before allocating the released current resources of the session whose current resource occupancy rate is within the second preset threshold to the target session, the method includes:

[0018] Determine whether the sum of the current resources of the session whose current resource occupancy rate is within the second preset threshold and the current resources of the target session meets the usage requirement of the target session;

[0019] If the sum of the current resources of the session whose current resource occupancy rate is within the second preset threshold and the current resources of the target session does not meet the usage requirements of the target session, a prompt message is sent to the target session; wherein,

[0020] The prompt information includes that the host resources are insufficient and please release some useless applications.

[0021] In one embodiment, the method further comprises:

[0022] If the sum of the current resources of the session whose current resource occupancy rate is within the second preset threshold and the current resources of the target session meets the usage requirements of the target session, the current resources of the session whose current resource occupancy rate is within the second preset threshold will be released to the target session.

[0023] In one embodiment, before obtaining the current resource occupancy rate of each session, the method further includes:

[0024] Receiving a request to establish one or more sessions;

[0025] Determining the quantity of resources corresponding to the one or more sessions according to the usage habits of the users corresponding to the one or more sessions;

[0026] Resources are allocated to the one or more sessions according to the determined resource quantities of the one or more sessions.

[0027] In one embodiment, allocating a corresponding amount of resources to the target session according to the usage requirements of the user corresponding to the target session includes:

[0028] When there are multiple target sessions, obtaining the priority of each target session;

[0029] Resources are allocated to each of the target sessions according to the priority of each of the target sessions.

[0030] In one embodiment, before obtaining the priority of each target session, the method further includes:

[0031] Priorities are created for users corresponding to each target session according to user level information or device parameter information of the users corresponding to each target session; wherein the device parameter information includes at least one of CPU information, memory information, and GPU information.

[0032] According to a second aspect of an embodiment of the present disclosure, a host resource allocation device is provided, the device comprising:

[0033] An acquisition module is used to acquire the current resource occupancy rate of each session; wherein the resource occupancy rate includes at least one of the CPU occupancy rate, the memory occupancy rate and the GPU occupancy rate;

[0034] A judgment module, for judging whether the current resource occupancy rate of each session meets the usage requirements of the users corresponding to each session;

[0035] A determination module determines the sessions that do not meet the user's usage requirements as target sessions;

[0036] The first allocation module allocates a corresponding amount of resources to the target session according to the usage requirements of the user corresponding to the target session.

[0037] In one embodiment, the determination module includes:

[0038] A first judgment submodule, judging whether the current resource occupancy rate of each session exceeds a first preset threshold;

[0039] The determination submodule determines that the current resource occupancy rate of each session does not meet the usage requirements of the users corresponding to each session if the current resource occupancy rate of each session exceeds a first preset threshold.

[0040] In one embodiment, the first allocation module includes:

[0041] An acquisition submodule, for acquiring current resource occupancy rates of other sessions other than the target session;

[0042] The second judgment submodule judges whether there is a session whose current resource occupancy rate is within a second preset threshold value among other sessions;

[0043] The release submodule releases the resources of the session if there is a session whose current resource occupancy rate is within the second preset threshold value among other sessions;

[0044] The allocation submodule allocates the released resources of the session to the target session.

[0045] In one embodiment, the apparatus further comprises:

[0046] A receiving module, receiving a request to establish one or more sessions;

[0047] A second determining module determines the quantity of resources corresponding to the one or more sessions according to the usage habits of the users corresponding to the one or more sessions;

[0048] The second allocation module allocates resources to the one or more sessions according to the determined resource quantities of the one or more sessions.

[0049] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, in which at least one computer instruction is stored. The instruction is loaded and executed by a processor to implement the steps performed in the host resource allocation method described in the first aspect and any embodiment of the first aspect.

[0050] A host resource allocation method provided by an embodiment of the present disclosure can allocate corresponding CPU, GPU, and memory to session users according to the target usage requirements when the data information fed back by the target user does not meet the user requirements, so as not to affect the user's use, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0052] Figure 1 A flowchart of a host resource allocation method provided in an embodiment of the present disclosure.

[0053] Figure 2 A flowchart of a host resource allocation method provided in an embodiment of the present disclosure.

[0054] Figure 3 A flowchart of a host resource allocation method provided in an embodiment of the present disclosure.

[0055] Figure 4 A flowchart of a host resource allocation method provided in an embodiment of the present disclosure.

[0056] Figure 5 An architectural diagram of a host resource allocation device provided in an embodiment of the present disclosure.

[0057] Figure 6 An architectural diagram of a host resource allocation device provided in an embodiment of the present disclosure.

[0058] Figure 7 An architectural diagram of a host resource allocation device provided in an embodiment of the present disclosure.

[0059] Figure 8 An architectural diagram of a host resource allocation device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0060] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0061] Figure 1 Schematic diagram of a host resource allocation system provided by an embodiment of the present disclosure. The execution subject of the host resource allocation method provided by the embodiment of the present disclosure is a scheduler in the system, such as Figure 1 As shown, the system includes a host server, a scheduler connected to the host server, and a number of session users. In the disclosed embodiment, the required resources are intelligently allocated to each session user through the scheduler. Specifically, the scheduler will count the CPU, GPU, and memory data consumed by various application software, and can count the resources consumed by the application software frequently used by the user according to the usage habits of the session users, so as to intelligently allocate the corresponding performance resources to the session users. If the performance resources fed back by the session users reach the CPU, memory or GPU threshold of the scheduler, such as 90%, that is, the host resources are almost consumed, the scheduler will remind the session users to release the resources reasonably.

[0062] It should be noted that Figure 1 The scheduler shown in is set on the scheduler described in this implementation.

[0063] Figure 2 A flow chart of a host resource allocation method provided by an embodiment of the present disclosure. Figure 2 As shown, the method includes:

[0064] Step 201: Obtain the current resource occupancy rate of each session; wherein the resource occupancy rate includes at least one of the CPU occupancy rate, the memory occupancy rate and the GPU occupancy rate;

[0065] In this step, after each session establishes a connection with the host resource server, the scheduler will obtain and count the CPU, memory and GPU data consumed by various application software of each session in real time, and then calculate the current application data information of each session based on the CPU, memory and GPU data consumed by various application software of each session.

[0066] Step 202: determine whether the current resource occupancy rate of each session meets the usage requirements of the users corresponding to each session;

[0067] In one embodiment, determining whether the current resource occupancy rate of each session meets the usage requirements of the users corresponding to each session includes:

[0068] Determining whether the current resource occupancy rate of each session exceeds a first preset threshold;

[0069] If the current resource occupancy rate of each session exceeds a first preset threshold, it is determined that the current resource occupancy rate of each session does not meet the usage requirements of the users corresponding to each session.

[0070] Exemplarily, the first preset value in this embodiment can be 90%. When the scheduler determines that the current resource occupancy rate of each session is close to 90% of the total CPU, memory or GPU resources, the scheduler will determine that the current application data information of the target session cannot meet the usage requirements of the target session, and it is necessary to further reallocate the corresponding CPU, memory or GPU resources to the user.

[0071] Step 203: determine the session that does not meet the user's usage requirements as a target session;

[0072] Step 204: Allocate a corresponding amount of resources to the target session according to the usage requirements of the user corresponding to the target session.

[0073] In one embodiment, Figure 3 As shown, allocating a corresponding amount of resources to the target session according to the usage requirements of the user corresponding to the target session includes:

[0074] Step 301: Obtain the current resource occupancy rate of other sessions other than the target session;

[0075] Step 302: Determine whether there is a session whose current resource occupancy rate is within a second preset threshold among other sessions;

[0076] Exemplarily, the second preset value in this embodiment can be 50%. When the scheduler determines that there is a session among other sessions whose current occupancy is within 50% of the total CPU, memory or GPU resources, the scheduler will conclude that the session whose current occupancy is within 50% of the total CPU, memory or GPU resources has 50% redundant resources. In other words, the host resources configured for the session whose current occupancy is within 50% of the total CPU, memory or GPU resources are far greater than the actual resource requirements of the user. Therefore, the scheduler will release the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources to the target session to meet the resource requirements of the target session.

[0077] Specifically, the scheduler can release 10%-40% of the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources, and allocate the released resources to the target session. It can be understood that in this embodiment, at least 10% of redundant resources need to be reserved for the session whose current occupancy is within 50% of the total CPU, memory or GPU resources to ensure the normal operation of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources. Step 303. If there is a session among other sessions whose current resource occupancy is within the second preset threshold, release the current resources of the session whose current resource occupancy is within the second preset threshold;

[0078] Specifically, in this embodiment, the scheduler can release 30% of the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources, and allocate the released resources to the target session. It should be noted that in this embodiment, the 30% of resources released are the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources. Therefore, the 30% of redundant resources released in this embodiment does not affect the normal operation of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources.

[0079] Step 304: Allocate the released current resources of the session whose current resource occupancy rate is within the second preset threshold to the target session.

[0080] In this embodiment, assuming that there are 4 session users sharing a host resource, the system will divide the host resource into 4 equal parts for each session user. When session user 1 reaches the resources allocated by the system, feedback will be given to the scheduler, and the scheduler will release the temporarily unused session resources and allocate them to session user 1.

[0081] Specifically, before allocating the released current resources of the session whose current resource occupancy rate is within the second preset threshold to the target session, the method includes:

[0082] Determine whether the sum of the current resources of the session whose current resource occupancy rate is within the second preset threshold and the current resources of the target session meets the usage requirement of the target session;

[0083] If the sum of the current resources of the released session whose current resource occupancy rate is within the second preset threshold and the current resources of the target session does not meet the usage requirement of the target session, sending a prompt message to the target session;

[0084] The prompt information includes that the host resources are insufficient and some useless applications are requested to be released.

[0085] In this embodiment, when the host has no scheduling resources, the system will give a prompt to the session user 1, such as: "The host resources are insufficient, please release some useless applications."

[0086] Specifically, in this embodiment, after the scheduler releases 30% of the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources, the scheduler will determine whether the sum of 30% of the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources and the current resources of the target session meet the usage requirements of the target session; if the sum of 30% of the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources and the current resources of the target session do not meet the usage requirements of the target session, the scheduler will control the release of the current occupancy. After 40% of the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources are consumed, it will be further determined whether the sum of 40% of the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources and the current resources of the target session meet the usage requirements of the target session. If the sum of 40% of the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources and the current resources of the target session still does not meet the usage requirements of the target session, the scheduler will send a prompt message "Insufficient host resources, please release some useless applications".

[0087] Optionally, the method further comprises:

[0088] If the sum of the current resources of the session whose current resource occupancy rate is released within the second preset threshold and the current resources of the target session meets the usage requirements of the target session, the current resources of the session whose current resource occupancy rate is released within the second preset threshold are allocated to the target session.

[0089] In this embodiment, after the scheduler releases 30% of the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources, the scheduler will determine whether the sum of 30% of the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources and the current resources of the target session meet the usage requirements of the target session. If the sum of 30% of the redundant resources of the session whose current occupancy is within 50% of the total CPU, memory or GPU resources and the current resources of the target session meet the usage requirements of the target session, the scheduler will allocate 30% of the redundant resources to the target session.

[0090] A host resource allocation method provided by an embodiment of the present disclosure can allocate corresponding CPU, GPU, and memory to session users according to the target usage requirements when the data information fed back by each session does not meet the user requirements, so as not to affect the user's use, thereby improving the user experience.

[0091] Alternatively, if Figure 4 As shown, before obtaining the current application data information of each session, the method further includes:

[0092] Step 401: Receive a request to establish one or more sessions;

[0093] Step 402: Determine the quantity of resources corresponding to the one or more sessions according to the usage habits of the users corresponding to the one or more sessions;

[0094] Step 403: Allocate resources for the one or more sessions according to the determined resource quantities of the one or more sessions.

[0095] In this embodiment, the scheduler will count the CPU, GPU, and memory data consumed by various application software of each user, and count the resources consumed by the applications frequently used by each user based on the usage habits of each session user, and then allocate host resources to each user based on the number of users and the resources consumed by the applications frequently used by each user.

[0096] Optionally, allocating a corresponding amount of resources to the target session according to a usage demand of a user corresponding to the target session includes:

[0097] When there are multiple target sessions, obtaining the priority of each target session;

[0098] Resources are allocated to each target session according to the priority of each target session.

[0099] Optionally, before obtaining the priority of each target session, the method further includes:

[0100] Priorities are created for users corresponding to each target session according to user level information or device parameter information of the users corresponding to each target session; wherein the device parameter information includes at least one of CPU information, memory information, and GPU information.

[0101] In this embodiment, a priority is set for each session, so that when multiple sessions request to allocate host resources, but the host resources are insufficient to meet the needs of all users, the host resources can be preferentially allocated to users with high priorities.

[0102] Figure 5 This is an architecture diagram of a host resource allocation device provided by an embodiment of the present disclosure. Figure 5 As shown, the device includes: an acquisition module 501, a judgment module 502, a first determination module 503 and a first allocation module 504; wherein the acquisition module 501 is used to obtain the current resource occupancy rate of each session; wherein the resource occupancy rate includes at least one of the CPU occupancy rate, the memory occupancy rate and the GPU occupancy rate; the judgment module 602 is used to judge whether the current resource occupancy rate of each session meets the usage requirements of the users corresponding to each session; the first determination module 603 is used to determine the session that does not meet the user's usage requirements as the target session; the first allocation module 604 is used to allocate a corresponding amount of resources to the target session according to the usage requirements of the user corresponding to the target session.

[0103] Figure 6 This is an architecture diagram of a host resource allocation device provided by an embodiment of the present disclosure. Figure 6 As shown, the device includes: an acquisition module 601, a judgment module 602, a first determination module 603 and a first allocation module 604; wherein the judgment module 602 includes a first judgment submodule 6021 and a determination submodule 6022; wherein the first judgment submodule 6021 is used to determine whether the current resource occupancy rate of each session exceeds a first preset threshold; the determination submodule 6022 is used to determine that the current resource occupancy rate of each session does not meet the usage requirements of the users corresponding to each session when the current resource occupancy rate of each session exceeds the first preset threshold.

[0104] Figure 7 This is an architecture diagram of a host resource allocation device provided by an embodiment of the present disclosure. Figure 7As shown, the device includes an acquisition module 701, a judgment module 702, a first determination module 703 and a first allocation module 604; wherein the first allocation module includes an acquisition submodule 7031, a second judgment submodule 7032, a release submodule 7033 and an allocation submodule 7034; wherein the acquisition submodule 7031 is used to obtain the current resource occupancy rate of other sessions other than the target session; the second judgment submodule 7032 is used to determine whether there is a session whose current resource occupancy rate is within the second preset threshold among other sessions; the release submodule 7033 is used to release the resources of the session if there is a session whose current resource occupancy rate is within the second preset threshold among other sessions; the allocation submodule 7034 is used to allocate the released resources of the session to the target session.

[0105] Figure 8 This is an architecture diagram of a host resource allocation device provided by an embodiment of the present disclosure. Figure 8 As shown, the device includes a receiving module 801, a second determining module 802, a second allocation module 803, an acquisition module 804, a judgment module 805 and a first allocation module 806; wherein the receiving module 801 is used to receive a request to establish one or more sessions; the second determining module 802 is used to determine the number of resources corresponding to the one or more sessions according to the usage habits of the users corresponding to the one or more sessions; the second allocation module 803 is used to allocate resources to the one or more sessions according to the determined number of resources for the one or more sessions.

[0106] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The above-mentioned program can be pre-stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the above-mentioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0107] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0108] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for allocating host resources, characterized in that: A plurality of sessions are run in the host, and the method comprises: Obtaining the current resource occupancy rate of each session; wherein the resource occupancy rate includes at least one of the CPU occupancy rate, the memory occupancy rate and the GPU occupancy rate; Determining whether the current resource occupancy rate of each session meets the usage requirements of the users corresponding to each session; Determine the session that does not meet the user's usage requirements as the target session; A corresponding amount of resources is allocated to the target session according to the usage requirements of the user corresponding to the target session.

2. The method according to claim 1, characterized in that The determining whether the current resource occupancy rate of each session meets the usage requirements of the users corresponding to each session includes: Determining whether the current resource occupancy rate of each session exceeds a first preset threshold; If the current resource occupancy rate of each session exceeds a first preset threshold, it is determined that the current resource occupancy rate of each session does not meet the usage requirements of the users corresponding to each session.

3. The method according to claim 1 or 2, characterized in that: The allocating a corresponding amount of resources to the target session according to the usage requirements of the user corresponding to the target session includes: Obtaining current resource occupancy rates of other sessions other than the target session; Determine whether there is a session among the other sessions whose current resource occupancy rate is within a second preset threshold; If there is a session whose current resource occupancy rate is within the second preset threshold value among the other sessions, releasing the current resources of the session whose current resource occupancy rate is within the second preset threshold value; The released current resources of the session whose current resource occupancy rate is within the second preset threshold are allocated to the target session.

4. The method according to claim 3, characterized in that Before allocating the released current resources of the session whose current resource occupancy rate is within the second preset threshold to the target session, the method comprises: Determine whether the sum of the current resources of the session whose current resource occupancy rate is within the second preset threshold and the current resources of the target session meets the usage requirement of the target session; If the sum of the current resources of the session whose current resource occupancy rate is within the second preset threshold and the current resources of the target session does not meet the usage requirements of the target session, a prompt message is sent to the target session; wherein, The prompt information includes that the host resources are insufficient and please release some useless applications.

5. The method according to claim 4, characterized in that The method further comprises: If the sum of the current resources of the session whose current resource occupancy rate is within the second preset threshold and the current resources of the target session meets the usage requirements of the target session, the released current resources of the session whose current resource occupancy rate is within the second preset threshold are allocated to the target session.

6. The method according to claim 1 or 2, characterized in that: Before obtaining the current resource occupancy rate of each session, the method further includes: Receiving a request to establish one or more sessions; Determining the quantity of resources corresponding to the one or more sessions according to the usage habits of the users corresponding to the one or more sessions; Resources are allocated to the one or more sessions according to the determined resource quantities of the one or more sessions.

7. The method according to claim 1, characterized in that The allocating a corresponding amount of resources to the target session according to the usage requirements of the user corresponding to the target session includes: When there are multiple target sessions, obtaining the priority of each target session; Resources are allocated to each target session according to the priority of each target session.

8. The method according to claim 7, characterized in that Before obtaining the priority of each target session, the method further includes: Priorities are created for users corresponding to each target session according to user level information or device parameter information of the users corresponding to each target session; wherein the device parameter information includes at least one of CPU information, memory information, and GPU information.

9. A host resource allocation device, characterized in that: The device comprises: An acquisition module is used to acquire the current resource occupancy rate of each session; wherein the resource occupancy rate includes at least one of the CPU occupancy rate, the memory occupancy rate and the GPU occupancy rate; A judgment module, for judging whether the current resource occupancy rate of each session meets the usage requirements of the users corresponding to each session; A first determination module determines a session that does not meet the user's usage requirements as a target session; The first allocation module allocates a corresponding amount of resources to the target session according to the usage requirements of the user corresponding to the target session.

10. A computer-readable storage medium, characterized in that: The storage medium stores at least one computer instruction, which is loaded and executed by the processor to implement the steps performed in the host resource allocation method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Resource control method and device, electronic equipment and storage medium

    CN119520043A