CN103838516B - A kind of method and system for polycaryon processor efficient access iscsi disk array - Google Patents

A kind of method and system for polycaryon processor efficient access iscsi disk array Download PDF

Info

Publication number
CN103838516B
CN103838516B CN201210484576.0A CN201210484576A CN103838516B CN 103838516 B CN103838516 B CN 103838516B CN 201210484576 A CN201210484576 A CN 201210484576A CN 103838516 B CN103838516 B CN 103838516B
Authority
CN
China
Prior art keywords
real time
operating system
time operating
core
iscsi
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
CN201210484576.0A
Other languages
Chinese (zh)
Other versions
CN103838516A (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.)
Zhengzhou Xinrand Network Technology Co ltd
Institute of Acoustics CAS
Original Assignee
Beijing Zhongke Huaying Media Technology Co ltd
Institute of Acoustics CAS
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 Beijing Zhongke Huaying Media Technology Co ltd, Institute of Acoustics CAS filed Critical Beijing Zhongke Huaying Media Technology Co ltd
Priority to CN201210484576.0A priority Critical patent/CN103838516B/en
Publication of CN103838516A publication Critical patent/CN103838516A/en
Application granted granted Critical
Publication of CN103838516B publication Critical patent/CN103838516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of method and system for polycaryon processor efficient access iscsi disk array, described method comprises: step 101) it is separately operable (SuSE) Linux OS and real time operating system step 102 in the heart at mutually disjoint processor core) first, the solicited message of (SuSE) Linux OS received bit application layer thereon, and solicited message is packaged into scsi command word;Then, (SuSE) Linux OS is specified and is read or the equipment LUN information of write data, is provided for the inter-core message of data channel and the operating walk way setting up between (SuSE) Linux OS and real time operating system;Finally, the inter-core message comprising scsi command word is sent to real time operating system by (SuSE) Linux OS;Step 103) real time operating system reception inter-core message, and the scsi command comprised by inter-core message uses iSCSI protocol to process, the iSCSI packet obtained after processing again submits to the ICP/IP protocol stack in real time operating system, ICP/IP protocol stack complete transmission and the reception of iscsi disk array data.

Description

