IP Library Granted Patent US 11,977,935
Granted Patent B2
US 11,977,935 · App. 18/252,816 · Granted May 7, 2024

Method and apparatus for improving message processing efficiency of flash channel controller

Inventor: Hailun Zhang (Shandong, CN)
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
G06F9/546G06F9/5022
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,977,935
App. No.
18/252,816
Granted
May 7, 2024
Kind
B2
Abstract

A method and apparatus for improving message processing efficiency of a Flash channel controller are provided. The method includes: S 1 , after receiving a request message of a functional unit, a Flash interface parses the request message, and constructs a request response message according to a parsing result, wherein the request response message includes a state of the request message; S 2 , the Flash interface returns the request response message to the functional unit; and S 3 , the functional unit acquires the state of the request message according to the request response message, and makes, according to whether the state of the request message is normal, a response to the request message before receiving a completion message.

Claims (39)

1. A method for improving message processing efficiency of a Flash channel controller, comprising following operations: S 1 , after receiving a request message of a functional unit, parsing, by a Hash interface, the request message, and constructing, by the Flash interface, a request response message according to a parsing result, wherein the request response message comprises a state of the request message; S 2 , returning, by the Flash interface, the request response message to the functional unit; and S 3 , acquiring, by the functional unit, the state of the request message according to the request response message, and making, by the functional unit according to whether the state of the request message is normal, a response to the request message before receiving a completion message;

wherein operation S 1 comprises: S 11 , creating a request response external message queue and a request internal message queue at the Hash interface, wherein the request response external message queue is in one-to-one correspondence with the request internal message queue; S 12 , after receiving the current request message of the functional unit, parsing, by the Hash interface, the current request message, and adding, by the Flash interface, the parsed request message into the request internal message queue, where the parsed request message waits to be distributed to the corresponding Hash channel controller; S 13 , constructing, by the Flash interface, the request response message, wherein the request response message comprises a sending state of the current request message, a stream number to which the current request message belongs, and a message count of the stream number to which the current request message belongs; and S 14 , adding, by the Flash interface, the request response message into the request response external message queue;

S 21 , extracting, by the Flash interface, the request response message from the request response external message queue, and returning, by the Flash interface, the request response message to the functional unit; S 22 , judging, by the Flash interface, whether the request response external message queue is empty; when the request response external message queue is empty, proceeding to operation S 3 ; and when the request response external message queue is not empty, returning to operation S 21 ;

wherein operation S 3 further comprises: S 35 , parsing, by the functional unit from the received request response message, the message count of the stream number to which the request message belongs; S 36 , judging, by the functional unit, whether the message count of the stream number to which the request message belongs is within a set threshold value range; when the message count of the stream number to which the request message belongs is within the set threshold value range, maintaining, by the functional unit, current frequency of sending the request message; when the message count of the stream number to which the request message belongs is lower than a set threshold value lower limit, increasing, by the functional unit, the frequency of sending the request message; and when the message count of the stream number to which the request message belongs is higher than a set threshold value upper limit, decreasing, by the functional unit, the frequency of sending the request message.

2. The method for improving the message processing efficiency of the Flash channel controller according to claim 1 , wherein operation S 3 comprises: S 31 , parsing, by the functional unit, the state of the request message from the received request response message; S 32 , judging, by the functional unit, whether the state of the request message is normal; when the state of the request message is normal, proceeding to operation S 33 ; when the state of the request message is abnormal, proceeding to operation S 34 ; S 33 , releasing, by the functional unit, a context resource before receiving the completion message, and ending; and S 34 , re-transmitting, by the functional unit, the abnormal request message.

3. The method for improving the message processing efficiency of the Hash channel controller according to claim 2 , further comprising: when the state of the request message is normal, determining, by the functional unit, that the request message queue has an idle position, and continuously sending, by the functional unit, a request message to the request message queue.

4. The method for improving the message processing efficiency of the Flash channel controller according to claim 1 , wherein the request internal message queue is used for waiting for distribution to the corresponding Hash channel controller.

5. The method for improving the message processing efficiency of the Flash channel controller according to claim 1 , wherein the request response external message queue is used for extracting the request response message and returning the request response message to the functional unit.

6. The method for improving the message processing efficiency of the Flash channel controller according to claim 1 , wherein all request messages and corresponding request response messages are managed by the Flash interface based on the one-to-one correspondence.

7. The method for improving the message processing efficiency of the Hash channel controller according to claim 6 , wherein corresponding request response message in the request response external message queue is able to be found according to any request message in the internal message queue, or corresponding request message in the internal message queue is able to be found according to any request response message in the request response external message queue.

8. An apparatus for improving message processing efficiency of a Hash channel controller, the apparatus comprising computer which includes a Flash interface and a functional unit, wherein:

Hash interface is configured to, S 1 after receiving a request message of a functional unit, parse the request message, and construct a request response message according to a parsing result, wherein the request response message comprises a state of the request message;

the Flash interface is configured to S 2 return the request response message to the functional unit;

and the functional unit is configured to S 3 acquire the state of the request message according to the request response message, and make, according to whether the state of the request message is normal, a response to the request message before receiving a completion message;

