CN108287793B - Response message buffering method and server - Google Patents
Response message buffering method and server Download PDFInfo
- Publication number
- CN108287793B CN108287793B CN201810019157.7A CN201810019157A CN108287793B CN 108287793 B CN108287793 B CN 108287793B CN 201810019157 A CN201810019157 A CN 201810019157A CN 108287793 B CN108287793 B CN 108287793B
- Authority
- CN
- China
- Prior art keywords
- response message
- buffer
- file
- store
- memory
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0253—Garbage collection, i.e. reclamation of unreferenced memory
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0806—Multiuser, multiprocessor or multiprocessing cache systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及消息处理技术领域,特别涉及响应消息的缓冲方法及服务器。Embodiments of the present invention relate to the technical field of message processing, and in particular, to a method and a server for buffering response messages.
背景技术Background technique
为了提高socket响应消息发送吞吐量,需要由服务器中的处理消息请求线程把响应消息写入缓冲区,并由消息处理线程来将缓冲区中的消息发送出去,因此,既要保证消息写入到缓冲区的响应速度,又要保证缓冲区发送消息的响应速度。In order to improve the throughput of socket response message sending, the message processing request thread in the server needs to write the response message into the buffer, and the message processing thread sends the message in the buffer. Therefore, it is necessary to ensure that the message is written to the buffer. The response speed of the buffer, but also to ensure the response speed of the buffer to send messages.
目前中小企业服务器,一般的缓冲区都只是在内存中。服务器的带宽普遍在1~100M之间,网络传输速度0.12~12.5MB/s之间。而内存读写速度在1G/s以上,如果出现大量内存随机访问,导致频繁出现缺页或者页面调入调出的情况,内存随机读写速度会大大降低;若响应消息的流量较大,很容易造成服务器网络发送消息的响应速度跟不上消息增加速度,造成请求堆积、服务器无响应。At present, small and medium-sized servers, the general buffers are only in memory. The bandwidth of the server is generally between 1 and 100M, and the network transmission speed is between 0.12 and 12.5MB/s. The memory read and write speed is above 1G/s. If a large number of random accesses to the memory occur, resulting in frequent page faults or page calls in and out, the random read and write speed of the memory will be greatly reduced; if the flow of response messages is large, it is very difficult to It is easy to cause the response speed of the message sent by the server network to keep up with the increase of the message, resulting in the accumulation of requests and the unresponsive server.
发明人发现现有技术中至少存在如下问题:目前的中小企业服务器,当出现内存缓冲区满了(网络发送速度跟不上消息增加速度)的情况时,只能停掉服务器或动态增加内存缓冲区大小,这样既影响系统的响应时间又导致系统的不稳定性,而且内存是相对昂贵资源,特别是达到一定大小后再扩容,费用相当高。The inventor found that there are at least the following problems in the prior art: in the current small and medium-sized server, when the memory buffer is full (the network sending speed cannot keep up with the message increase speed), the server can only be stopped or the memory buffer can be dynamically increased. This will not only affect the response time of the system but also lead to the instability of the system, and the memory is a relatively expensive resource, especially if it reaches a certain size and then expands the capacity, the cost is quite high.
发明内容SUMMARY OF THE INVENTION
本发明实施方式的目的在于提供一种响应消息的缓冲方法及服务器,不仅提升了系统响应时间和系统稳定性,而且节约了内存成本。The purpose of the embodiments of the present invention is to provide a buffering method and server for a response message, which not only improves the system response time and system stability, but also saves memory costs.
为解决上述技术问题,本发明的实施方式提供了一种响应消息的缓冲方法,包括:当存在需要缓冲的响应消息时,判断预设的内存缓冲区的剩余空间是否能够存放所述响应消息;若所述内存缓冲区的剩余空间不能够存放所述响应消息,则将所述响应消息存放至预设的磁盘缓冲区。In order to solve the above-mentioned technical problem, an embodiment of the present invention provides a buffering method for a response message, including: when there is a response message that needs to be buffered, judging whether the remaining space of the preset memory buffer can store the response message; If the remaining space of the memory buffer cannot store the response message, the response message is stored in a preset disk buffer.
本发明的实施方式还提供了一种服务器,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够上述响应消息的缓冲方法。Embodiments of the present invention also provide a server, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a program executable by the at least one processor instructions, the instructions being executed by the at least one processor to enable the at least one processor to enable the buffering method of the response message described above.
本发明的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述响应消息的缓冲方法。Embodiments of the present invention further provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the foregoing method for buffering a response message is implemented.
本发明实施方式相对于现有技术而言,当内存缓冲区的剩余空间不能够存放所述响应消息,则将所述响应消息存放至预设的磁盘缓冲区;即能够在内存缓冲区已满情况下,利用磁盘缓冲区对响应消息进行缓冲,而无需停掉服务器或动态增加内存缓冲区大小,从而能够在最大限度地利用设置的内存空间前提下,充分利用磁盘空间,不仅提升了系统响应时间和系统稳定性,而且节约了内存成本。Compared with the prior art, the embodiment of the present invention stores the response message in a preset disk buffer when the remaining space of the memory buffer cannot store the response message; that is, the response message can be stored when the memory buffer is full. In this case, the disk buffer is used to buffer the response message without stopping the server or dynamically increasing the size of the memory buffer, so that the disk space can be fully utilized under the premise of maximizing the use of the set memory space, which not only improves the system response time and system stability, and save on memory costs.
另外,所述将所述响应消息存放至预设的磁盘缓冲区,具体包括:获取所述磁盘缓冲区中的当前缓冲文件;根据预设的单文件大小阈值与所述当前缓冲文件的文件大小,计算出所述当前缓冲文件的剩余可用大小;判断所述当前缓冲文件的剩余可用大小是否能够存放所述响应消息;若所述当前缓冲文件的剩余可用大小能够存放所述响应消息,将所述响应消息存放至所述当前缓冲文件;若所述当前缓冲文件的剩余可用大小不能够存放所述响应消息,新建另一缓冲文件,并将所述另一缓冲文件设定为所述当前缓冲文件,并将所述响应消息存放至重新设定的所述当前缓冲文件。本实施例的技术方案,可以确保单个缓冲文件的大小不超过预设的单文件大小阈值,从而可以避免由于单个文件过大而可能导致的读写错误的问题。In addition, the storing the response message in the preset disk buffer specifically includes: acquiring the current buffer file in the disk buffer; according to the preset single file size threshold and the file size of the current buffer file , calculate the remaining available size of the current buffer file; determine whether the remaining available size of the current buffer file can store the response message; if the remaining available size of the current buffer file can store the response message, the The response message is stored in the current buffer file; if the remaining available size of the current buffer file cannot store the response message, create another buffer file and set the other buffer file as the current buffer file. file, and save the response message to the reset current buffer file. The technical solution of this embodiment can ensure that the size of a single buffer file does not exceed a preset single file size threshold, thereby avoiding the problem of read and write errors that may be caused by a single file being too large.
另外,所述判断预设的内存缓冲区的剩余空间是否能够存放所述响应消息,具体包括:获取所述内存缓冲区中的当前缓冲块;判断所述当前缓冲块的剩余空间是否能够存放所述响应消息;若所述当前缓冲块的剩余空间不能够存放所述响应消息,判断所述内存缓冲区中是否存在另一缓冲块,其中所述另一缓冲块的剩余空间能够存放所述响应消息;若不存在所述另一缓冲块,则判定所述内存缓冲区的剩余空间不能够存放所述响应消息。本实施例提供了判断内存缓冲区的剩余空间是否能够存放所述响应消息的一种具体方式。In addition, the judging whether the remaining space of the preset memory buffer can store the response message specifically includes: acquiring the current buffer block in the memory buffer; judging whether the remaining space of the current buffer block can store the response message If the remaining space of the current buffer block cannot store the response message, determine whether there is another buffer block in the memory buffer, wherein the remaining space of the other buffer block can store the response message message; if the other buffer block does not exist, it is determined that the remaining space of the memory buffer cannot store the response message. This embodiment provides a specific way of judging whether the remaining space of the memory buffer can store the response message.
另外,所述将所述响应消息存放至所述磁盘缓冲区之后,还包括:获取所述响应消息的指针,并将所述响应消息的指针加入预设的消息队列;所述消息队列中包括多个所述响应消息的指针;在消息发送过程中,从所述消息队列中依次获取各所述响应消息的指针;根据各所述响应消息的指针获取各所述响应消息,并将获取的各所述响应消息发送出去;其中,若所述响应消息的指针指向所述磁盘缓冲区,则从所述磁盘缓冲区获取所述响应消息;若所述响应消息的指针指向所述内存缓冲区,则从所述内存缓冲区获取所述响应消息。本实施例提供了响应消息发送过程的一种具体方式。In addition, after storing the response message in the disk buffer, the method further includes: acquiring a pointer of the response message, and adding the pointer of the response message to a preset message queue; the message queue includes a plurality of pointers to the response messages; during the message sending process, the pointers of the response messages are sequentially obtained from the message queue; the response messages are obtained according to the pointers of the response messages, and the obtained Each response message is sent out; wherein, if the pointer of the response message points to the disk buffer, the response message is obtained from the disk buffer; if the pointer of the response message points to the memory buffer , the response message is obtained from the memory buffer. This embodiment provides a specific way of sending a response message.
另外,在所述将获取的各所述响应消息发送出去之后,还包括:若所述响应消息是从所述磁盘缓冲区获取的,判断所述响应消息所在的缓冲文件中的所有响应消息是否均已发送完毕;若均已发送完毕,则回收所述响应消息所在的缓冲文件。本实施例提供的技术方案,当响应消息发送完毕时,能够对磁盘缓冲区的缓冲文件进行及时回收,从而便于快速循环利用。In addition, after sending each of the acquired response messages, the method further includes: if the response messages are acquired from the disk buffer, determining whether all the response messages in the buffer file where the response messages are located are not All have been sent; if all have been sent, the buffer file where the response message is located is recycled. In the technical solution provided by this embodiment, when the sending of the response message is completed, the buffer file in the disk buffer can be recovered in time, thereby facilitating rapid recycling.
另外,所述回收所述响应消息所在的缓冲文件,具体包括:将所述响应消息所在的缓冲文件标记为待回收状态;定时回收被标记为待回收状态的所述缓冲文件。本实施例提供了回收磁盘缓存文件的一种具体实现方法。In addition, the reclaiming the buffer file where the response message is located specifically includes: marking the buffer file where the response message is located as a state to be reclaimed; and periodically reclaiming the buffer file marked as a state to be reclaimed. This embodiment provides a specific implementation method for recycling disk cache files.
附图说明Description of drawings
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplifications do not constitute limitations of the embodiments, and elements with the same reference numerals in the drawings are denoted as similar elements, Unless otherwise stated, the figures in the accompanying drawings do not constitute a scale limitation.
图1是根据本发明第一实施例的响应消息的缓冲方法的流程图;1 is a flowchart of a method for buffering a response message according to a first embodiment of the present invention;
图2是根据本发明第一实施例的响应消息的缓冲方法的具体流程图;2 is a specific flowchart of a method for buffering a response message according to the first embodiment of the present invention;
图3是根据本发明第二实施例的响应消息的缓冲方法的流程图;3 is a flowchart of a method for buffering a response message according to a second embodiment of the present invention;
图4是根据本发明第三实施例的响应消息的缓冲方法的流程图;。FIG. 4 is a flowchart of a buffering method for a response message according to a third embodiment of the present invention;
图5是根据本发明第四实施例的服务器的具体流程图。FIG. 5 is a specific flowchart of a server according to a fourth embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。In order to make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the various embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art can appreciate that, in the various embodiments of the present invention, many technical details are set forth in order for the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be realized.
本发明的第一实施方式涉及一种响应消息的缓冲方法,包括:当存在需要缓冲的响应消息时,判断预设的内存缓冲区的剩余空间是否能够存放响应消息;若内存缓冲区的剩余空间不能够存放响应消息,则将响应消息存放至预设的磁盘缓冲区。The first embodiment of the present invention relates to a method for buffering response messages, which includes: when there is a response message that needs to be buffered, judging whether the remaining space of the preset memory buffer can store the response message; if the remaining space of the memory buffer If the response message cannot be stored, the response message is stored in the preset disk buffer.
本实施方式与现有技术相比,当内存缓冲区的剩余空间不能够存放所述响应消息,则将所述响应消息存放至预设的磁盘缓冲区;即能够在内存缓冲区已满情况下,利用磁盘缓冲区对响应消息进行缓冲,而无需停掉服务器或动态增加内存缓冲区大小,从而能够在最大限度地利用设置的内存空间前提下,充分利用磁盘空间,不仅提升了系统响应时间和系统稳定性,而且节约了内存成本。Compared with the prior art, in this embodiment, when the remaining space of the memory buffer cannot store the response message, the response message is stored in the preset disk buffer; that is, when the memory buffer is full , using the disk buffer to buffer the response message without stopping the server or dynamically increasing the size of the memory buffer, so that the disk space can be fully utilized under the premise of maximizing the use of the set memory space, which not only improves the system response time and System stability and memory cost savings.
下面对本实施方式的响应消息的缓冲方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。The implementation details of the method for buffering a response message in this embodiment will be specifically described below. The following content is only provided for the convenience of understanding, and is not necessary for implementing this solution.
本实施方式中的响应消息的缓冲方法应用于服务器,请参考图1,具体包括:The buffering method of the response message in this embodiment is applied to the server, please refer to FIG. 1, and specifically includes:
步骤101,判断是否存在需要缓存的响应消息。若是,则进入步骤102,若否,则返回步骤101。Step 101: Determine whether there is a response message that needs to be cached. If yes, go to
具体而言,当服务器接收到客户端的请求信息时,会根据请求信息生成响应消息,此时服务器判定存在需要缓存的响应消息,然后进入步骤102;否则,重复执行步骤101;即可以理解为,服务器会实时检测是否存在需要缓存的响应消息,每当检测到新生成了一个响应消息时,就会判定存在需要缓存的响应消息。Specifically, when the server receives the request information from the client, it will generate a response message according to the request information. At this time, the server determines that there is a response message that needs to be cached, and then enters
步骤102,判断预设的内存缓冲区的剩余空间是否能够存放响应消息。若是,则进入步骤104;若否,则进入步骤103。Step 102: Determine whether the remaining space of the preset memory buffer can store the response message. If yes, go to
具体而言,服务器内部预设了内存缓冲区,以供缓存响应消息。服务器会判断内存缓冲区的剩余空间与响应消息所需的存放空间的大小关系,从而判断出内存缓冲区的剩余空间是否能够存放响应消息。如图2所示,本实施例中的步骤102包括多个子步骤,其中图2是本实施例较为细化的具体流程图,请同时参考图1和图2。Specifically, a memory buffer is preset inside the server for caching response messages. The server will determine the relationship between the remaining space of the memory buffer and the storage space required for the response message, so as to determine whether the remaining space of the memory buffer can store the response message. As shown in FIG. 2 ,
子步骤1021,获取内存缓冲区中的当前缓冲块。
本实施例中,内存缓冲区被预先划分成多个缓冲块,并预先设定了每个缓冲块的预设空间。服务器在对内存缓冲区进行写入操作时,会将多个缓冲块依次写满;即,服务器先获取一个缓冲块并允许对该缓冲块执行写入操作,然后将若干个响应消息存放在该缓冲块中,只有当该缓冲块存满后,服务器才获取另一个缓冲块并允许对该另一个缓冲块执行写入操作,然后向该另一个缓冲块内存放若干个响应消息,以此类推。In this embodiment, the memory buffer is pre-divided into a plurality of buffer blocks, and a preset space for each buffer block is pre-set. When the server writes to the memory buffer, it will fill up multiple buffer blocks in turn; that is, the server first obtains a buffer block and allows the write operation to be performed on the buffer block, and then stores several response messages in the buffer block. In the buffer block, only when the buffer block is full, the server obtains another buffer block and allows the write operation to be performed on the other buffer block, and then stores several response messages in the other buffer block, and so on. .
其中,当前缓冲块即是指当前被允许执行写入操作的缓冲块;因此,获取内存缓冲区中的当前缓冲块,即为获取内存缓冲区中的当前被允许执行写入操作的缓冲块。Among them, the current buffer block refers to the buffer block currently allowed to perform the write operation; therefore, obtaining the current buffer block in the memory buffer is to obtain the buffer block currently allowed to perform the write operation in the memory buffer.
需要说明的是,本实施例中,每个缓冲块的预设空间是相等的,然在其他例子中,每个缓冲块的预设空间也可以不相等;另外,本实施例是以内存缓冲区被划分成多个缓冲块的形式存放响应消息,然不限于此,凡是能够实现响应消息存放的方式均可以。It should be noted that, in this embodiment, the preset space of each buffer block is equal, but in other examples, the preset space of each buffer block may also be unequal; in addition, this embodiment uses memory buffering The area is divided into a plurality of buffer blocks to store the response message, but it is not limited to this, and any method that can realize the storage of the response message can be used.
子步骤1022,判断当前缓冲块的剩余空间是否能够存放响应消息。若是,则进入步骤104;若否,则进入子步骤1023。
其中,当前缓冲块的剩余空间即为当前缓冲块的预设空间与当前缓冲块的已使用空间的差值。服务器内部对自动记录各缓冲块的已使用空间和剩余空间,当需要使用时,即可获取各缓冲块的已使用空间和剩余空间。The remaining space of the current buffer block is the difference between the preset space of the current buffer block and the used space of the current buffer block. The server automatically records the used space and remaining space of each buffer block. When it needs to be used, the used space and remaining space of each buffer block can be obtained.
具体而言,服务器会判断当前缓冲块的剩余空间是否小于响应消息所需的存储空间;若当前缓冲块的剩余空间小于响应消息所需的存储空间,表示当前缓冲块不能够存放该响应消息,则需要判断是否存在另一缓冲块,其中该另一缓冲块的剩余空间能够存放响应消息(即进入子步骤1023);若当前缓冲块的剩余空间大于或等于响应消息所需的存储空间,则判定当前缓冲块的剩余空间能够存放响应消息,并将响应消息存放至当前缓冲块(即进入步骤104)。Specifically, the server will determine whether the remaining space of the current buffer block is less than the storage space required for the response message; if the remaining space of the current buffer block is less than the storage space required for the response message, it means that the current buffer block cannot store the response message. Then it is necessary to judge whether there is another buffer block, wherein the remaining space of the other buffer block can store the response message (that is, enter sub-step 1023); if the remaining space of the current buffer block is greater than or equal to the storage space required for the response message, then It is determined that the remaining space of the current buffer block can store the response message, and the response message is stored in the current buffer block (ie, go to step 104).
子步骤1023,判断内存缓冲区中是否存在另一缓冲块,其中该另一缓冲块的剩余空间能够存放响应消息。若是,则进入步骤104;若否,则进入子步骤103。Sub-step 1023, determine whether there is another buffer block in the memory buffer, wherein the remaining space of the other buffer block can store the response message. If yes, go to step 104; if no, go to
即,从内存缓冲区查找是否存在另一缓冲块,其中该另一缓冲块的剩余空间能够存放响应消息。若存在该另一缓冲块,则判定内存缓冲区的剩余空间能够存放响应消息;并将该另一缓冲块设定为当前缓冲块(即对当前缓冲块进行重新设定),即进入子步骤1024,然后将响应消息存放至重新设定的该当前缓冲块中,即进入步骤104。That is, it is searched from the memory buffer whether there is another buffer block, wherein the remaining space of the other buffer block can store the response message. If the other buffer block exists, it is determined that the remaining space of the memory buffer can store the response message; and the other buffer block is set as the current buffer block (that is, the current buffer block is reset), that is, the sub-step is entered.
若不存在该另一缓冲块,即内存缓冲区中没有一个缓冲块的剩余空间能够存放响应消息,则判定内存缓冲区的剩余空间不能够存放响应消息,此时,将所述响应消息存放至预设的磁盘缓冲区,即进入步骤103。If the other buffer block does not exist, that is, there is no remaining space in the memory buffer that can store the response message, then it is determined that the remaining space in the memory buffer cannot store the response message. At this time, the response message is stored in the The preset disk buffer is entered into
子步骤1024,将该另一缓冲块设定为当前缓冲块。Sub-step 1024, set the other buffer block as the current buffer block.
以上是所述的步骤102的具体实现方式,只是作为一个例子进行说明,本实施例并不以此为限。The above is the specific implementation manner of
步骤103,将响应消息存放至预设的磁盘缓冲区。Step 103: Store the response message in a preset disk buffer.
具体而言,服务器内部预先配置了磁盘缓冲区。现有技术中,磁盘缓冲区通常是在将外部获取的数据写入硬盘时,起到缓冲作用;而本发明的实施例中,可以将响应消息存放至磁盘缓冲区,即磁盘缓冲区还可以对响应消息起到缓冲作用。Specifically, a disk buffer is preconfigured inside the server. In the prior art, the disk buffer usually plays a buffering role when writing externally acquired data into the hard disk; while in the embodiment of the present invention, the response message can be stored in the disk buffer, that is, the disk buffer can also Buffer the response message.
步骤104,将响应消息存放至内存缓冲区。
即,服务器将响应消息存放至内存缓冲区的当前缓冲块。That is, the server stores the response message in the current buffer block of the memory buffer.
需要说明的是,本实施例中并没有预先对磁盘缓冲区的总的空间设定;即可以认为,只要有存放需求,就可以将响应消息存放至磁盘缓冲区。需要说明的是,在实际应用中,只有在内存缓冲区溢出(即内存缓冲区的剩余空间不足)时,才会将响应消息存放至磁盘缓冲区;并且,由于内存缓冲区中的响应消息在发送完毕时,其所占的内存空间会被及时回收,因此,内存缓冲区溢出的量可能并不会特别大,故不会占用磁盘缓冲区太大的空间。It should be noted that, in this embodiment, the total space of the disk buffer is not set in advance; that is, it can be considered that as long as there is a storage requirement, the response message can be stored in the disk buffer. It should be noted that, in practical applications, only when the memory buffer overflows (that is, the remaining space of the memory buffer is insufficient), the response message will be stored in the disk buffer; When the sending is completed, the memory space occupied by it will be reclaimed in time. Therefore, the amount of memory buffer overflow may not be particularly large, so it will not occupy too much space in the disk buffer.
较佳的,本实施例的响应消息的缓冲方法的实现细节中,还包括以下步骤,如图2中所示。Preferably, the implementation details of the method for buffering a response message in this embodiment further include the following steps, as shown in FIG. 2 .
步骤105,获取响应消息的指针,并将响应消息的指针加入预设的消息队列;消息队列中包括多个所述响应消息的指针。Step 105: Acquire the pointer of the response message, and add the pointer of the response message to a preset message queue; the message queue includes a plurality of pointers to the response message.
具体而言,服务器会预先设置消息队列,消息队列的数量可以根据需要设定。服务器在将响应消息存放至内存缓冲区或者磁盘缓冲区后,还要获取响应消息的指针,并把响应消息的指针(响应消息目前存放的具体地址)放入预先设定的消息队列中,以排队等到发送;其中,每个消息队列中包括多个响应消息的指针,且依次排列。Specifically, the server will preset message queues, and the number of message queues can be set as required. After the server stores the response message in the memory buffer or disk buffer, it also needs to obtain the pointer of the response message, and put the pointer of the response message (the specific address where the response message is currently stored) into the preset message queue, so as to Queue and wait until sending; wherein, each message queue includes pointers to multiple response messages, which are arranged in sequence.
其中,当消息队列的数量为多个时,服务器可以按照预设规则将该响应消息放入某一个消息队列;该预设规则可以根据需要设定,例如,将该响应消息放入包含较少响应消息的消息队列。Wherein, when the number of message queues is multiple, the server can put the response message into a certain message queue according to a preset rule; the preset rule can be set as needed, for example, put the response message into a message queue that contains less A message queue for response messages.
步骤106,在消息发送过程中,从消息队列中依次获取各响应消息的指针。Step 106: During the message sending process, the pointers of each response message are sequentially obtained from the message queue.
步骤107,根据各响应消息的指针获取各响应消息,并将获取的各响应消息发送出去。Step 107: Acquire each response message according to the pointer of each response message, and send each acquired response message.
具体而言,服务器会预先创建消息处理线程,以用于将响应消息发送出去;其中,消息处理线程的数量与消息队列的数量相等,即一个消息处理线程负责一个消息队列中的响应消息的发送。Specifically, the server will pre-create message processing threads to send response messages; the number of message processing threads is equal to the number of message queues, that is, one message processing thread is responsible for sending response messages in one message queue .
在消息发送过程中,消息处理线程按照响应消息的指针在消息队列中的排列顺序,依次获取各响应消息的指针,并根据各响应消息的指针获取各响应消息,然后将其发送出去(发送至客户端)。其中,若响应消息的指针指向磁盘缓冲区,则从磁盘缓冲区获取所述响应消息;若响应消息的指针指向内存缓冲区,则从内存缓冲区获取响应消息。During the message sending process, the message processing thread obtains the pointers of each response message in turn according to the order in which the pointers of the response messages are arranged in the message queue, and obtains each response message according to the pointer of each response message, and then sends it out (send to client). Wherein, if the pointer of the response message points to the disk buffer, the response message is acquired from the disk buffer; if the pointer of the response message points to the memory buffer, the response message is acquired from the memory buffer.
例如,消息处理线程从消息队列获取了一个响应消息的指针,如果该响应消息的指针指向磁盘缓冲区(表示该响应消息被存放在磁盘缓冲区),则消息处理线程访问磁盘缓冲区,并根据该响应消息的指针获取该响应消息;如果该响应消息的指针指向内存缓冲区(表示该响应消息被存放在内存缓冲区),则消息处理线程访问内存缓冲区,并根据该响应消息的指针获取该响应消息;然后将获取的响应消息发送出去;接着,消息处理线程从消息队列在获取下一个响应消息的指针,以此类推。For example, the message processing thread obtains a pointer of a response message from the message queue. If the pointer of the response message points to the disk buffer (indicating that the response message is stored in the disk buffer), the message processing thread accesses the disk buffer and executes the data according to the The pointer of the response message obtains the response message; if the pointer of the response message points to the memory buffer (indicating that the response message is stored in the memory buffer), the message processing thread accesses the memory buffer and obtains the response message according to the pointer of the response message The response message; then send the obtained response message; then, the message processing thread obtains the pointer of the next response message from the message queue, and so on.
本发明的第二实施方式涉及一种响应消息的缓冲方法。第二实施方式与第一实施方式大致相同,主要区别之处在于:在第二实施方式中,提供了步骤“将响应消息存放至磁盘缓冲区”的另一种实现方式。The second embodiment of the present invention relates to a buffering method of a response message. The second embodiment is substantially the same as the first embodiment, and the main difference is that: in the second embodiment, another implementation manner of the step "storing the response message into the disk buffer" is provided.
如图3所示,是本实施例的响应消息的缓冲方法的流程图,本实施例中的图3是在图1的基础上做出的调整,然不限于此,也可以在图2的基础上做出调整。As shown in FIG. 3 , it is a flowchart of the method for buffering a response message in this embodiment. FIG. 3 in this embodiment is an adjustment made on the basis of FIG. 1 , but it is not limited to this. based on adjustments.
其中,步骤201~202、204分别与第一实施例中的步骤101~102、104大致相同,此处不再赘述。不同之处在于,第二实施例中的步骤203,还包括如下子步骤:Wherein,
子步骤2031,获取磁盘缓冲区中的当前缓冲文件。Sub-step 2031, obtain the current buffer file in the disk buffer.
其中,服务器在磁盘缓冲区存储数据时,会创建缓冲文件,并将数据写入缓冲文件中。具体而言,本实施例中,服务器会在系统内存中预先创建磁盘缓冲区目录;当要向磁盘缓冲区存放响应消息时,服务器查询该磁盘缓冲区目录中是否存在缓存文件;若存在,则获取最新创建的缓冲文件,将其作为当前缓冲文件;若不存在,则新创建一个缓冲文件,并将其作为当前缓冲文件。Among them, when the server stores data in the disk buffer, it will create a buffer file and write the data into the buffer file. Specifically, in this embodiment, the server will pre-create a disk buffer directory in the system memory; when a response message is to be stored in the disk buffer, the server queries whether there is a cache file in the disk buffer directory; if it exists, then Get the newly created buffer file and use it as the current buffer file; if it does not exist, create a new buffer file and use it as the current buffer file.
其中,当前缓冲文件即是指当前被允许执行写入操作的缓冲文件;因此,获取磁盘缓冲区中的当前缓冲文件,即为获取磁盘缓冲区中的当前被允许执行写入操作的缓冲文件。Among them, the current buffer file refers to the buffer file that is currently allowed to perform the write operation; therefore, obtaining the current buffer file in the disk buffer is to obtain the buffer file currently allowed to perform the write operation in the disk buffer.
子步骤2032,根据预设的单文件大小阈值与当前缓冲文件的文件大小,计算出当前缓冲文件的剩余可用大小。Sub-step 2032: Calculate the remaining available size of the current buffer file according to the preset single file size threshold and the file size of the current buffer file.
本实施例中,服务器系统中预先设定了单文件大小阈值,即磁盘缓冲区中每个缓冲文件的最大容量;其中,该单文件大小阈值是服务器根据其系统配置自动设定的;其目的在于,防止单个缓冲文件过大而可能导致的服务器在读写时出错的问题。In this embodiment, a single file size threshold is preset in the server system, that is, the maximum capacity of each buffered file in the disk buffer; wherein, the single file size threshold is automatically set by the server according to its system configuration; its purpose The problem is to prevent the server from reading and writing errors that may be caused by a single buffer file being too large.
服务器计算单文件大小阈值与当前缓冲文件的文件大小的差值,并将该差值作为当前缓冲文件的剩余可用大小。The server calculates the difference between the single file size threshold and the file size of the current buffered file, and uses the difference as the remaining available size of the current buffered file.
子步骤2033,判断当前缓冲文件的剩余可用大小是否能够存放响应消息。若是,则直接进入子步骤2035;若否,则先进入子步骤2034,再进入子步骤2035。Sub-step 2033, it is judged whether the remaining available size of the current buffer file can store the response message. If yes, go directly to sub-step 2035; if not, go to sub-step 2034 first, and then go to sub-step 2035.
具体而言,服务器会判断当前缓冲文件的剩余可用大小是否小于响应消息所需的存储空间;若当前缓冲文件的剩余可用大小小于响应消息所需的存储空间,表示假如把该响应消息存放至该当前缓冲文件,会使得该当前缓冲文件的文件大小超过预先设定的该单文件大小阈值,此时,需要新建另一缓冲文件,并将该另一缓冲文件设定为当前缓冲文件(即进入子步骤2034);若当前缓冲文件的剩余可用大小大于或等于响应消息所需的存储空间,则将响应消息存放至该当前缓冲文件(即进入子步骤2035)。Specifically, the server will determine whether the remaining available size of the current buffer file is less than the storage space required for the response message; if the remaining available size of the current buffer file is less than the storage space required for the response message, it means that if the response message is stored in the The current buffer file will cause the file size of the current buffer file to exceed the preset single file size threshold. At this time, it is necessary to create another buffer file and set the other buffer file as the current buffer file (that is, enter the Sub-step 2034); if the remaining available size of the current buffer file is greater than or equal to the storage space required for the response message, store the response message in the current buffer file (ie, enter sub-step 2035).
子步骤2034,新建另一缓冲文件,并将该另一缓冲文件设定为当前缓冲文件。Sub-step 2034, create another buffer file, and set the other buffer file as the current buffer file.
具体而言,服务器在磁盘缓冲区目录中重新创建另一缓冲文件,并将该另一缓冲文件设定为当前缓冲文件;然后,将响应消息存放至重新设定的该当前缓冲文件(即进入子步骤2035)。Specifically, the server recreates another buffer file in the disk buffer directory, and sets the other buffer file as the current buffer file; then, stores the response message in the reset current buffer file (ie, enter the Substep 2035).
子步骤2035,将响应消息存放至当前缓冲文件。Sub-step 2035, store the response message in the current buffer file.
相较于第一实施例而言,本实施例提供了将响应消息存放至磁盘缓冲区的一种较佳的实现方式,其中限定了每个缓冲文件的最大存储容量,以避免可能由于得不到系统硬件支持而发生读写错误的问题。Compared with the first embodiment, this embodiment provides a better implementation of storing the response message in the disk buffer, in which the maximum storage capacity of each buffer file is limited to avoid possible The problem of reading and writing errors occurs due to system hardware support.
本发明的第三实施方式涉及一种响应消息的缓冲方法。第三实施方式是在第二实施方式的基础上的改进,主要改进之处在于:及时检测缓冲文件中的响应消息的发送状况,以能够及时回收该缓冲文件。The third embodiment of the present invention relates to a buffering method of a response message. The third embodiment is an improvement on the basis of the second embodiment, and the main improvement lies in that the sending status of the response message in the buffer file is detected in time, so that the buffer file can be recovered in time.
如图4所示,为本实施例的响应消息的缓冲方法的流程图,本实施例中的图3是在图2的基础上做出的调整。其中,步骤301~307分别与第二实施例中的步骤201~207大致相同,此处不再赘述;不同之处在于,本实施例还包括步骤308~309:As shown in FIG. 4 , it is a flowchart of a method for buffering a response message in this embodiment, and FIG. 3 in this embodiment is an adjustment made on the basis of FIG. 2 . Wherein,
步骤308,识别响应消息是否从磁盘缓冲区获取的;若是,则进入步骤309,若否,则进入步骤311。
具体而言,消息处理线程可以根据响应消息的指针识别该响应消息是否为从磁盘缓冲区获取的。如果不是从磁盘缓冲区获取,那么表示响应消息是从内存缓冲区获取的,则进入步骤311,然后再进入步骤312。Specifically, the message processing thread can identify whether the response message is obtained from the disk buffer according to the pointer of the response message. If it is not obtained from the disk buffer, it means that the response message is obtained from the memory buffer, then go to step 311 , and then go to step 312 .
步骤309,判断响应消息所在的缓冲文件中的所有响应消息是否均已发送完毕。若是,则进入步骤310;若否,则进入步骤311。Step 309: Determine whether all response messages in the buffer file where the response message is located have been sent. If yes, go to step 310; if no, go to step 311.
如果响应消息是从磁盘缓冲区获取的,那么响应消息所在的缓冲文件的所有响应消息是否均已发送完毕。其中,响应消息被发送完毕后,消息处理线程会将其标志为已发送状态;因此,消息处理线程可以查询该响应消息所在的缓冲文件中的所有响应消息是否均已被标注为已发送状态,若是,则表示该响应消息所在的缓冲文件中的所有响应消息均已发送完毕。If the response message is obtained from the disk buffer, whether all response messages in the buffer file where the response message is located have been sent. Among them, after the response message is sent, the message processing thread will mark it as sent; therefore, the message processing thread can query whether all response messages in the buffer file where the response message is located have been marked as sent, If so, it means that all response messages in the buffer file where the response message is located have been sent.
步骤310,回收响应消息所在的缓冲文件。Step 310: Reclaim the buffer file where the response message is located.
本实施例中,步骤310包括以下子步骤:In this embodiment, step 310 includes the following sub-steps:
子步骤3101:将响应消息所在的缓冲文件标记为待回收状态。Sub-step 3101: Mark the buffer file where the response message is located as a state to be recycled.
具体而言,由于本实施例中预先创建了磁盘缓冲区目录消息(请参考第一实施例中的相关描述),消息处理线程可以在磁盘缓冲区目录中,将该响应消息所在的缓冲文件对应的文件名称标注为待回收状态。Specifically, since the disk buffer directory message is pre-created in this embodiment (please refer to the relevant description in the first embodiment), the message processing thread can correspond to the buffer file where the response message is located in the disk buffer directory The name of the file is marked as pending recycling.
子步骤3102:定时回收被标记为待回收状态的缓冲文件。Sub-step 3102: Periodically reclaim the buffer files marked as to be reclaimed.
具体而言,服务器内部还创建了磁盘回收定时器和磁盘回收模块,该磁盘回收定时器会定时扫描磁盘缓冲区目录中是否有待回收的磁盘缓冲文件;若有的话,则通知通知磁盘回收模块回收该缓冲文件。Specifically, a disk recycling timer and a disk recycling module are also created inside the server. The disk recycling timer will regularly scan the disk buffer directory for disk buffer files to be recycled; if there is, it will notify the disk recycling module. Recycle the buffer file.
本实施例对于回收响应消息所在的缓冲文件的具体方式不作任何限制,上述的子步骤3101和子步骤3102只是一个较佳的例子。在其他例子中,当消息处理线程检测到某一缓冲文件中的所有响应消息均已发送完毕时,也可以直接通知磁盘回收模块回收该缓冲文件。This embodiment does not impose any restrictions on the specific manner of recovering the buffer file where the response message is located, and the above-mentioned sub-step 3101 and sub-step 3102 are just a preferred example. In other examples, when the message processing thread detects that all response messages in a certain buffer file have been sent, it can also directly notify the disk reclaiming module to reclaim the buffer file.
步骤311,判断响应消息所在的缓冲块中的所有响应消息是否均已发送完毕。
步骤312,回收响应消息所在的缓冲块。Step 312: Reclaim the buffer block where the response message is located.
其中,响应消息所在的缓冲块的回收方式与现有技术中类似,此处不再赘述。The manner of recycling the buffer block where the response message is located is similar to that in the prior art, and details are not described here.
相对于第二实施例而言,本实施例中,当磁盘缓冲区中某个缓冲文件中的所有响应消息都发送完毕后,服务器可以及时回收该缓冲文件,以便于磁盘空间的循环利用。需要说明的是,本实施方式也可以是在第一实施例基础上的改进,且起到的技术效果相同。Compared with the second embodiment, in this embodiment, after all response messages in a certain buffer file in the disk buffer are sent, the server can recycle the buffer file in time to facilitate the recycling of disk space. It should be noted that this embodiment can also be an improvement on the basis of the first embodiment, and has the same technical effect.
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the above various methods are divided only for the purpose of describing clearly. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as the same logical relationship is included, they are all within the protection scope of this patent. ;Adding insignificant modifications to the algorithm or process or introducing insignificant designs, but not changing the core design of the algorithm and process are all within the scope of protection of this patent.
本发明的第四实施方式涉及一种服务器,如图5所示,包括:至少一个处理器11;以及,与至少一个处理器11通信连接的存储器12;其中,存储器12存储有可被至少一个处理器11执行的指令,指令被所述至少一个处理器11执行,以使至少一个处理器11能够执行上述第一至第三实施例中任一实施例所述的响应消息的缓冲方法。The fourth embodiment of the present invention relates to a server, as shown in FIG. 5, comprising: at least one
其中,存储器12和处理器11采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器11和存储器12的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器11处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器11。The
处理器11负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器12可以被用于存储处理器11在执行操作时所使用的数据。The
本发明第五实施方式涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The above method embodiments are implemented when the computer program is executed by the processor.
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method for implementing the above embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium and includes several instructions to make a device ( It may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.
本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Those of ordinary skill in the art can understand that the above-mentioned embodiments are specific examples for realizing the present invention, and in practical applications, various changes in form and details can be made without departing from the spirit and the spirit of the present invention. scope.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810019157.7A CN108287793B (en) | 2018-01-09 | 2018-01-09 | Response message buffering method and server |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810019157.7A CN108287793B (en) | 2018-01-09 | 2018-01-09 | Response message buffering method and server |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108287793A CN108287793A (en) | 2018-07-17 |
| CN108287793B true CN108287793B (en) | 2020-12-25 |
Family
ID=62834969
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810019157.7A Expired - Fee Related CN108287793B (en) | 2018-01-09 | 2018-01-09 | Response message buffering method and server |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108287793B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109597725A (en) * | 2018-10-26 | 2019-04-09 | 深圳壹账通智能科技有限公司 | Test method, device, medium and the equipment of user message center unloading function |
| CN109542662B (en) * | 2018-11-23 | 2022-04-05 | 北京锐安科技有限公司 | A memory management method, device, server and storage medium |
| CN117295118B (en) * | 2023-10-08 | 2024-08-23 | 广州市玄武无线科技股份有限公司 | Method for buffering short message data and controlling flow |
Family Cites Families (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101276296B (en) * | 2007-03-29 | 2011-03-09 | 上海新跃仪表厂 | Method for realizing message response mechanism on embedded computer system |
| CN101504617B (en) * | 2009-03-23 | 2011-05-11 | 华为技术有限公司 | Data transmitting method and device based on processor sharing internal memory |
| US9135181B2 (en) * | 2010-10-27 | 2015-09-15 | International Business Machines Corporation | Management of cache memory in a flash cache architecture |
| CN102521347B (en) * | 2011-12-11 | 2014-05-14 | 西北工业大学 | Pattern matching intermediate result management method based on priority |
| CN103914399B (en) * | 2012-12-31 | 2017-03-29 | 中国移动通信集团公司 | Disk buffering method and device in a kind of concurrent computational system |
| CN103858112A (en) * | 2013-12-31 | 2014-06-11 | 华为技术有限公司 | Data-caching method, device and system |
| CN104092670A (en) * | 2014-06-25 | 2014-10-08 | 北京蓝汛通信技术有限责任公司 | Method for utilizing network cache server to process files and device for processing cache files |
| CN104965793B (en) * | 2014-09-26 | 2016-10-12 | 浙江大华技术股份有限公司 | A kind of cloud storage data node device |
| CN105677746A (en) * | 2015-12-29 | 2016-06-15 | 上海爱数信息技术股份有限公司 | Database transaction operation based duplicate files merging system and method |
| CN106776368B (en) * | 2016-11-29 | 2021-02-05 | 苏州浪潮智能科技有限公司 | Cache management method, device and system during data reading |
| CN106815338A (en) * | 2016-12-25 | 2017-06-09 | 北京中海投资管理有限公司 | A kind of real-time storage of big data, treatment and inquiry system |
-
2018
- 2018-01-09 CN CN201810019157.7A patent/CN108287793B/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| CN108287793A (en) | 2018-07-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10635736B2 (en) | System, method and computer program product for data transfer management | |
| CN104462225B (en) | The method, apparatus and system of a kind of digital independent | |
| US11314689B2 (en) | Method, apparatus, and computer program product for indexing a file | |
| EP3608790B1 (en) | Modifying nvme physical region page list pointers and data pointers to facilitate routing of pcie memory requests | |
| US10275163B2 (en) | Methods for controlling data transfer speed of a data storage device and a host device utilizing the same | |
| US10620871B1 (en) | Storage scheme for a distributed storage system | |
| CN105224255A (en) | A kind of storage file management method and device | |
| CN114968102B (en) | Data caching method, device, system, computer equipment and storage medium | |
| CN108287793B (en) | Response message buffering method and server | |
| WO2020015670A1 (en) | File sending method, file receiving method and file transceiving apparatus | |
| JP2017527877A (en) | Method and apparatus for reading / writing data from / to flash memory and user equipment | |
| CN105373484A (en) | Memory distribution, storage and management method in network communication chip | |
| CN105376269B (en) | Virtual machine storage system and its implementation and device | |
| KR20210040864A (en) | File directory traversal method, apparatus, device, and medium | |
| WO2023201987A1 (en) | Request processing method and apparatus, and device and medium | |
| EP4040279A1 (en) | Method and apparatus for accessing solid state disk | |
| CN105574008A (en) | Task scheduling method and equipment applied to distributed file system | |
| CN113806295B (en) | File migration method, system, equipment and computer readable storage medium | |
| CN113467721B (en) | A data deletion system, method and device | |
| CN119311229B (en) | Data writing control method, system, terminal and medium | |
| CN111858418B (en) | Memory communication method and device based on remote direct memory access RDMA | |
| US20190012279A1 (en) | Computer system, communication device, and storage control method | |
| US10896003B2 (en) | Data storage device and system with interruption optimization | |
| CN116303125B (en) | Request scheduling method, cache, device, computer equipment and storage medium | |
| CN115291801B (en) | Data processing method, device, storage medium and electronic 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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201225 Termination date: 20220109 |