A kind of method and system for polycaryon processor efficient access iscsi disk array
Technical field
The present invention relates to a kind of iSCSI originating end implementation method based on polycaryon processor and OS, tool Body relates to a kind of method and system for polycaryon processor efficient access iscsi disk array.
Background technology
Along with computer technology and the development of network technology, conventional single-core processor is in power consumption, concurrent, heat radiation Etc. the problem that exposes of aspect day by day serious, can not meet the disparate networks application urgent needs to processor, Therefore have lower power consumption, higher concurrency performance polycaryon processor by more in the applications of computer network. Owing to polycaryon processor is made up of multiple process cores of physical parallel, the most relatively conventional single core processor just has Higher concurrency, what the most low-frequency process core can be simpler is integrated in same processor, and Can preferably control the problems such as consumption heating, therefore the advantage of the relatively conventional general processor of polycaryon processor by Flaring is big.So, computer networking technology starts use polycaryon processor all kinds of high performance to build widely Network application.
In disparate networks Video Applications, Disk Array is all the core component of resource storage center, especially It is that the characteristics such as iscsi disk array uses simply with it, performance is prominent are more widely used, so It is calculating center based on polycaryon processor, based on the Novel video class application that iscsi disk array is storage center is In system, the most reasonably combine polycaryon processor and iscsi disk array, and effectively improve the globality of system Can, it is one of key strengthening Internet video application system service quality.Prior art is to iscsi disk array Access the scsi command word needing to produce according to SCSI subsystem, and be packaged by iSCSI protocol, finally The efficient data being realized iSCSI Host end and iSCSI Target end by ICP/IP protocol stack is mutual, and operates system SCSI subsystem on system is by multiple ingredients, and therefore scsi command execution flow process redundancy is numerous and diverse, can cause many Core processor processes the waste of resource, and the real-time execution environment execution efficiency of polycaryon processor is higher, but does not has The support of various functions in operating system, it is impossible to be directly realized by scsi command, the process of iSCSI protocol and execution, (SuSE) Linux OS and the advantage of real-time execution environment and feature on polycaryon processor is integrated it is thus desirable to effective, Improve the treatment effeciency of scsi command.
Summary of the invention
It is an object of the invention to, for overcoming the problems referred to above, the present invention provides a kind of and efficiently visits for polycaryon processor Ask the method and system of iscsi disk array.
For achieving the above object, the invention provides one for polycaryon processor efficient access iscsi disk array System, described system comprises:
The Linux operation running on the mutually disjoint processor core different memory headroom of independently management in the heart is System and real time operating system;
Described (SuSE) Linux OS comprises: upper layer application layer and Linux SCSI subsystem;And described Linux SCSI Subsystem comprises the most successively:
SCSI higher level, this layer from the request on its upper strata and converts thereof into SCSI request for acceptance, completes Scsi command by state information notification upper strata;
SCSI intermediate layer, this layer is used for submitting scsi command to;
Linux side interactive interface, for realizing the function of Linux SCSI subsystem lower level, described lower level merit Can comprise: receive the scsi command word in intermediate layer, and the result of iSCSI subsystem is returned to intermediate layer, And be responsible for carrying out core information interaction with real time operating system side interactive interface;
Described real time operating system comprises the most successively:
Real time operating system side interactive interface, for carrying out core information interaction with Linux side interactive interface;
ISCSI processing module, for being responsible for the process of iSCSI protocol;
ICP/IP protocol stack, for being responsible for realizing the transmitting-receiving of iscsi disk array data;
Wherein, described internuclear information is led to for setting up the data between (SuSE) Linux OS and real time operating system Road and operating walk way.
Above-mentioned real time operating system side interactive interface comprises further:
Receiver module, for receiving the multinuclear inter-core message from Linux side interactive interface;With
Resolve and calling module, for parsing the scsi command that SCSI intermediate layer is submitted to, and call at iSCSI Reason module processes.
Above-mentioned ICP/IP protocol stack is for realizing the process of layer 2-4 agreement in TCP/IP protocol suite;And this protocol stack carries For interface for upper layer application, iSCSI subsystem realizes the transmitting-receiving of data by these interfaces.
Based on said system, the invention provides a kind of side for polycaryon processor efficient access iscsi disk array Method, the method comprises based on the OS being positioned on polycaryon processor, described method:
Step 101) first, the solicited message of (SuSE) Linux OS received bit application layer thereon, and will request Information encapsulation becomes scsi command word;Then, (SuSE) Linux OS is specified and is read or the equipment LUN letter of write data Breath, is provided for the core of data channel and the operating walk way setting up between (SuSE) Linux OS and real time operating system Between message;Finally, the inter-core message comprising scsi command word is sent to real time operating system by (SuSE) Linux OS;
Step 102) real time operating system receives inter-core message, and the scsi command comprised by inter-core message uses ISCSI protocol processes, then will process after the iSCSI packet obtained submit in real time operating system ICP/IP protocol stack, is completed transmission and the reception of iscsi disk array data by ICP/IP protocol stack.
Above-mentioned inter-core message comprises seven fields, and concrete form is:
First character section is the core mark sending message, and second field is the core mark receiving message, the 3rd word Section is scsi command, and the 4th field is scsi command parameter, and the 5th field performs to return result for operation, 6th field is data block pointer, and the 7th field is reserved mode bit;
The core mark of described transmission message, for specify by which core of polycaryon processor send upper layer application reading or The request message write;
The core mark of described reception message, is received inter-core message for specifying by which core of polycaryon processor;
Described scsi command parameter, for specifying the parameter required for scsi command;
Described operation performs to return result, is used for representing that real time operating system calls iSCSI after parsing scsi command Return value after protocol processes.
When upper layer application initiates to read the operation of iscsi disk array data, described step 101) comprise further:
Step 101-1) application program on (SuSE) Linux OS submits disk read command to, through Linux operation system The SCSI subsystem of system arrives after the process in SCSI higher level and SCSI intermediate layer Linux side interactive interface;
Step 101-2) disk read command is packaged into scsi command word by Linux side interactive interface, it is intended that read data Equipment LUN and read data length;
Step 101-3) Linux side interactive interface fills in inter-core message, fills out according to interactive interface place, Linux side core Write transmission message core to indicate, fill according to interactive interface place, the real time operating system side core in real time operating system and connect Receiving message core to indicate, fill in scsi command and scsi command parameter according to action type, clear operation performs return As a result, the memory block reading result is deposited in application, and is filled up in memory block pointer by the physical address of memory block, The real time operating system side interactive interface after completing aforesaid operations, inter-core message being sent in real time operating system.
Above-mentioned steps 102) comprise further:
Step 102-1) real time operating system side interactive interface in real time operating system receives inter-core message, and will Scsi command and scsi command parameter pass to the iSCSI processing module in real time operating system;
Step 102-2) iSCSI processing module in real time operating system completes iSCSI after iSCSI protocol processes Packet submits to the ICP/IP protocol stack in real time operating system;
Step 102-4) ICP/IP protocol stack in real time operating system completes the transmission of iSCSI data, and waits The return result of iscsi disk array;
Step 102-5) ICP/IP protocol stack in real time operating system receives the data of iscsi disk array, and Return data to the iSCSI processing module in real time operating system, the iSCSI processing module in real time operating system Write data in data block according to the data block pointer in inter-core message, and return result is returned to real-time operation Real time operating system side interactive interface in system;
Step 102-6) real time operating system side interactive interface in real time operating system is according in real time operating system Real time operating system side interactive interface fills in inter-core message, fills in reception according to interactive interface place, Linux side core and disappears Breath core indicates, and fills in transmission message core according to interactive interface place, the real time operating system side core in real time operating system Mark, fills in operation and performs to return result, inter-core message is sent to after completing aforesaid operations Linux top-cross mutual connection Mouth 104;
Step 102-7) Linux side interactive interface parsing inter-core message, by the return result in inter-core message and data Data in block 8 return to the application program in (SuSE) Linux OS.
When upper layer application initiates write iscsi disk array data operation, described step 101) comprise further:
Step 101-a) application program submits disk write order to, through (SuSE) Linux OS on (SuSE) Linux OS SCSI subsystem in SCSI higher level and SCSI intermediate layer process after arrive Linux side interactive interface;
Step 101-b) disk write order is packaged into scsi command word by Linux side interactive interface, it is intended that write data Equipment LUN;
Step 101-c) Linux side interactive interface fills in inter-core message, fills out according to interactive interface place, Linux side core Write transmission message core mark, fill according to interactive interface place, the real time operating system side core in real time operating system and connect Receiving message core to indicate, fill in scsi command and scsi command parameter according to action type, clear operation performs return As a result, the memory block of write data is deposited in application, and is filled up in memory block pointer by the physical address of memory block, The real time operating system side interactive interface 106 after completing aforesaid operations, inter-core message being sent in real time operating system;
Above-mentioned steps 102) comprise further:
Step 102-a) real time operating system side interactive interface in real time operating system receives inter-core message, and will Scsi command and scsi command parameter pass to the iSCSI processing module in real time operating system;
Step 102-b) iSCSI processing module in real time operating system completes iSCSI after iSCSI protocol processes Packet submits to the ICP/IP protocol stack in real time operating system;
Step 102-c) ICP/IP protocol stack in real time operating system completes the transmission of iSCSI data, and waits The return result of iscsi disk array;
Step 102-d) ICP/IP protocol stack in real time operating system receives the return result of iscsi disk array, And return to the iSCSI processing module in real time operating system, the iSCSI in real time operating system by returning result Processing module processes and returns result, and returns to the real time operating system top-cross in real time operating system by returning result Interface mutually;
Step 102-e) real time operating system side interactive interface in real time operating system is according in real time operating system Real time operating system side interactive interface fills in inter-core message, fills in reception according to interactive interface place, Linux side core and disappears Breath core mark, fills in transmission message core according to interactive interface place, the real time operating system side core in real time operating system Mark, fills in operation and performs to return result, inter-core message is sent to after completing aforesaid operations Linux top-cross mutual connection Mouthful;
Step 102-f) Linux side interactive interface parsing inter-core message, the return result in inter-core message is returned to Application program in (SuSE) Linux OS.
Compared with prior art, the present invention's it is a technical advantage that:
A kind of based on polycaryon processor and OS the iSCSI originating end implementation method that the present invention provides, Realized the unloading of iSCSI protocol stack by the method, and keep the SCSI calling interface to upper layer application compatibility, with The iscsi disk array processing and the iscsi disk array data that realize efficient quick process.
Accompanying drawing explanation
Fig. 1 is present invention iSCSI based on polycaryon processor and OS originating end implementation method structure chart.
Fig. 2 be in present invention iSCSI based on polycaryon processor and OS originating end implementation method each The message body structure chart used when module is mutual.
Detailed description of the invention
The present invention is further described with embodiment below in conjunction with the accompanying drawings.
A kind of based on polycaryon processor and OS the iSCSI originating end implementation method that the present invention provides, By Linux side interactive interface, real time operating system side interactive interface, iSCSI processing module and ICP/IP protocol stack Complete the whole of iSCSI originating end and process work, between operating system and between modules, use inter-core message to lead to Letter.It is characterized in that: Linux side interactive interface runs on (SuSE) Linux OS, it is achieved Linux SCSI subsystem The function of lower level, and be responsible for interacting with real time operating system interactive interface;Real time operating system interactive interface Run in real time operating system, be responsible for and the mutual interactive interfacing of Linux top-cross;ISCSI processing module runs in real time In operating system, it is responsible for the process of iSCSI protocol;ICP/IP protocol stack runs in real time operating system, is responsible for Realize the transmitting-receiving of iSCSI data.
The function of the existing Linux SCSI subsystem lower level of Linux top-cross mutual connection cause for gossip, receives Linux SCSI subsystem The scsi command in system intermediate layer, and scsi command is packaged into multinuclear inter-core message, it is sent to real time operating system Side interactive interface.
Real time operating system side interactive interface runs in real time operating system, is responsible for reception mutual from Linux top-cross The multinuclear inter-core message of interface, parses the scsi command that Linux SCSI subsystem intermediate layer is submitted to, and calls ISCSI processing module processes.
ISCSI processing module runs in real time operating system, is responsible for the process of iSCSI protocol, and calls behaviour in real time The ICP/IP protocol stack making system carries out network service with iSCSI target.
ICP/IP protocol stack runs in real time operating system, it is achieved that in prior art on (SuSE) Linux OS The repertoire of ICP/IP protocol stack, and internuclear communication mechanism and the TCP/IP acceleration work of polycaryon processor offer are provided ISCSI data transmit-receive function at a high speed can be realized.
Linux side interactive interface and real time operating system side interactive interface set up data and behaviour by multinuclear inter-core message Make passage;Comprising seven fields in message, first character section is the core mark sending message, and second field is for connecing Receiving the core mark of message, the 3rd field is scsi command, and the 4th field is scsi command parameter, the 5th Field performs to return result for operation, and the 6th field is data block pointer, and the 7th field is reserved mode bit. Send the core mark of message for specifying to be sent this message by which core of polycaryon processor.Receive the core mark of message For specifying to be received this message by which core of polycaryon processor.
Scsi command is that Linux side interactive interface is submitted to downwards in Linux SCSI subsystem intermediate layer, mainly wraps Include to issue orders: Test unit ready, Inquiry, Request sense, Read capacity, Read and Write.
Parameter required for each order is specific as follows:
Test unit ready order includes the LUN mark needing to check status devices;
Inquiry order includes the LUN mark needing to inquire about summary info equipment;
Request sense order includes the LUN mark needing to inquire about sense data equipment;
Read capacity order includes the LUN mark needing to inquire about heap(ed) capacity equipment;
Read order includes the data length read, and the physical address of the internal memory of reading data storage and read data are at magnetic Positional information on dish;
Write order includes the data length write, and writes the physical address of internal memory of data storage and write data at magnetic Positional information on dish;
The return result of each order is specific as follows:
The execution result of Test unit ready order, the normal and error reporting including state;
The execution result of Inquiry order, including SCSI mark inquiry data structure body;
The execution result of Request sense order, including SCSI sense data structure body;
The execution result of Read capacity order, including the structure of query facility heap(ed) capacity information;
The execution result of Read order, including performing result and data address, the structure of length;
The execution result of Write order, including the result performed and the structure of write length.
Embodiment
Embodiment selects the OCTEON series processors platform of Cavium Networks company.Use Linux behaviour Make system 111 and run Linux side interactive interface 104, use the simple execution that CaviumNetworks company provides Environment SE(Simple Executive) run real time operating system side as the real time operating system 110 in the present invention Interactive interface 106, iSCSI processing module 107 and ICP/IP protocol stack 108.
The process core that (SuSE) Linux OS 111 and real time operating system 110 are run is mutually disjointed, and these 2 Operating system manages independent, nonoverlapping memory headroom respectively.
The Linux side interactive interface 104 run on (SuSE) Linux OS 111 completes in SCSI subsystem relatively low The function of layer, and scsi command word is passed to real time operating system 110;Real-time in real time operating system 110 Operating system side interactive interface 106 completes the interactive function of inter-core message;ISCSI in real time operating system 110 Processing module 107 realizes unloading and the actual treatment work of iSCSI protocol stack;In real time operating system 110 ICP/IP protocol stack 108 realizes the high speed transmitting-receiving of iSCSI data.
On (SuSE) Linux OS 111, the step of application program initiation iscsi disk array read operations is:
On (SuSE) Linux OS 111, application program submits disk Read order to, through (SuSE) Linux OS 111 SCSI subsystem 101 in SCSI higher level 102 and SCSI intermediate layer 103 process after arrive Linux top-cross Interface 104 mutually.
Disk Read order is packaged into scsi command word by Linux side interactive interface 104, it is intended that read setting of data The information such as the length of standby LUN and reading data.
Linux side interactive interface 104 fills in inter-core message, and the composition of inter-core message is as in figure 2 it is shown, according to Linux Side interactive interface 104 place core is filled in transmission message core and is indicated 201, according to the real-time behaviour in real time operating system 110 Make system side interactive interface 106 place core and fill in reception message core sign 202, fill in SCSI life according to action type Making 203 and scsi command parameter 204, clear operation performs to return result 205, and application is deposited and read the interior of result Counterfoil 208, and the physical address of memory block 208 is filled up in memory block pointer 206, will after completing aforesaid operations The real time operating system side interactive interface 106 that inter-core message is sent in real time operating system 110.
Real time operating system side interactive interface 106 in real time operating system 110 receives inter-core message, and by SCSI Order 203 and scsi command parameter 204 pass to the iSCSI processing module 107 in real time operating system 110.
ISCSI processing module 107 in real time operating system 110 completes iSCSI data after iSCSI protocol processes The ICP/IP protocol stack 108 in real time operating system 110 submitted to by bag.
ICP/IP protocol stack 108 in real time operating system 110 completes the transmission of iSCSI data, and waits iSCSI The return result of disk array.
ICP/IP protocol stack 108 in real time operating system 110 receives the data of iscsi disk array, and by number According to the iSCSI processing module 107 returned in real time operating system 110, the iSCSI in real time operating system 110 Processing module 107 writes data in data block 208 according to the data block pointer 206 in inter-core message, and will return Return result and return to the real time operating system side interactive interface 106 in real time operating system 110.
Real time operating system side interactive interface 106 in real time operating system 110 is according in real time operating system 110 Real time operating system side interactive interface 106 fill in inter-core message, according to interactive interface 104 place, Linux side core Fill in reception message core and indicate 201, according to the real time operating system side interactive interface 106 in real time operating system 110 Place core is filled in transmission message core and is indicated 202, fills in operation and performs to return result 205, completes core after aforesaid operations Between message be sent to Linux side interactive interface 104.
Linux side interactive interface 104 resolves inter-core message, by the return result 205 in inter-core message and data block Data in 208 return to the application program in (SuSE) Linux OS 111.
On (SuSE) Linux OS 111, the step of application program initiation iscsi disk array write operation is:
On (SuSE) Linux OS 111, application program submits disk Write order to, through (SuSE) Linux OS 111 SCSI subsystem 101 in SCSI higher level 102 and SCSI intermediate layer 103 process after arrive Linux top-cross Interface 104 mutually.
Disk Write order is packaged into scsi command word by Linux side interactive interface 104, it is intended that write data The information such as equipment LUN.
Linux side interactive interface 104 fills in inter-core message, fills according to interactive interface 104 place, Linux side core and sends out Message core is sent to indicate 201, according to interactive interface 106 place, the real time operating system side core in real time operating system 110 Fill in reception message core and indicate 202, fill in scsi command 203 and scsi command parameter 204 according to action type, Clear operation performs to return result 205, and the memory block 208 of write data is deposited in application, and by the thing of memory block 208 Reason address is filled up in memory block pointer 206, after completing aforesaid operations, inter-core message is sent to real time operating system Real time operating system side interactive interface 106 on 110.
Real time operating system side interactive interface 106 in real time operating system 110 receives inter-core message, and by SCSI Order 203 and scsi command parameter 204 pass to the iSCSI processing module 107 in real time operating system 110.
ISCSI processing module 107 in real time operating system 110 completes iSCSI data after iSCSI protocol processes The ICP/IP protocol stack 108 in real time operating system 110 submitted to by bag.
ICP/IP protocol stack 108 in real time operating system 110 completes the transmission of iSCSI data, and waits iSCSI The return result of disk array.
ICP/IP protocol stack 108 in real time operating system 110 receives the return result of iscsi disk array, and The iSCSI processing module 107 in real time operating system 110 is returned to, in real time operating system 110 by returning result ISCSI processing module 107 process return result, and by return result return to the reality in real time operating system 110 Time operating system side interactive interface 106.
Real time operating system side interactive interface 106 in real time operating system 110 is according in real time operating system 110 Real time operating system side interactive interface 106 fill in inter-core message, according to interactive interface 104 place, Linux side core Fill in reception message core and indicate 201, according to the real time operating system side interactive interface 106 in real time operating system 110 Place core is filled in transmission message core and is indicated 202, fills in operation and performs to return result 205, completes core after aforesaid operations Between message be sent to Linux side interactive interface 104.
Linux side interactive interface 104 resolves inter-core message, and the return result 205 in inter-core message is returned to Linux Application program in operating system 111.
In a word, a kind of based on polycaryon processor and OS the iSCSI initiator that the present invention provides realizes Method, specifically refers to run (SuSE) Linux OS and real time operating system on a polycaryon processor simultaneously, The iSCSI system interface compatibility to Linux SCSI subsystem is kept, in real time operating system on (SuSE) Linux OS The iSCSI protocol process that upper realization is concrete.Method includes: implementation method is by Linux side interactive interface, real-time operation System side interactive interface, iSCSI processing module and ICP/IP protocol stack composition;Linux side interactive interface runs on On (SuSE) Linux OS, complete the function of Linux SCSI subsystem lower level, and provide (SuSE) Linux OS and The interactive function of real time operating system;Real time operating system interactive interface and iSCSI processing module run on behaviour in real time Make in system, it is provided that real time operating system and the interactive function of (SuSE) Linux OS.Linux side interactive interface and reality Time operating system side interactive interface set up data and signalling path by multinuclear inter-core message.This iSCSI initiator's Implementation method is compatible Linux SCSI subsystem interface, provides high performance iSCSI protocol disposal ability simultaneously., By Linux side interactive interface, real time operating system side interactive interface, iSCSI process in the method that the present invention provides Module and ICP/IP protocol stack complete the whole of iSCSI originating end and process work, between operating system and modules Between use inter-core message communication.Linux side interactive interface runs on (SuSE) Linux OS, it is achieved Linux SCSI The function of subsystem lower level, and be responsible for interacting with real time operating system interactive interface;Real time operating system is handed over Interface runs in real time operating system mutually, is responsible for and the mutual interactive interfacing of Linux top-cross;ISCSI processing module is run In real time operating system, it is responsible for the process of iSCSI protocol;ICP/IP protocol stack runs in real time operating system, It is responsible for realizing the transmitting-receiving of iSCSI data.
It should be noted last that, above example is only in order to illustrate technical scheme and unrestricted.Although With reference to embodiment, the present invention is described in detail, it will be understood by those within the art that, to the present invention Technical scheme modify or equivalent, without departure from the spirit and scope of technical solution of the present invention, it is equal Should contain in the middle of scope of the presently claimed invention.

