CN114116203B - Resource call control method, resource call control device and storage medium - Google Patents

Resource call control method, resource call control device and storage medium Download PDF

Info

Publication number
CN114116203B
CN114116203B CN202111276137.6A CN202111276137A CN114116203B CN 114116203 B CN114116203 B CN 114116203B CN 202111276137 A CN202111276137 A CN 202111276137A CN 114116203 B CN114116203 B CN 114116203B
Authority
CN
China
Prior art keywords
read
resource
write task
storage
host
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
CN202111276137.6A
Other languages
Chinese (zh)
Other versions
CN114116203A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111276137.6A priority Critical patent/CN114116203B/en
Publication of CN114116203A publication Critical patent/CN114116203A/en
Application granted granted Critical
Publication of CN114116203B publication Critical patent/CN114116203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Hardware Redundancy (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a resource call control method, a resource call control device and a storage medium. The resource call control method is applied to the storage device, and the storage device is connected with at least one host, and comprises the following steps: and responding to the received read-write task of the host, and calling the first storage resource to process the read-write task. And when the first storage resource is exhausted and the read-write task is not processed, calling the second storage resource to continue processing the read-write task. And when the second storage resource is exhausted and the read-write task is not processed, the temporary resource allocated by the stack space is called to process the read-write task. By the method, other types of resources can be called to continuously process the read-write task under the condition that the resources allocated for the read-write task are exhausted and the read-write task is not processed, so that the read-write task can be ensured to be continuously processed, the continuity of the read-write task of a host is further ensured, and the possibility that the read-write task is not processed and completed is reduced or avoided.

Description

Resource call control method, resource call control device and storage medium
Technical Field
The present invention relates to the field of computer control technologies, and in particular, to a resource call control method, a resource call control device, and a storage medium.
Background
As the scale of data generation and application continues to expand, the need for storage array systems to handle host read-write tasks has increased. The storage array system is a system positioned inside the storage device, and the core task of the storage device is to process host read-write business.
In the related art, after receiving a resource call request sent by a host, a storage device applies for a memory resource capable of processing a read-write task resource of the host to a storage array system. For example: memory capable of handling Input/Output (I/O) resources. However, due to limited storage resources in the storage device, in the processing process, as the number of read-write services processed by the host is continuously increased, the host is easy to call insufficient memory resources when processing the read-write services, and the situation of interrupt of the read-write services of the host is caused.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defect that the read-write service of the host is interrupted and the service continuity is affected due to insufficient memory resources in the prior art, thereby providing a resource call control method, a resource call control device and a storage medium.
According to a first aspect, the present invention provides a resource call control method applied to a storage device, where the storage device is connected to at least one host, the method comprising:
responding to a received read-write task of a host, and calling a first storage resource to process the read-write task, wherein the first storage resource is a resource for the read-write task, which is distributed in a total memory resource;
when the first storage resource is exhausted and the read-write task is not processed, a second storage resource is called to continue to process the read-write task, wherein the second storage resource is reserved for the host in the total memory resource;
and when the second storage resource is exhausted and the read-write task is not processed and completed, the temporary resource allocated by the stack space is called to process the read-write task.
In the mode, in the process of processing the read-write task sent by the host, under the condition that the resources allocated for the read-write task are exhausted and the read-write task is not processed and completed, in order to ensure that the read-write task can be processed and completed, other types of resources can be called to continuously process the read-write task so as to ensure that the read-write task can be continuously processed, further ensure the continuity of the read-write task of the host and reduce or avoid the possibility that the read-write task is not processed and completed.
With reference to the first aspect, in a first implementation manner of the first aspect, the read-write task includes a plurality of subtasks, and the method further includes:
and when the second storage resource is occupied by the current subtask and can not be called by other subtasks, the temporary resource allocated by the call stack space processes other subtasks.
In the method, a dynamic adjustment method can be adopted, and under the condition that the first storage resource is exhausted, second storage resources or temporary resources in a stack space are allocated for a plurality of subtasks, so that the memory resource calling method is more flexible, the occurrence of task blocking is further reduced, and the possibility of interrupt of the host read-write service is reduced.
With reference to the first aspect and/or the first implementation manner of the first aspect, in a second implementation manner of the first aspect, when the second storage resource is called to continue processing the read-write task, the method further includes:
and sending abnormal information to the host computer, wherein the abnormal information is used for informing the processing failure of the read-write task.
In the mode, by sending the abnormal information, the host can be prompted that resources for the read-write task are exhausted, and further the host can be helped to automatically reduce or stop sending the read-write task according to the received abnormal information, so that the possibility that too many read-write tasks cannot be processed in time is reduced.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the method further includes:
and sending a request stop notification to the host based on the stack space, wherein the request stop notification is used for notifying the host to stop sending the read-write task request to the storage equipment.
In the mode, the request stop notification is sent through the stack space, so that the host is helped to make sure that no redundant resources exist at present and can continuously process other read-write requests, the host can actively stop sending read-write tasks, the accumulation number of the read-write tasks is further reduced, the load pressure of the storage device is relieved, and the loss caused by interruption of the read-write tasks of the host is further reduced.
With reference to the first aspect and/or the first implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the method for allocating the first storage resource includes:
dividing the resources for the read-write task according to the number of cores of the CPU of the host, and determining the first storage resources corresponding to the host.
In the mode, when the first storage resources are allocated to the host, the allocation is performed according to the number of cores of the CPU, so that the first storage resources are reasonably used, the situation that the first storage resources are wasted or insufficient when the read-write task is processed is avoided, and the utilization rate and the multiplexing rate of the first storage resources are improved.
With reference to the first aspect and/or the first implementation manner of the first aspect, in a fifth implementation manner of the first aspect, the method for allocating the second storage resource includes:
and equally dividing the reserved resources according to the number of the hosts connected with the storage equipment, and determining second storage resources corresponding to the hosts.
In this way, the second storage resources are divided according to the number of hosts, which is helpful for rapidly allocating reserved resources and reducing allocation cost.
With reference to the second implementation manner of the first aspect, in a sixth implementation manner of the first aspect, the processing result includes the processing error status code of the read-write task.
In this manner, the error status code is processed by sending the read-write task to inform the host that the processing of the read-write task currently executed fails.
According to a second aspect, the present invention provides a resource call control apparatus for application to a storage device, the storage device being connected to at least one host, the apparatus comprising:
the first calling unit is used for responding to the received read-write task of the host, calling a first storage resource to process the read-write task, wherein the first storage resource is a resource for the read-write task, which is distributed in the total memory resource;
the second calling unit is used for calling a second storage resource to continuously process the read-write task when the first storage resource is exhausted and the read-write task is not processed, wherein the second storage resource is reserved for the host in the total memory resource;
and the third calling unit is used for calling temporary resources allocated by the stack space to process the read-write task when the second storage resources are exhausted and the read-write task is not processed.
With reference to the second aspect, in a first implementation manner of the second aspect, the third calling unit includes:
and the calling sub-unit is used for calling temporary resources allocated by the stack space to process other subtasks when the second storage resources are occupied by the current subtasks and can not be called by the other subtasks.
With reference to the second aspect and/or the first implementation of the second aspect, in a second implementation of the second aspect, the apparatus further includes:
and the sending unit is used for sending abnormal information to the host computer and informing the processing failure of the read-write task.
With reference to the second implementation manner of the second aspect, in a third implementation manner of the second aspect, the apparatus further includes:
and the notification sending unit is used for sending a request stop notification to the host based on the stack space and used for notifying the host to pause sending the read-write task request to the storage equipment.
With reference to the second aspect and/or the first implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the apparatus further includes:
the first dividing unit is used for dividing the resources used for the read-write task according to the core number of the CPU of the host, and determining the first storage resources corresponding to the host.
With reference to the second aspect and/or the first implementation manner of the second aspect, in a fifth implementation manner of the second aspect, the apparatus further includes:
and the second dividing unit is used for equally dividing the reserved resources according to the number of the hosts connected with the storage equipment and determining second storage resources corresponding to the hosts.
With reference to the second implementation manner of the second aspect, in a sixth implementation manner of the second aspect, the processing result includes a processing error status code of the read-write task.
According to a third aspect, the embodiments of the present invention further provide a computer device, including a memory and a processor, where the memory and the processor are communicatively connected to each other, and the memory stores computer instructions, and the processor executes the computer instructions, thereby executing the resource call control method according to any one of the first aspect and optional embodiments thereof.
According to a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions for causing the computer to perform the resource call control method of any one of the first aspect and its alternative embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a resource call control method in accordance with an exemplary embodiment.
FIG. 2 is a flowchart of another resource call control method in accordance with an exemplary embodiment.
FIG. 3 is a flowchart of another resource call control method in accordance with an exemplary embodiment.
FIG. 4 is a flowchart of another resource call control method in accordance with an exemplary embodiment.
Fig. 5 is a block diagram illustrating a structure of a resource call control apparatus according to an exemplary embodiment.
Fig. 6 is a schematic diagram of a hardware structure of a computer device according to an exemplary embodiment.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The core task of the storage device is to handle host read-write traffic. And after the storage equipment receives the resource calling request sent by the host, applying for the memory resource capable of processing the host read-write task resource to the storage array system. For example: memory capable of handling Input/Output (I/O) resources. However, due to limited storage resources in the storage device, in the processing process, as the number of read-write services processed by the host is continuously increased, the host is easy to call insufficient memory resources when processing the read-write services, and the situation of interrupt of the read-write services of the host is caused.
In order to solve the above-mentioned problems, in the embodiments of the present invention, a resource call control method is provided for a computer device, and it should be noted that an execution body of the resource call control method may be a resource call control device, and the device may be implemented by software, hardware, or a combination of software and hardware to form part or all of a storage device, where the storage device may be a terminal, a client, or a server, and the server may be a server, or may be a server cluster formed by multiple servers. In the following method embodiments, the execution subject is a storage device as an example.
In the storage device of the embodiment, the read-write task sent by at least one host connected with the storage device can be processed based on the storage resource in the storage device. Wherein the host is a host capable of supporting a SCSI protocol, which is a data transfer protocol. By way of the SCSI protocol, a host computer is enabled to establish a connection with a storage device, thereby enabling transfer of commands, status, and block data between the host computer and the storage device. In the resource calling control method provided by the invention, in the process of processing the read-write task sent by the host, under the condition that the resources allocated for the read-write task are exhausted and the read-write task is not processed, in order to ensure that the read-write task can be processed and completed, other types of resources can be called to continuously process the read-write task so as to ensure that the read-write task can be continuously performed, thereby ensuring the continuity of the read-write task of the host and reducing or avoiding the possibility that the read-write task is not processed and completed.
FIG. 1 is a flowchart of a resource call control method in accordance with an exemplary embodiment. As shown in fig. 1, the resource call control method includes the following steps S101 to S103.
In step S101, in response to the received read-write task of the host, the first storage resource is invoked to process the read-write task.
In the embodiment of the invention, the first storage resource is a resource for a read-write task allocated in the total memory resource. That is, the storage device invokes the first storage resource from the total memory resources in response to receiving the read-write task of the host, so as to process the read-write task through the first storage resource. In one example, the first storage resource may be understood as a general purpose memory resource.
In an embodiment, when the first storage resource is divided, the resource for the read-write task may be divided according to the number of cores of the CPU of the host. The more the number of CPU cores of the host is, the stronger the computing processing capability of the host is, and therefore, the more first storage resources are required to be occupied when the storage device processes the read-write task sent by the host. Therefore, in order to ensure that the first storage resource can be reasonably utilized, the situation that the first storage resource is wasted or insufficient due to unreasonable first storage resource when a read-write task is processed is avoided, and when the first storage resource is divided, the first storage resource can be divided according to the number of cores of a CPU (central processing unit) of a host connected with the storage device.
In another embodiment, the resources used for the read-write task may be shared resources when the number of cores of the CPU of the host is small. That is, the storage device can share the resources for the read/write task when processing the read/write task of each host. When the storage device currently receives the read-write task, according to the running state of the read-write task, a first storage resource for processing the read-write task is called from resources for the read-write task in real time, so that the distribution cost is reduced.
In step S102, when the first storage resource is exhausted and the read-write task is not processed, the second storage resource is called to continue processing the read-write task.
In the embodiment of the present invention, the second storage resource is a resource reserved for the host in the total memory resource. It is understood that the second storage resource is an emergency resource. The first storage resource is exhausted, which characterizes that the current read-write task has fully occupied the resources available to the host for the read-write task. However, when the first storage resource is exhausted and the read-write task is still not processed, the task is easy to be blocked, and the subsequent read-write task cannot respond. Therefore, in order to avoid the occurrence of the above situation, the second storage resource corresponding to the host is called to continue to process the read-write task, so that the read-write task can be successfully completed, and the occupied first storage resource can be released and reused.
In an embodiment, the division of the second storage resources corresponding to each host may be obtained by equally dividing the reserved resources according to the number of hosts connected to the storage device. The second storage resources are divided according to the number of the hosts, so that reserved resources can be quickly allocated, and allocation cost is reduced.
In step S103, when the second storage resource is exhausted and the read-write task is not processed, the temporary resource allocated by the stack space is called to process the read-write task.
In the embodiment of the invention, when the second storage resource is exhausted and the read-write task is not processed, the read-write task is characterized as being oversized, and the resource still needs to be called for continuous processing, so that the read-write task can be processed by calling the temporary resource distributed in the stack space. The stack space is adopted to call the temporary resources, so that the resources can be acquired quickly, the processing efficiency is improved, and the problem of interruption of the read-write service of the host computer caused by exhaustion of the memory resources can be avoided.
In an example, when the temporary resource is used for processing the read-write task, all the storage resources occupied by the read-write task can be released, including the occupied first storage resource and second storage resource, so that the read-write task is stopped to continue occupying the storage resources, the occupation pressure of the first storage resource is relieved, and the subsequent read-write task can call the first storage resource for processing, thereby achieving the purpose of avoiding the situation of task blocking.
Through the embodiment, under the condition that the resources for the read-write task are exhausted, other resources can be called for the read-write task which is processed currently, so that the processing task can be processed and completed, and the occupied first storage resource is released, and therefore the condition that the read-write service of a host is interrupted due to task blockage is avoided.
In an embodiment, to make the manner of resource call more flexible, the invention also provides another resource call control method.
FIG. 2 is a flowchart of another resource call control method in accordance with an exemplary embodiment. As shown in fig. 2, the resource call control method includes the following steps.
In step S201, in response to the received read-write task of the host, the first storage resource is invoked to process the read-write task.
In step S202, when the first storage resource is exhausted and the read-write task is not processed, the second storage resource is called to continue processing the read-write task.
In step S2031, when the second storage resource is exhausted and the read-write task is not processed, the temporary resource allocated by the stack space is called to process the read-write task.
In step S2032, when the second storage resource is occupied by the current subtask and cannot be called by other subtasks, the temporary resource allocated by the stack space is called to process the other subtasks.
In the embodiment of the invention, when the host sends the read-write task, the read-write task may comprise a plurality of subtasks. However, in the actual read-write task processing process, the process of processing the read-write task belongs to an asynchronous event. That is, resources may still be allocated to other sub-tasks during processing of the current sub-task to enable processing of other sub-resources.
When the second storage resource is occupied by the current subtask and cannot be called by other subtasks, the first storage resource is fully occupied, the second storage resource cannot allocate resources capable of processing other subtasks for the other subtasks, further, the other subtasks can be guaranteed to be continuously processed, the occurrence of task blocking is reduced, the allocated temporary resources are called from a stack space, and the other subtasks are continuously processed through the temporary resources, so that a resource calling mode is more flexible, and further, the occurrence of task blocking is reduced.
By the embodiment, a dynamic adjustment mode can be adopted, and under the condition that the first storage resource is exhausted, second storage resources or temporary resources in a stack space are allocated to a plurality of subtasks so that each subtask can be continuously processed, thereby being beneficial to reducing the occurrence of task blocking and reducing the possibility of interruption of host read-write business.
FIG. 3 is a flowchart of another resource call control method in accordance with an exemplary embodiment. As shown in fig. 3, the resource call control method includes the following steps.
In step S301, in response to the received read-write task of the host, the first storage resource is invoked to process the read-write task.
In step S302, when the first storage resource is exhausted and the read-write task is not processed, the second storage resource is invoked to continue processing the read-write task.
In step S303, abnormality information is sent to the host for notifying that the read-write task processing has failed.
In the embodiment of the invention, the abnormal information is information for informing that the processing of the read-write task fails, and is used for prompting that the first storage resource called for the read-write task is completely exhausted by the read-write task being processed by the host, and the resource used for the read-write task cannot execute other read-write tasks, and the subsequent read-write task corresponding to the host cannot continue to be processed in a task list of the storage device. By sending the abnormal information to the host, the host can be helped to automatically reduce or stop sending the read-write tasks according to the received abnormal information, so that the possibility that too many read-write tasks cannot be processed in time is reduced.
In an example, the processing result includes a read-write task processing error status code, and the read-write task processing error status code informs the host that the processing of the read-write task currently executed fails. In one implementation scenario, the read-write TASK processing error status code may be TASK FULL.
In step S3041, when the second storage resource is exhausted and the read-write task is not processed, the temporary resource allocated by the stack space is called to process the read-write task.
In step S3042, when the second storage resource is occupied by the current subtask and cannot be called by other subtasks, the temporary resource allocated by the stack space is called to process other subtasks.
According to the embodiment, under the condition that the first storage resource is exhausted, the failure of processing the read-write task is informed by sending the abnormal information to the host, so that the host can be further prompted to automatically reduce or stop sending the read-write task, and the possibility that too many read-write tasks cannot be processed in time is reduced.
FIG. 4 is a flowchart of another resource call control method in accordance with an exemplary embodiment. As shown in fig. 4, the resource call control method includes the following steps.
In step S401, in response to the received read-write task of the host, the first storage resource is invoked to process the read-write task.
In step S402, when the first storage resource is exhausted and the read-write task is not processed, the second storage resource is called to continue processing the read-write task.
In step S403, abnormality information is sent to the host for notifying that the read-write task processing has failed.
In step S4041, when the second storage resource is exhausted and the read-write task is not processed, the temporary resource allocated by the stack space is called to process the read-write task.
In step S4042, when the second storage resource is occupied by the current subtask and cannot be called by other subtasks, the temporary resource allocated by the stack space is called to process the other subtasks.
In step S405, a request stop notification is sent to the host for notifying the host to suspend sending of the read-write task request to the storage device based on the stack space.
In the embodiment of the invention, based on the characteristic of high processing efficiency of the stack space, when the temporary resources allocated by the stack space are adopted to process the read-write task, the response and the processing can be fast carried out. However, because the stack space is limited in storage space, the callable temporary resources may not meet the requirement of completing the processing of the read-write task, so that based on the stack space, a request stop notification is sent to the host to inform the host to stop sending the read-write task request to the storage device, so that the host can clearly determine that the storage device does not have redundant resources to process other read-write tasks currently, the accumulation quantity of the read-write tasks is reduced, the load pressure of the storage device is relieved, and the loss caused by the interruption of the read-write task of the host is reduced. In one example, the request stopping notification may further include notifying the host to resume processing the read-write task when the first storage resource has a free resource, so that the host can determine a time when the storage device processes the read-write task.
In an embodiment, when the request stop notification is sent to the host based on the stack space, the request stop notification may be set to a link (I-T-N) between the host (Initiator) and the storage device (Target) through temporary resources allocated by the stack space, so as to achieve the purpose of notifying the host to suspend sending the read-write task request to the storage device. In one example, the request stop notification may be a unit attention instruction (unit attention).
In an implementation scenario, when the storage device receives a read-write task sent by the host, the storage device responds to invoke a first storage resource (a general memory resource), and further processes the read-write task through the first storage resource. When the first storage resource is exhausted and the read-write TASK is not processed, the second storage resource (reserved memory resource) is called to continuously process the read-write TASK, and meanwhile, the TASK FULL is sent out to the host so as to inform that the processing of the currently executed read-write TASK fails. And when the second storage resource is exhausted and the read-write task is not processed, continuing to process the temporary resource allocated by the call stack space. If the temporary resources allocated by the stack space are exhausted and the read-write task is not completed, all the resources occupied by the read-write task are directly released, so that task blocking is avoided. And when the temporary resource is called, a request stop notification (unit notification) is set to the I-T-N based on the temporary resource to notify the host to pause sending the read-write task request to the storage device, and the read-write task is continuously processed when the general memory resource has idle storage resource.
Through the implementation scene, when the read-write task is processed, the read-write task is processed as far as possible by adopting the general processing resource and the temporary resource three-stage processing method of reserving the memory resource and the stack space, so that the continuity of the read-write service of the host is ensured, and the situation that the read-write task cannot be continuously processed due to resource exhaustion and the read-write service of the host is interrupted is avoided.
It should be understood that, although the steps in fig. 1-4 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps of fig. 1-4 may include multiple steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the steps or stages in other steps or other steps.
Based on the same inventive concept, the invention further provides a resource call control device applied to the storage device, wherein the storage device is connected with at least one host.
Fig. 5 is a block diagram illustrating a structure of a resource call control apparatus according to an exemplary embodiment. As shown in fig. 5, the resource call control apparatus includes a first call unit 501, a second call unit 502, and a third call unit 503.
The first calling unit 501 is configured to respond to a received read-write task of a host, and call a first storage resource to process the read-write task, where the first storage resource is a resource for the read-write task allocated in the total memory resource;
the second calling unit 502 is configured to call a second storage resource to continue processing the read-write task when the first storage resource is exhausted and the read-write task is not processed, where the second storage resource is a resource reserved for the host in the total memory resource;
and a third calling unit 503, configured to call the temporary resource allocated by the stack space to process the read-write task when the second storage resource is exhausted and the read-write task is not processed.
In an embodiment, the third calling unit 503 includes: and the calling sub-unit is used for calling the temporary resources allocated by the stack space to process other subtasks when the second storage resources are occupied by the current subtasks and can not be called by the other subtasks.
In another embodiment, the apparatus further comprises: and the sending unit is used for sending abnormal information to the host computer and informing that the read-write task processing fails.
In yet another embodiment, the apparatus further comprises: and the notification sending unit is used for sending a request stopping notification to the host based on the stack space and used for notifying the host to stop sending the read-write task request to the storage device.
In yet another embodiment, the apparatus further comprises: the first dividing unit is used for dividing the resources for the read-write task according to the number of cores of the CPU of the host, and determining the first storage resources corresponding to the host.
In yet another embodiment, the apparatus further comprises: and the second dividing unit is used for equally dividing the reserved resources according to the number of the hosts connected with the storage equipment and determining second storage resources corresponding to the hosts.
In yet another embodiment, the processing result includes a read-write task processing error status code.
The specific limitation of the resource call control device and the beneficial effects can be referred to the limitation of the resource call control method, and are not described herein. The various modules described above may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Fig. 6 is a schematic diagram of a hardware structure of a computer device according to an exemplary embodiment. As shown in fig. 6, the device includes one or more processors 610 and a memory 620, the memory 620 including persistent memory, volatile memory and a hard disk, one processor 610 being illustrated in fig. 6. The apparatus may further include: an input device 630 and an output device 640.
The processor 610, memory 620, input devices 630, and output devices 640 may be connected by a bus or other means, for example in fig. 6.
The processor 610 may be a central processing unit (Central Processing Unit, CPU). The processor 610 may also be a chip such as other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination thereof. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 620, which is a non-transitory computer readable storage medium, includes persistent memory, volatile memory, and hard disk, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the service management method in the embodiments of the present application. The processor 610 executes various functional applications of the server and data processing, i.e., implements the above-described resource call control method, by running non-transitory software programs, instructions, and modules stored in the memory 620.
Memory 620 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data, etc., as needed, used as desired. In addition, memory 620 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 620 optionally includes memory remotely located relative to processor 610, which may be connected to the data processing apparatus via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 630 may receive input numeric or character information and generate key signal inputs related to user settings and function control. The output device 640 may include a display device such as a display screen.
The one or more modules are stored in the memory 620, which when executed by the one or more processors 610, perform the methods illustrated in fig. 1-4.
The product can execute the method provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Technical details which are not described in detail in the present embodiment can be found in the embodiments shown in fig. 1 to 4.
The embodiments of the present invention also provide a non-transitory computer storage medium storing computer executable instructions that can perform the authentication method in any of the above-described method embodiments. Wherein the storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
It will be appreciated by those skilled in the art that implementing all or part of the above-described embodiment method may be implemented by a computer program to instruct related hardware, where the program may be stored in a computer readable storage medium, and the program may include the above-described embodiment method when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (RAM), or the like.
It is apparent that the above examples are given by way of illustration only and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While still being apparent from variations or modifications that may be made by those skilled in the art are within the scope of the invention.

Claims (5)

1. A resource call control method, applied to a storage device, the storage device being connected to at least one host, the method comprising:
responding to a received read-write task of a host, and calling a first storage resource to process the read-write task, wherein the first storage resource is a resource which is distributed in a total memory resource and is used for the read-write task, and the read-write task comprises a plurality of subtasks;
when the first storage resource is exhausted and the read-write task is not processed, a second storage resource is called to continue to process the read-write task, wherein the second storage resource is reserved for the host in the total memory resource;
the abnormal information is sent to the host computer and used for informing that the read-write task fails to be processed;
when the second storage resource is exhausted and the read-write task is not processed, a temporary resource allocated by a stack space is called to process the read-write task;
when the second storage resource is occupied by the current subtask and can not be called by other subtasks, the temporary resource allocated by the call stack space processes other subtasks;
based on the stack space, sending a request stop notification to the host for notifying the host to stop sending a read-write task request to the storage device;
the method for distributing the first storage resources comprises the following steps: dividing the resources for the read-write task according to the number of cores of the CPU of the host, and determining the first storage resources corresponding to the host;
the second storage resource allocation method comprises the following steps: and equally dividing the reserved resources according to the number of the hosts connected with the storage equipment, and determining second storage resources corresponding to the hosts.
2. The method of claim 1, wherein the processing result includes the read-write task processing error status code.
3. A resource call control apparatus for use with a storage device, the storage device being coupled to at least one host, the apparatus comprising:
the first calling unit is used for responding to the received read-write task of the host, calling a first storage resource to process the read-write task, wherein the first storage resource is a resource which is distributed in the total memory resource and is used for the read-write task, and the read-write task comprises a plurality of subtasks;
the second calling unit is used for calling a second storage resource to continuously process the read-write task when the first storage resource is exhausted and the read-write task is not processed, wherein the second storage resource is reserved for the host in the total memory resource;
the sending unit is used for sending abnormal information to the host computer and informing that the read-write task fails to be processed;
the third calling unit is used for calling temporary resources allocated by stack space to process the read-write task when the second storage resources are exhausted and the read-write task is not processed;
the third calling unit includes: a calling sub-unit, configured to, when the second storage resource is occupied by a current sub-task and cannot be called by another sub-task, call a temporary resource allocated by a stack space to process another sub-task;
a notification sending unit, configured to send a request stop notification to the host based on the stack space, and configured to notify the host to suspend sending of a read-write task request to the storage device;
the first dividing unit is used for dividing the resources used for the read-write task according to the core number of the CPU of the host, and determining the first storage resources corresponding to the host;
and the second dividing unit is used for equally dividing the reserved resources according to the number of the hosts connected with the storage equipment and determining second storage resources corresponding to the hosts.
4. A computer device comprising a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the resource call control method of any of claims 1-2.
5. A computer-readable storage medium storing computer instructions for causing the computer to execute the resource call control method according to any one of claims 1-2.
CN202111276137.6A 2021-10-29 2021-10-29 Resource call control method, resource call control device and storage medium Active CN114116203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111276137.6A CN114116203B (en) 2021-10-29 2021-10-29 Resource call control method, resource call control device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111276137.6A CN114116203B (en) 2021-10-29 2021-10-29 Resource call control method, resource call control device and storage medium

Publications (2)

Publication Number Publication Date
CN114116203A CN114116203A (en) 2022-03-01
CN114116203B true CN114116203B (en) 2024-01-09

Family

ID=80379865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111276137.6A Active CN114116203B (en) 2021-10-29 2021-10-29 Resource call control method, resource call control device and storage medium

Country Status (1)

Country Link
CN (1) CN114116203B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115658242B (en) * 2022-10-21 2024-04-26 芯华章科技股份有限公司 Task processing method for logic system design and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766153A (en) * 2017-10-17 2018-03-06 华为技术有限公司 A kind of EMS memory management process and device
CN109871266A (en) * 2018-12-15 2019-06-11 中国平安人寿保险股份有限公司 Task delay process method, apparatus, computer installation and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107766153A (en) * 2017-10-17 2018-03-06 华为技术有限公司 A kind of EMS memory management process and device
CN109871266A (en) * 2018-12-15 2019-06-11 中国平安人寿保险股份有限公司 Task delay process method, apparatus, computer installation and storage medium

Also Published As

Publication number Publication date
CN114116203A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US10609159B2 (en) Providing higher workload resiliency in clustered systems based on health heuristics
US9582305B2 (en) Virtualization congestion control framework for modifying execution of applications on virtual machine based on mass congestion indicator in host computing system
US20160378570A1 (en) Techniques for Offloading Computational Tasks between Nodes
US10993127B2 (en) Network slice instance management method, apparatus, and system
CN109726005B (en) Method, server system and computer readable medium for managing resources
US9037703B1 (en) System and methods for managing system resources on distributed servers
US9635102B2 (en) Broker module for managing and monitoring resources between internet service providers
CN113886089A (en) Task processing method, device, system, equipment and medium
CN114116203B (en) Resource call control method, resource call control device and storage medium
CN112905334A (en) Resource management method, device, electronic equipment and storage medium
US9092396B2 (en) Standby system device, a control method, and a program thereof
WO2016180440A1 (en) Managing of storage resources
CN115904761A (en) System on chip, vehicle and video processing unit virtualization method
WO2020252724A1 (en) Log processing method and device, and computer-readable storage medium
US11709707B2 (en) Low latency distributed counters for quotas
JP2013171355A (en) Computer system
CN112099728A (en) Method and device for executing write operation and read operation
CN105208111A (en) Information processing method and physical machine
US9836342B1 (en) Application alerting system and method for a computing infrastructure
CN114553900B (en) Distributed block storage management system, method and electronic equipment
CN115378885A (en) Virtual machine service network bandwidth management method and device under super-convergence architecture
CN111382139A (en) Parallel access method for same account in database
JP4877317B2 (en) Information processing apparatus and interrupt control method
JP6408500B2 (en) Call processing system, load distribution apparatus, and load distribution method
CN118093151A (en) Dynamic resource adjustment method and communication device

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