wherein operation S 1 comprises: S 11 , creating a request response external message queue and a request internal message queue at the Hash interface, wherein the request response external message queue is in one-to-one correspondence with the request internal message queue; S 12 , after receiving the current request message of the functional unit, parsing, by the Hash interface, the current request message, and adding, by the Flash interface, the parsed request message into the request internal message queue, where the parsed request message waits to be distributed to the corresponding Hash channel controller; S 13 , constructing, by the Flash interface, the request response message, wherein the request response message comprises a sending state of the current request message, a stream number to which the current request message belongs, and a message count of the stream number to which the current request message belongs; and S 14 , adding, by the Flash interface, the request response message into the request response external message queue;

S 21 , extracting, by the Flash interface, the request response message from the request response external message queue, and returning, by the Flash interface, the request response message to the functional unit; S 22 , judging, by the Flash interface, whether the request response external message queue is empty; when the request response external message queue is empty, proceeding to operation S 3 ; and when the request response external message queue is not empty, returning to operation S 21 ;

wherein operation S 3 further comprises: S 35 , parsing, by the functional unit from the received request response message, the message count of the stream number to which the request message belongs; S 36 , judging, by the functional unit, whether the message count of the stream number to which the request message belongs is within a set threshold value range; when the message count of the stream number to which the request message belongs is within the set threshold value range, maintaining, by the functional unit, current frequency of sending the request message; when the message count of the stream number to which the request message belongs is lower than a set threshold value lower limit, increasing, by the functional unit, the frequency of sending the request message; and when the message count of the stream number to which the request message belongs is higher than a set threshold value upper limit, decreasing, by the functional unit, the frequency of sending the request message.

9. The apparatus for improving the message processing efficiency of the Flash channel controller according to claim 8 , a request response external message queue and a request internal message queue are created at the Flash interface, wherein the request response external message queue is in one-to-one correspondence with the request internal message queue;

the Flash interface is configured to, after receiving the current request message of the functional unit, parse the current request message, and add the parsed request message into the request internal message queue, where the parsed request message waits to be distributed to the corresponding Flash channel controller;

the Flash interface is configured to construct the request response message, wherein the request response message comprises a sending state of the current request message, a stream number to which the current request message belongs, and a message count of the stream number to which the current request message belongs;

and the Flash interface is configured to add the request response message into the request response external message queue.

10. The apparatus for improving the message processing efficiency of the Flash channel controller according to claim 9 , wherein

the Flash interface is configured to extract the request response message from the request response external message queue, and return the request response message to the functional unit; and

the Flash interface is configured to judge whether the request response external message queue is empty.

11. The apparatus for improving the message processing efficiency of the Flash channel controller according to claim 10 , wherein the functional unit is configured to parse the state of the request message from the received request response message;

the functional unit is configured to judge whether the state of the request message is normal;

the functional unit is configured, when the state of the request message is normal, to release a context resource before receiving the completion message;

and the functional unit is configured, when the state of the request message is abnormal, to re-transmit the abnormal request message.

12. The apparatus for improving the message processing efficiency of the Flash channel controller according to claim 11 , wherein

the functional unit is configured to parse, from the received request response message, the message count of the stream number to which the request message belongs;

the functional unit is configured to judge whether the message count of the stream number to which the request message belongs is within a set threshold value range;

the functional unit is configured, when the message count is within the set threshold value range, to maintain current frequency of sending the request message;

the functional unit is configured, when the message count of the stream number to which the request message belongs is lower than a set threshold value lower limit, to increase the frequency of sending the request message; and

the functional unit is configured, when the message count of the stream number to which the request message belongs is higher than a set threshold value upper limit, to decrease the frequency of sending the request message.

13. The apparatus for improving the message processing efficiency of the Flash channel controller according to claim 11 , wherein the functional unit is configured, when the state of the request message is normal, to determine that the request message queue has an idle position, and continuously send a request message to the request message queue.

14. The apparatus for improving the message processing efficiency of the Hash channel controller according to claim 9 , wherein the request internal message queue is used for waiting for distribution to the corresponding Flash channel controller.

15. The apparatus for improving the message processing efficiency of the Hash channel controller according to claim 9 , wherein the request response external message queue is used for extracting the request response message and returning the request response message to the functional unit.

16. The apparatus for improving the message processing efficiency of the Flash channel controller according to claim 9 , wherein the Hash interface is configured manage all request messages and corresponding request response messages based on the one-to-one correspondence.

17. The apparatus for improving the message processing efficiency of the Flash channel controller according to claim 16 , wherein the Flash interface is configured to find corresponding request response message in the request response external message queue according to any request message in the internal message queue, or find corresponding request message in the internal message queue according to any request response message in the request response external message queue.

Assignments (2)
LICENSE Recorded Jun 30, 2026
From: IEIT SYSTEMS CO., LTD
To: AIVRES SYSTEMS INC.
Reel/Frame 075857/0939 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 9, 2024
From: ZHANG, HAILUN
To: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Reel/Frame 067043/0761 →
Priority Claims (1)
CN 202011266036.6 · Nov 13, 2020 · national
Continuity (1)
Related Publication 20240012699A1 · Jan 11, 2024