Claims (9)

1., for a system for polycaryon processor efficient access iscsi disk array, described system comprises:
Run on the Linux behaviour in the mutually disjoint processor core different physical memory space of independently management in the heart Make system and real time operating system;
Described (SuSE) Linux OS comprises: upper layer application layer and Linux SCSI subsystem;And described Linux SCSI Subsystem comprises the most successively:
SCSI higher level, this layer from the request of upper layer application layer and converts thereof into SCSI request for acceptance, Complete scsi command and by state information notification upper layer application layer;
SCSI intermediate layer, this layer is used for submitting scsi command to;
Linux side interactive interface, for realizing the function of Linux SCSI subsystem lower level, described lower level merit Can comprise: receive the scsi command in SCSI intermediate layer, scsi command is packaged into multinuclear inter-core message, is sent to Real time operating system;And it is responsible for real time operating system side interactive interface that to carry out multinuclear inter-core message mutual;
Described real time operating system comprises the most successively:
Real time operating system side interactive interface, for carry out multinuclear inter-core message mutual with Linux side interactive interface;
ISCSI processing module, for being responsible for the process of iSCSI protocol;
ICP/IP protocol stack, for being responsible for realizing the transmitting-receiving of iscsi disk array data;
Wherein, described multinuclear inter-core message is for setting up the number between (SuSE) Linux OS and real time operating system According to passage and operating walk way.
System for polycaryon processor efficient access iscsi disk array the most according to claim 1, its Being characterised by, described real time operating system side interactive interface comprises further:
Receiver module, for receiving the multinuclear inter-core message from Linux side interactive interface;With
Resolve and calling module, for parsing the scsi command that SCSI intermediate layer is submitted to, and call at iSCSI Reason module processes.
System for polycaryon processor efficient access iscsi disk array the most according to claim 1, its Being characterised by, described ICP/IP protocol stack is for realizing the process of layer 2-4 agreement in TCP/IP protocol suite;And this association View stack provides interface to realize the transmitting-receiving of data for upper layer application, iSCSI processing module by these interfaces.
4. one kind based on system described in any one of claim 1-3 for polycaryon processor efficient access iSCSI magnetic The method of disk array, the method comprises based on the OS being positioned on polycaryon processor, described method:
Step 101) first, the solicited message of (SuSE) Linux OS received bit application layer thereon, and will request Information encapsulation becomes scsi command;Then, (SuSE) Linux OS is specified and is read or the equipment LUN information of write data, It is provided for the multinuclear core of data channel and the operating walk way setting up between (SuSE) Linux OS and real time operating system Between message;Finally, the multinuclear inter-core message comprising scsi command is sent to real-time oss by (SuSE) Linux OS System;
Step 102) real time operating system receives multinuclear inter-core message, and the SCSI comprised by multinuclear inter-core message orders Order use iSCSI protocol process, then will process after the iSCSI packet obtained submit to real time operating system On ICP/IP protocol stack, ICP/IP protocol stack complete transmission and the reception of iscsi disk array data.
Method for polycaryon processor efficient access iscsi disk array the most according to claim 4, its Being characterised by, described multinuclear inter-core message comprises seven fields, and concrete form is:
First character section is the core mark sending message, and second field is the core mark receiving message, the 3rd word Section is scsi command, and the 4th field is scsi command parameter, and the 5th field performs to return result for operation, 6th field is data block pointer, and the 7th field is reserved mode bit;
The core mark of described transmission message, for specify by which core of polycaryon processor send upper layer application reading or The request message write;
The core mark of described reception message, is received multinuclear inter-core message for specifying by which core of polycaryon processor;
Described scsi command parameter, for specifying the parameter required for scsi command;
Described operation performs to return result, is used for representing that real time operating system calls iSCSI after parsing scsi command Return value after protocol processes.
Method for polycaryon processor efficient access iscsi disk array the most according to claim 5, its It is characterised by, when upper layer application initiates to read the operation of iscsi disk array data, described step 101) further Comprise:
Step 101-1) application program on (SuSE) Linux OS submits disk read command to, through Linux operation system The SCSI subsystem of system arrives after the process in SCSI higher level and SCSI intermediate layer Linux side interactive interface;
Step 101-2) disk read command is packaged into scsi command by Linux side interactive interface, it is intended that read data Equipment LUN and the length of reading data;
Step 101-3) Linux side interactive interface fills in multinuclear inter-core message, according to interactive interface place, Linux side Core fills in transmission message core mark, fills out according to interactive interface place, the real time operating system side core in real time operating system Writing reception message core mark, fill in scsi command and scsi command parameter according to action type, clear operation performs Returning result, application is deposited the memory block reading result, and the physical address of memory block is filled up to memory block pointer In, the real time operating system top-cross being sent in real time operating system by multinuclear inter-core message after completing aforesaid operations is mutual Interface.
Method for polycaryon processor efficient access iscsi disk array the most according to claim 6, its It is characterised by, described step 102) comprise further:
Step 102-1) real time operating system side interactive interface in real time operating system receives multinuclear inter-core message, and Scsi command and scsi command parameter are passed to the iSCSI processing module in real time operating system;
Step 102-2) iSCSI processing module in real time operating system completes iSCSI after iSCSI protocol processes Packet submits to the ICP/IP protocol stack in real time operating system;
Step 102-4) ICP/IP protocol stack in real time operating system completes the transmission of iSCSI data, and waits The return result of iscsi disk array;
Step 102-5) ICP/IP protocol stack in real time operating system receives the data of iscsi disk array, and Return data to the iSCSI processing module in real time operating system, the iSCSI processing module in real time operating system Write data in data block according to the data block pointer in multinuclear inter-core message, and return result is returned in real time Real time operating system side interactive interface in operating system;
Step 102-6) real time operating system side interactive interface in real time operating system is according in real time operating system Real time operating system side interactive interface fills in multinuclear inter-core message, fills according to interactive interface place, Linux side core and connects Receive message core mark, fill in transmission according to interactive interface place, the real time operating system side core in real time operating system and disappear Breath core mark, fills in operation and performs to return result, after completing aforesaid operations, multinuclear inter-core message is sent to Linux Side interactive interface;
Step 102-7) Linux side interactive interface resolves inter-core message, by the return result in multinuclear inter-core message and Data in data block 8 return to the application program in (SuSE) Linux OS.
Method for polycaryon processor efficient access iscsi disk array the most according to claim 5, its It is characterised by, when upper layer application initiates write iscsi disk array data operation, described step 101) further Comprise:
Step 101-a) application program submits disk write order to, through (SuSE) Linux OS on (SuSE) Linux OS SCSI subsystem in SCSI higher level and SCSI intermediate layer process after arrive Linux side interactive interface;
Step 101-b) disk write order is packaged into scsi command by Linux side interactive interface, it is intended that write data Equipment LUN;
Step 101-c) Linux side interactive interface fills in multinuclear inter-core message, according to interactive interface place, Linux side Core fills in transmission message core mark, fills out according to interactive interface place, the real time operating system side core in real time operating system Writing reception message core mark, fill in scsi command and scsi command parameter according to action type, clear operation performs Returning result, application is deposited the memory block of write data, and the physical address of memory block is filled up to memory block pointer In, the real time operating system top-cross being sent in real time operating system by multinuclear inter-core message after completing aforesaid operations is mutual Interface.
Method for polycaryon processor efficient access iscsi disk array the most according to claim 8, its It is characterised by, described step 102) comprise further:
Step 102-a) real time operating system side interactive interface in real time operating system receives multinuclear inter-core message, and Scsi command and scsi command parameter are passed to the iSCSI processing module in real time operating system;
Step 102-b) iSCSI processing module in real time operating system completes iSCSI after iSCSI protocol processes Packet submits to the ICP/IP protocol stack in real time operating system;
Step 102-c) ICP/IP protocol stack in real time operating system completes the transmission of iSCSI data, and waits The return result of iscsi disk array;
Step 102-d) ICP/IP protocol stack in real time operating system receives the return result of iscsi disk array, And return to the iSCSI processing module in real time operating system, the iSCSI in real time operating system by returning result Processing module processes and returns result, and returns to the real time operating system top-cross in real time operating system by returning result Interface mutually;
Step 102-e) real time operating system side interactive interface in real time operating system is according in real time operating system Real time operating system side interactive interface fills in multinuclear inter-core message, fills according to interactive interface place, Linux side core and connects Receive message core mark, fill in transmission according to interactive interface place, the real time operating system side core in real time operating system and disappear Breath core mark, fills in operation and performs to return result, after completing aforesaid operations, multinuclear inter-core message is sent to Linux Side interactive interface;
Step 102-f) Linux side interactive interface parsing multinuclear inter-core message, the return in multinuclear inter-core message is tied Fruit returns to the application program in (SuSE) Linux OS.
CN201210484576.0A 2012-11-23 2012-11-23 A kind of method and system for polycaryon processor efficient access iscsi disk array Active CN103838516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210484576.0A CN103838516B (en) 2012-11-23 2012-11-23 A kind of method and system for polycaryon processor efficient access iscsi disk array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210484576.0A CN103838516B (en) 2012-11-23 2012-11-23 A kind of method and system for polycaryon processor efficient access iscsi disk array

Publications (2)

Publication Number Publication Date
CN103838516A CN103838516A (en) 2014-06-04
CN103838516B true CN103838516B (en) 2016-09-28

Family

ID=50802072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210484576.0A Active CN103838516B (en) 2012-11-23 2012-11-23 A kind of method and system for polycaryon processor efficient access iscsi disk array

Country Status (1)

Country Link
CN (1) CN103838516B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034616B (en) * 2012-12-07 2015-09-09 中国科学院声学研究所 A kind of method, computing machine of multiple operating system access storage medium
CN105045745B (en) * 2015-08-31 2017-10-27 华中科技大学 A kind of FCoE read-writes processing system, processing method and exchange id distribution method
CN107315645B (en) * 2017-06-30 2020-09-15 苏州浪潮智能科技有限公司 CPU core configuration method and device
CN108376055B (en) * 2018-03-16 2021-08-17 何小林 Method and system for protecting disk array data security through trusted channel technology
CN111200594B (en) * 2019-12-20 2021-07-16 华为技术有限公司 Method and device for receiving data, data receiving equipment and storage medium
CN111338998B (en) * 2020-02-20 2021-07-02 深圳震有科技股份有限公司 FLASH access processing method and device based on AMP system
CN112395056B (en) * 2020-10-21 2022-08-26 国电南瑞科技股份有限公司 Embedded asymmetric real-time system and electric power secondary equipment
CN112732183B (en) * 2020-12-30 2022-01-11 科东(广州)软件科技有限公司 Access method, device and equipment of heterogeneous system storage equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119374A (en) * 2007-09-10 2008-02-06 杭州华三通信技术有限公司 iSCSI communication method and corresponding initiation equipment and objective equipment
CN101546601A (en) * 2009-05-13 2009-09-30 杭州华三通信技术有限公司 Solid state disk and memory system
CN101566923A (en) * 2008-04-25 2009-10-28 中兴通讯股份有限公司 Unified driving module of target end SCSI equipment and method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8503459B2 (en) * 2009-05-05 2013-08-06 Citrix Systems, Inc Systems and methods for providing a multi-core architecture for an acceleration appliance

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119374A (en) * 2007-09-10 2008-02-06 杭州华三通信技术有限公司 iSCSI communication method and corresponding initiation equipment and objective equipment
CN101566923A (en) * 2008-04-25 2009-10-28 中兴通讯股份有限公司 Unified driving module of target end SCSI equipment and method thereof
CN101546601A (en) * 2009-05-13 2009-09-30 杭州华三通信技术有限公司 Solid state disk and memory system

Also Published As

Publication number Publication date
CN103838516A (en) 2014-06-04

Similar Documents

Publication Publication Date Title
CN103838516B (en) A kind of method and system for polycaryon processor efficient access iscsi disk array
CN100556036C (en) Carry out method, the system and program of data transmission requests
CN106598480B (en) Electronic system and its operating method with Interface Controller mechanism
CN108984465A (en) A kind of method for message transmission and equipment
CN109710340A (en) Software tool call method and device, software tool packaging method and device
CN107678835A (en) A kind of data transmission method and system
CN103034616B (en) A kind of method, computing machine of multiple operating system access storage medium
CN106598692A (en) Method for creating mirror image file in logical volume and starting virtual machine, and server
CN112130748A (en) Data access method, network card and server
CN106662895A (en) Computer device and data read-write method for computer device
CN103440111B (en) The extended method in magnetic disk of virtual machine space, host and platform
CN104714904A (en) RapidIO controller adopting window mapping mechanism and control method of RapidIO controller
CN102750249B (en) The method that host computer communicates with slave computer, Apparatus and system
CN103530066A (en) Data storage method, device and system
CN107632951A (en) Control the equipment and its application and operating method of indirect serial connection storage device
CN110275757A (en) Multi-protocol storage is provided using system abstraction layer
CN113961139A (en) Method for processing data by using intermediate device, computer system and intermediate device
CN106648851A (en) IO management method and device used in multi-controller storage
CN104429121B (en) The method and platform commenced business in the cloud system of base station
CN104657086A (en) Data storage method and system for cloud server
CN109857553A (en) EMS memory management process and device
CN103838517B (en) A kind of method and system for transmitting data between polycaryon processor and disk array
CN104346234B (en) A kind of method of internal storage access, equipment and system
CN105573801B (en) The method, apparatus and system of software upgrading are realized in stacking system
CN105471930A (en) Method, system and equipment for reading distributed data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100190, No. 21 West Fourth Ring Road, Beijing, Haidian District

Patentee after: INSTITUTE OF ACOUSTICS, CHINESE ACADEMY OF SCIENCES

Patentee after: Zhongke Huaying (Beijing) digital cinema line Co.,Ltd.

Address before: 100190, No. 21 West Fourth Ring Road, Beijing, Haidian District

Patentee before: INSTITUTE OF ACOUSTICS, CHINESE ACADEMY OF SCIENCES

Patentee before: BEIJING ZHONGKE HUAYING MEDIA TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210810

Address after: 100190, No. 21 West Fourth Ring Road, Beijing, Haidian District

Patentee after: INSTITUTE OF ACOUSTICS, CHINESE ACADEMY OF SCIENCES

Address before: 100190, No. 21 West Fourth Ring Road, Beijing, Haidian District

Patentee before: INSTITUTE OF ACOUSTICS, CHINESE ACADEMY OF SCIENCES

Patentee before: Zhongke Huaying (Beijing) digital cinema line Co.,Ltd.

Effective date of registration: 20210810

Address after: Room 1601, 16th floor, East Tower, Ximei building, No. 6, Changchun Road, high tech Industrial Development Zone, Zhengzhou, Henan 450001

Patentee after: Zhengzhou xinrand Network Technology Co.,Ltd.

Address before: 100190, No. 21 West Fourth Ring Road, Beijing, Haidian District

Patentee before: INSTITUTE OF ACOUSTICS, CHINESE ACADEMY OF SCIENCES