CN107943743A - Information storage, read method and the shared virtual medium carrying chip of computing device - Google Patents

Information storage, read method and the shared virtual medium carrying chip of computing device Download PDF

Info

Publication number
CN107943743A
CN107943743A CN201711146463.9A CN201711146463A CN107943743A CN 107943743 A CN107943743 A CN 107943743A CN 201711146463 A CN201711146463 A CN 201711146463A CN 107943743 A CN107943743 A CN 107943743A
Authority
CN
China
Prior art keywords
information
computing device
storage
privately owned
shared
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.)
Pending
Application number
CN201711146463.9A
Other languages
Chinese (zh)
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.)
Jiangsu Wei Ruichaosuan Science And Technology Ltd
Original Assignee
Jiangsu Wei Ruichaosuan Science And Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Wei Ruichaosuan Science And Technology Ltd filed Critical Jiangsu Wei Ruichaosuan Science And Technology Ltd
Priority to CN201711146463.9A priority Critical patent/CN107943743A/en
Publication of CN107943743A publication Critical patent/CN107943743A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/167Interprocessor communication using a common memory, e.g. mailbox
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0626Reducing size or complexity of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0664Virtualisation aspects at device level, e.g. emulation of a storage device or system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a kind of information storage of computing device, read method and shared virtual medium carrying chip.Wherein, the information storage means of computing device include:The information to be stored for the computing device being connected with virtual storage medium is obtained, information to be stored includes shared information and differentiation information;By in the shared public region of shared information deposit storage pool;According to the mapping relations in virtual storage medium and the privately owned storage section of storage pool by the corresponding privately owned storage section of differentiation information deposit.By the way that the shared information deposit in information to be stored is shared public region, differentiation information is stored in privately owned storage section according to mapping relations, i.e. shared information is stored in same section, differentiation information is stored in different sections respectively, reach the structure of simplified storage medium, improve the purpose of storage efficiency;In addition, this method only need to be managed once by the way of shared data, for identical information, the bandwidth and control overhead of data management are saved.

Description

Information storage, read method and the shared virtual medium carrying chip of computing device
Technical field
The present invention relates to field of computer technology, and in particular to a kind of storage of the information of computing device, read method and altogether Enjoy virtual medium carrying chip.
Background technology
In computing architecture, main control unit or independent computing unit are required to a static memory device or storage list Member stores the startup information of main control unit or computing unit.For the chip of main side, storage medium is must can not Few.These be used for store start information storage medium, in addition to the main control chip for having special designing, generally using hard disk, The SD of EEPROM, various interface Flash and various standards.The use of these storage mediums, in the hardware design of existing product In have embodiment.
In existing technical solution, the storage medium of a startup information is equipped with for each main control unit, to power on When, which normally can start and work.Meanwhile in metastable design, a variety of startup media can be also used, Compatible a variety of Starting mode.I.e. for the computer system including more master control cores, each active core should have correspondence Startup medium.For the cluster of more multi-core, calculating core arranged side by side need to be equipped with startup medium arranged side by side, to exclude to calculate Interfering with each other between core.Meanwhile the different types of requirement difference for calculating core to startup information storage medium, so In one big system, often there are polytype startup medium.
However, in the cluster or concurrent design of above-mentioned technical proposal, since the hardware differences of master control core are, it is necessary to be every A master control core is equipped with different startup information storage mediums, on the one hand can take the hardware arrangement resource of computing architecture, reduces The distribution density of master control core;On the other hand, design complexities and generation maintenance cost can be increased.
The content of the invention
In view of this, the startup information storage means an embodiment of the present invention provides a kind of computing device, read method, with Solve the problems, such as that storage medium is complicated.
First aspect present invention provides a kind of information storage means of computing device, including:
The information to be stored for the computing device being connected with virtual storage medium is obtained, the information to be stored includes shared letter Breath and differentiation information;
By in the shared public region of the shared information deposit storage pool;
According to the mapping relations in the virtual storage medium and the privately owned storage section of the storage pool by the differentiation Information is stored in corresponding privately owned storage section.
Alternatively, before the information to be stored of the computing device for obtaining and being connected with virtual storage medium, further include:
Obtain the type information of the computing device;
According to the type information corresponding privately owned storage section is distributed for the computing device.
Alternatively, corresponding privately owned storage section is distributed for the computing device according to the type information, including:
Judge the current privately owned storage section for whether having same type;
When there are during the privately owned storage section of same type, the virtual storage medium for connecting the computing device is mapped to Corresponding to the privately owned storage section of the type;
When there is no during the privately owned storage section of same type, type information distribution corresponding to the computing device is new Privately owned storage section, and the virtual storage medium for connecting the computing device is mapped into the new privately owned storage section.
Alternatively, before the information to be stored of the computing device for obtaining and being connected with virtual storage medium, further include:
Count the quantity of currently attached different types of computing device;
The quantity in the privately owned storage section is set according to different types of quantity;
The storage pool is divided into the privately owned storage section of shared public region and the quantity.
Second aspect of the present invention provides a kind of information-reading method of computing device, including:
The information read requests that the computing device being connected with virtual storage medium is initiated are obtained, described information includes shared letter Breath and differentiation information;
The shared information is read from the shared public region of storage pool;
According to the mapping relations in the virtual storage medium and the privately owned storage section of the storage pool, from corresponding described Differentiation information is read in privately owned storage section.
Alternatively, according to the mapping relations in the virtual storage medium and the privately owned storage section of the storage pool, from right Differentiation information is read in the privately owned storage section answered, including:
According to the mapping relations, search in the storage pool and privately owned deposited corresponding to the described of the virtual storage medium Between storage area;
Differentiation information is read from the privately owned storage section found out.
Alternatively, including:Open the digital independent that multiple threads are used for multiple computing devices;
Judge whether the computing device of same type;
When the computing device for there are during the computing device of same type, being same type distribute same thread into The reading of the row differentiation information.
Third aspect present invention provides a kind of shared virtual medium carrying chip, including:
Storage pool, for storing information;The storage pool includes data memory module, and the data memory module is included altogether Public region and some privately owned storage sections are enjoyed, the shared public region is used to store shared information, the privately owned memory block Between be used for store differentiation information;
At least one virtual storage medium, for reading described information from the storage pool, and is sent to corresponding meter Calculate equipment.
Alternatively, the storage pool further includes:Data dispatch management module, for responding each virtual storage medium Information read requests, extraction described information feeds back to the corresponding virtual storage medium from the data memory module.
Fourth aspect present invention provides a kind of non-transient computer readable storage medium storing program for executing, and the non-transient computer is readable to deposit Storage media stores computer instruction, and the computer instruction is used to make computer perform in first aspect present invention or first aspect The information storage means of any one of them computing device.
Fifth aspect present invention provides a kind of non-transient computer readable storage medium storing program for executing, and the non-transient computer is readable to deposit Storage media stores computer instruction, and the computer instruction is used to make computer perform in second aspect of the present invention or second aspect The information-reading method of any one of them computing device.
Technical solution provided by the invention, has the following advantages:
1. the information storage means of computing device provided in an embodiment of the present invention, by by the shared letter in information to be stored The shared public region of breath deposit, differentiation information is stored in privately owned storage section according to mapping relations, i.e., shared information preserves In same section, differentiation information is stored in different sections respectively, reaches the structure of simplified storage medium, improves storage efficiency Purpose;In addition, this method only need to be managed once by the way of shared data, for identical information, data management is saved Bandwidth and control overhead.
2. the information storage means of computing device provided in an embodiment of the present invention, pass through the type according to extraneous computing device Information carries out the division in privately owned storage section, to ensure to be stored in not corresponding to the information to be stored of different types of computing device In same privately owned storage section;Identical shared memory is stored in corresponding to the information to be stored of the computing device of same type Between in;The structure of storage medium can be simplified, reduce the design difficulty of the storage medium.
3. the information-reading method of computing device provided in an embodiment of the present invention, by being read altogether from shared public region Information is enjoyed, differentiation information is read from corresponding privately owned storage section, it is possible to increase the efficiency that information is read.
4. shared virtual medium carrying chip provided in an embodiment of the present invention, shared by will be marked off in the carrying chip Public region, and some privately owned storage sections, for storing shared information and differentiation information;In addition, the carrying chip is set Virtual storage medium is equipped with, for connecting extraneous computing device and storage pool, to meet different computing devices to the storage medium Interface, data format and sequential requirement, so as to break away from computing device in itself to shared virtual medium carrying chip Hardware requirement, can reduce computing device to high standard start medium dependence, can also unify it is different types of calculating set The standby differentiation requirement to the carrying chip, reaches simplified hardware design, saves the purpose of production cost.
5. shared virtual medium carrying chip provided in an embodiment of the present invention, by using data dispatch management module logarithm According to being managed concentratedly, can realize to shared associated data between information and differentiation information and computing device once Property modification;Meanwhile all computing devices are readable, while the requirement of storage section is reduced, it dramatically saves on and update the data Required bandwidth, have compressed the data management workload of each main control chip, there is provided operational efficiency.
Brief description of the drawings
The features and advantages of the present invention can be more clearly understood by reference to attached drawing, attached drawing is schematically without that should manage Solve to carry out any restrictions to the present invention, in the accompanying drawings:
Fig. 1 shows a structure diagram specifically illustrated of application scenarios in the embodiment of the present invention;
Fig. 2 shows the method stream that one of the information storage means of computing device in the embodiment of the present invention 1 specifically illustrates Cheng Tu;
Fig. 3 shows the method stream that one of the information storage means of computing device in the embodiment of the present invention 2 specifically illustrates Cheng Tu;
Fig. 4 shows the method stream that one of the information storage means of computing device in the embodiment of the present invention 3 specifically illustrates Cheng Tu;
Fig. 5 shows the method stream that one of the information storage means of computing device in the embodiment of the present invention 4 specifically illustrates Cheng Tu;
Fig. 6 shows the method stream that one of the information-reading method of computing device in the embodiment of the present invention 5 specifically illustrates Cheng Tu;
Fig. 7 shows the method stream that one of the information-reading method of computing device in the embodiment of the present invention 6 specifically illustrates Cheng Tu;
Fig. 8 shows the method stream that one of the information-reading method of computing device in the embodiment of the present invention 7 specifically illustrates Cheng Tu;
Fig. 9 shows a structure diagram specifically illustrated of shared virtual memory medium in the embodiment of the present invention 8.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art are not having All other embodiments obtained under the premise of creative work are made, belong to the scope of protection of the invention.
As shown in Figure 1, it is the application scenarios in the embodiment of the present invention.Wherein, some computing devices and shared virtual memory Medium is connected, it is necessary to read information from shared virtual memory medium.Shared virtual memory medium is used to store information, wherein, Information includes but not limited to startup information needed for computing device, configuration information, connects using data message and with computing device Startup information of slave end equipment connect etc..In the following description, by taking the startup information needed for computing device as an example, carry out detailed Thin description.
Embodiment 1
The present embodiment provides a kind of information storage means of computing device, for sharing in virtual medium carrying chip.Such as Shown in Fig. 2, which comprises the following steps:
Step S11, obtains the information to be stored for the computing device being connected with virtual storage medium, and information to be stored is included altogether Enjoy information and differentiation information.
Shared virtual memory medium includes some virtual storage mediums and storage pool, wherein, virtual storage medium is used for The extraneous computing device of connection and storage pool.
Shared virtual memory medium is waited to store up from extraneous obtain corresponding to the computing device being connected with virtual storage medium Information is deposited, which includes shared information, and differentiation information.Wherein, differentiation information is due to each difference The difference of startup information caused by the difference of hardware device between type or different computing devices.
Shared information is the identical startup corresponding in the startup information needed for some same types or identical calculations equipment Information;Differentiation information is the different startup information corresponding in the startup information needed for each computing device.Correspond to one A computing device, it, which starts information, includes shared information and a differentiation information.
Step S12, by the shared public region of shared information deposit storage pool.
Shared virtual memory medium includes storage pool, for storing information.The storage pool includes:Shared public region and Privately owned storage section.Wherein, public region is shared to be used to store the phase corresponded to needed for identical or same type computing device Same startup information;The shared information each stored in shared public region can be supplied to some identical or same type Computing device uses.Wherein, shared information is stored in the shared public region of the storage pool by shared virtual memory medium.
Step S13, according to virtual storage medium and the mapping relations in the privately owned storage section of storage pool by differentiation information It is stored in corresponding privately owned storage section.
Wherein, there are one-to-one mapping relations between virtual storage medium and the privately owned storage section of storage pool, should Mapping relations can be address of cache or be mapped by mark.In short, work as computing device and virtual storage medium During connection, which can map to the computing device in corresponding privately owned storage section.
In addition, privately owned storage section is used for the corresponding different startup information stored needed for each computing device, i.e., it is each The differentiation information stored in privately owned storage section can be supplied to a computing device to use.
As a kind of optional embodiment of the present embodiment, the order of step S12 and step S13 can exchange, and only need to protect Shared information is stored in shared public region by card, and differentiation information is stored in privately owned storage section.
By the way that the shared information deposit in information to be stored is shared public region, by differentiation information according to mapping relations It is stored in privately owned storage section, i.e., shared information is stored in same section, and differentiation information is stored in different sections, reaches respectively Simplify the structure of storage medium, improve the purpose of storage efficiency;In addition, this method is by the way of shared data, for identical Information only need to once manage, save the bandwidth and control overhead of data management.
Embodiment 2
The present embodiment provides a kind of information storage means of computing device, for sharing in virtual medium carrying chip.Such as Shown in Fig. 3, which comprises the following steps:
Step S21, obtains the type information of computing device.
Corresponding calculate is depended on the type of the computing device of the virtual storage medium connection in shared virtual storage medium The hardware configuration of equipment, wherein, the type information of the identical computing device of hardware configuration is identical;The different calculating of hardware configuration is set Standby type information is different.
Step S22, corresponding privately owned storage section is distributed according to type information for computing device.
The calculating that the quantity in privately owned storage section depends on being connected with virtual storage medium in shared virtual memory medium is set The quantity of standby type, since the type of computing device is different, will have in the startup information needed for corresponding computing device Differentiation information.Wherein, the quantity of the differentiation information is identical with the quantity of the type of computing device.Therefore, into row information Before storage, shared virtual memory medium needs to distribute corresponding privately owned storage section according to the type of computing device.
After privately owned storage section is distributed, each privately owned storage section is reflected with virtual storage medium into row address Penetrate, establish the mapping relations between privately owned storage section and virtual storage medium in shared virtual memory medium.
Specifically, step S22, including:
Step S221, judges the current privately owned storage section for whether having same type.If the determination result is YES, then perform Step S222;Otherwise, step S223 is performed.
Shared virtual memory medium has learned that all meters being connected with virtual storage medium before being stored into row information Calculate the type of equipment.Therefore, when being divided to privately owned storage section, judge successively each computing device type whether with Whether the type of the corresponding computing device in privately owned storage section marked off is identical.
Specifically, for example, the type of first computing device is A, corresponding to type A depositing in shared virtual memory medium In reservoir, the privately owned storage section corresponding to type A is marked off;Whether the type for judging second computing device is A, if type For A, then step S222 is performed;If type is not A, step S223 is performed;And so on, until the type of all computing devices Judge to complete, i.e., the type corresponding to all computing devices being connected with virtual storage medium judges to terminate.
The virtual storage medium for connecting computing device, is mapped to the privately owned storage section corresponding to type by step S222. Perform step S23.
Judge that the type of the computing device of connection is identical with current existing type in shared virtual memory medium, then table Show that the computing device is identical with the startup information needed for a certain computing device before, so as to which the computing device is connected Virtual storage medium map to corresponding to the type privately owned storage section in.
For example, the type of second computing device is A, then it represents that the class of second computing device and first computing device Type is identical, and required startup information is identical, then the virtual storage medium of second computing device connection can be mapped to first In the corresponding privately owned storage section of a computing device.
Step S223, sets corresponding to the new privately owned storage section of the type information distribution of computing device, and by connection calculating Standby virtual storage medium maps to new privately owned storage section.Perform step S23.
The type and current existing type that the computing device of connection is judged in shared virtual memory medium are different from When, then it represents that the computing device is different from the startup information needed for computing devices all before, needs to correspond at this time The new privately owned storage section of the type distribution.
After being assigned in new privately owned storage section, the virtual storage medium which is connected is mapped to With in new privately owned storage section.
For example, the type of second computing device is B, then it represents that the class of second computing device and first computing device Type differs, and required startup information differs, then needs to correspond to the new privately owned memory block of type B distribution in storage pool Between;Meanwhile the virtual storage medium for being connected second computing device maps to new privately owned storage section.
Step S23, obtains the information to be stored for the computing device being connected with virtual storage medium, and information to be stored is included altogether Enjoy information and differentiation information.
Identical with 1 step S11 of embodiment, details are not described herein.
Step S24, by the shared public region of shared information deposit storage pool.
Identical with 1 step S12 of embodiment, details are not described herein.
Step S25, according to virtual storage medium and the mapping relations in the privately owned storage section of storage pool by differentiation information It is stored in corresponding privately owned storage section.
Identical with 1 step S13 of embodiment, details are not described herein.
Embodiment 3
The present embodiment provides a kind of information storage means of computing device, for sharing in virtual medium carrying chip.Such as Shown in Fig. 4, which comprises the following steps:
Step S31, counts the quantity of currently attached different types of computing device.
After computing device is connected with virtual storage medium, the current meter connected of shared virtual memory medium statistics Calculate the type class of equipment, i.e., the quantity of the type of all computing devices connected.For example, currently it is situated between with shared virtual memory The quantity of the computing device of matter connection is m, wherein, the number of types of m computing device is n (m >=n).Shared virtual memory is situated between For matter after statistics, the number of types that can know currently attached computing device is n.
Step S32, the quantity in privately owned storage section is set according to different types of quantity.
Wherein, the number of types of currently attached computing device, in the storage pool for determining shared virtual memory medium Privately owned storage section quantity.For example, the number of types of currently attached computing device is n, then privately owned in storage pool The quantity for storing section is k (k >=n).The quantity in privately owned storage section can be set greater than currently attached calculating to set Standby number of types, can reserve a certain number of privately owned storage sections for the type corresponding to the computing device newly added.
Step S33, shared public region and the privately owned storage section of the quantity are divided into by storage pool.
Storage pool is divided into the private of respective numbers by shared virtual memory medium after the quantity in privately owned storage section is set There are storage section, and a shared public region.Wherein, the quantity phase of the quantity in privately owned storage section and computing device type Deng.
Step S34, determines whether that new computing device is connected with virtual storage medium.If so, then perform step S35; Otherwise, step S37 is performed.
In the process of running, whether real-time judge has new computing device to add to the shared virtual memory medium, can be right The division of storage pool is made adjustment in time.
Step S35, obtains the type information of new computing device.
When there is new computing device to be connected with virtual storage medium, shared virtual memory medium obtains the new calculating and sets Standby type information.
Step S36, corresponding privately owned storage section is distributed according to the type information for new computing device.
Shared virtual memory medium by judge the new computing device type whether the class with existing computing device Type is identical, so as to judge the privately owned storage section for whether needing distribution new.
Identical with 2 step S22 of embodiment, details are not described herein.
Step S37, obtains the information to be stored for the computing device being connected with virtual storage medium, and information to be stored is included altogether Enjoy information and differentiation information.
Identical with 2 step S23 of embodiment, details are not described herein.
Step S38, by the shared public region of shared information deposit storage pool.
Identical with 2 step S24 of embodiment, details are not described herein.
Step S39, according to virtual storage medium and the mapping relations in the privately owned storage section of storage pool by differentiation information It is stored in corresponding privately owned storage section.
Identical with 2 step S25 of embodiment, details are not described herein.
Embodiment 4
The present embodiment provides a kind of concrete application example of the information storage means of computing device, for sharing virtual medium Carry in chip.Wherein, the computing device being connected with virtual storage medium is master control core.As shown in figure 5, the read method bag Include following steps:
Step S41, reads and the quantity of the master control core of virtual storage medium connection and corresponding type.
Step S42, divides the storage pool of shared virtual memory medium, is divided into some privately owned storage sections and one A shared public region.
Step S43, storage pool address of cache is done for each virtual storage medium interface.
Step S44, writes data.
Step S45, judges the task section belonging to data to be written, writes data into corresponding section.
Wherein, the user in privately owned storage section does not refer to a master control core, and refers to a kind of master control core, because this The hardware of a little cores is identical, so the hardware configuration information of differentiation is also identical.Therefore, during initialization privately owned storage section number Amount is generally dependent on the number of types of different master control cores in system.Meanwhile address mapping relation can be a dynamic configuration, When there is the master control core newly added, it is updated as the case may be.
Embodiment 5
The present embodiment provides a kind of information-reading method of computing device, for sharing in virtual medium carrying chip.Such as Shown in Fig. 6, which comprises the following steps:
Step S51, obtains the information read requests that the computing device being connected with virtual storage medium is initiated, and information is included altogether Enjoy information and differentiation information.
When computing device needs to read into row information, its information initiated to connected virtual storage medium is read Request.After shared virtual memory medium gets the information read requests signal, represent that computing device needs to be started at this time The reading of information.Wherein, starting information includes shared information and differentiation information;Shared information is identical or same type meter Calculate part identical in the startup information needed for equipment;Difference in startup information of the differentiation information needed for different computing devices Part.
Step S52, reads shared information from the shared public region of storage pool.
Shared virtual memory medium reads shared letter from the shared public region in shared virtual memory media storage pond Breath, and the shared information read is fed back to the computing device for initiating information read requests.
Step S53, according to institute's virtual storage medium and the mapping relations in the privately owned storage section of storage pool, from corresponding private Have in storage section and read differentiation information.
Shared virtual memory medium has built up when being stored into row information and saves virtual storage medium and storage pool Privately owned storage section mapping relations.Therefore, shared virtual memory medium utilizes this when carrying out the reading of differentiation information Mapping relations read the differentiation information from corresponding privately owned storage section, and feed back to corresponding computing device.
For the present embodiment by reading shared information from shared public region, it is poor to be read from corresponding privately owned storage section Alienation information, it is possible to increase the efficiency that information is read.
Embodiment 6
The present embodiment provides a kind of information-reading method of computing device, for sharing in virtual medium carrying chip.Such as Shown in Fig. 7, which comprises the following steps:
Step S61, obtains the information read requests that the computing device being connected with virtual storage medium is initiated, and information is included altogether Enjoy information and differentiation information.
Identical with 5 step S51 of embodiment, details are not described herein.
Step S62, reads shared information from the shared public region of storage pool.
In the reading process into row information, shared virtual memory medium opens multiple threads and is used for multiple computing devices Information is read.Wherein, thread is distributed according to the type for the computing device for initiating information read requests.It can judge to calculate successively The type of equipment, then distributes thread one by one;The quantity of the type of computing device can also be counted, line is distinguished according to the quantity Journey.Read in short, need to only distribute the information that a thread is used for same type of computing device.
Remaining is identical with 5 step S52 of embodiment, and details are not described herein.
Step S63, according to institute's virtual storage medium and the mapping relations in the privately owned storage section of storage pool, from corresponding private Have in storage section and read differentiation information.
Specifically, comprise the following steps:
Step S631, according to mapping relations, searches the privately owned storage section corresponding to virtual storage medium in storage pool.
Shared virtual memory medium according to the address mapping relation in privately owned storage section in virtual storage medium and storage pool, The corresponding privately owned storage section with virtual storage medium is searched in storage pool.
Step S632, reads differentiation information from the privately owned storage section found out.
After finding out privately owned storage section, the differentiation information stored in the privately owned storage section is read, and will read Differentiation information feed back to corresponding computing device.
Embodiment 7
The present embodiment provides a kind of concrete application example of the information-reading method of computing device, for sharing virtual medium Carry in chip.As shown in figure 8, the read method includes:
1. shared virtual memory medium opens the information reading that multiple threads are used for computing device.
2. shared virtual memory medium is according to virtual storage medium and the mapping relations in privately owned storage section, in storage pool Carry out the lookup in privately owned storage section.
3. the data dispatch management module in shared virtual memory medium when data traffic is larger, is responsible for each number of balance According to the flow of passage.Wherein, each data channel uses direct memory access (Direct Memory in the present embodiment Access, referred to as DMA) mode, and with a small amount of caching.
4. data dispatch management module reads information from storage pool feeds back to corresponding computing device.
Embodiment 8
The present embodiment provides a kind of shared virtual medium carrying chip, available for the meter performed in embodiment 1 to embodiment 5 Calculate the information storage means or information-reading method of equipment.As shown in figure 9, the shared virtual medium carrying chip includes:
Storage pool 10, for storing information;Wherein, storage pool 10 includes data memory module 11, the data memory module 11 include shared public region 1220 and some privately owned storage sections.Shared public region 1220 is used to store shared information, private There is storage section to be used to store differentiation information.
At least one virtual storage medium, for reading information from storage pool, and is sent to corresponding computing device.
By the way that shared public region, and some privately owned storage sections will be marked off in the carrying chip, for storing altogether Enjoy information and differentiation information;In addition, the carrying chip is provided with virtual storage medium, for connecting extraneous computing device with depositing Reservoir, to meet requirement of the different computing devices to the interface of the storage medium, data format and sequential, so as to break away from Computing device carries the hardware requirement of chip to sharing virtual medium in itself, can reduce computing device and start medium to high standard Dependence, different types of computing device can also be unified to the requirement of the differentiation of the carrying chip, reach simplified hardware design, Save the purpose of production cost.
As a kind of optional embodiment of the present embodiment, as shown in figure 9, the shared virtual medium carrying chip also wraps Include:Data dispatch management module 11, for responding the information read requests of each virtual storage medium, from data memory module 12 Extraction information feeds back to corresponding virtual storage medium.
It should be noted that do not have special requirement in itself to sharing virtual medium carrying chip, no matter FPGA, CPU, ARM even microcontrollers can all be used as carrying chip.Storage pool or the memory, external memory or even piece memory storage for carrying chip. Only it need to ensure that the carrying chip includes storage pool and virtual storage medium.
The shared virtual medium carrying chip has the following advantages:1st, flexibly, different schemes can be designed according to demand With cost-effective and reduce design difficulty;2nd, general, the hardware which is related to is usual hardware, and interface is logical With interface, design and very high scheme reliability can be easy to.
Realized as shown in figure 9, shared virtual medium chip is the storage pool that chip is carried by sharing virtual medium.From As can be seen that two of the parallel starting scheme most critical based on the shared virtual more master control cores for starting medium in the structure of scheme A part is virtual storage medium and storage pool 10.
Virtual storage medium:Virtual storage medium plays the role of the corresponding master control core of connection and storage pool 10, due to not It is different to the interface requirement, data format requirement and timing requirements for starting information storage medium with master control acp chip, so often A master control core has different virtual storage mediums to carry out interim data.This corresponding virtual storage medium is imitating physics Jie While matter interface, can the recalls information from storage pool 10 according to demand, so as to reach connection master control core and storage pool 10 Purpose.
Storage pool 10:The chip internal interface of storage pool 10 is used to connect virtual storage medium, this interface can be one Or multiple bus interface or multiple parallel Point-to-Point Data interfaces, and distinct interface can be used with parallel, specifically Depending on according to the design needs.
Data dispatch management module 11, is responsible for the information read request that response chip internal interface is sent, and calls data to deposit Information in storage module 12 feeds back to internal data interface.Meanwhile when reading data concurrent thread is more, it is responsible for arbitration process simultaneously Balance the flow between each thread.
Data memory module 12 can be the external memory or the piece memory of memory or chip of virtual medium carrying chip Storage, storage is startup information that each master control core needs.When using volatile storage mode, data dispatch management Module 11 need to have the startup information that initial configuration interface is needed for loading each master control core during initialization.
By above scheme, realize that virtual startup information storage medium is shared in more master controls and polytype master control, reach letter Change design, cost-effective purpose.
The present embodiment takes the shared scheme for starting information storage medium, significantly reduces in how main core system to storage The demand of medium is deposited, improves density, reduces design difficulty, and saved production cost.Meanwhile by using virtual memory Medium, broken away from main acp chip in itself to start medium hardware requirement, can not only reduce high standard start medium according to Rely, differentiation requirement of the different core to move media can also be unified, reach simplified hardware design, save the mesh of production cost 's.
The present embodiment can be applied not only to start the virtual shared of information storage media, it is possibility to have condition is applied to The storage of other information is shared, such as configuration information, using data message and from end equipment start information.
Meanwhile in some old designs, the startup information storage medium of certain model stopped production, be not easy to purchase or purchased into This is higher, can use the present embodiment as an alternative, so as to ensure delivery cycle or reduce production cost.
Embodiment 9
The present embodiment provides a kind of non-transient computer readable storage medium storing program for executing, the computer-readable storage medium is stored with calculating Machine executable instruction, the computer executable instructions can perform the computing device any one of embodiment 1 to embodiment 4 Information storage means.Wherein, the storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation:) or solid state hard disc (Solid-State Drive, SSD) etc. HDD;The storage medium is also It can include the combination of the memory of mentioned kind.
Embodiment 10
The present embodiment provides a kind of non-transient computer readable storage medium storing program for executing, the computer-readable storage medium is stored with calculating Machine executable instruction, the computer executable instructions can perform the computing device any one of embodiment 5 to embodiment 7 Information-reading method.Wherein, the storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (Flash Memory), hard disk (Hard Disk Drive, abbreviation:) or solid state hard disc (Solid-State Drive, SSD) etc. HDD;The storage medium is also It can include the combination of the memory of mentioned kind.
It is to lead to it will be understood by those skilled in the art that realizing all or part of flow in above-described embodiment method Computer program is crossed to instruct relevant hardware to complete, the program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (ROM) or random access memory (RAM) etc..
Although being described in conjunction with the accompanying the embodiment of the present invention, those skilled in the art can not depart from the present invention Spirit and scope in the case of various modification can be adapted and modification, such modifications and variations are each fallen within by appended claims institute Within the scope of restriction.

Claims (10)

  1. A kind of 1. information storage means of computing device, it is characterised in that including:
    Obtain the information to be stored of computing device be connected with virtual storage medium, the information to be stored include sharing information with Differentiation information;
    By in the shared public region of the shared information deposit storage pool;
    According to the mapping relations in the virtual storage medium and the privately owned storage section of the storage pool by the differentiation information It is stored in corresponding privately owned storage section.
  2. 2. storage method according to claim 1, it is characterised in that in the meter for obtaining and being connected with virtual storage medium Before the information to be stored for calculating equipment, further include:
    Obtain the type information of the computing device;
    According to the type information corresponding privately owned storage section is distributed for the computing device.
  3. 3. storage method according to claim 2, it is characterised in that according to the type information be the computing device point With corresponding privately owned storage section, including:
    Judge the current privately owned storage section for whether having same type;
    When there are during the privately owned storage section of same type, the virtual storage medium for connecting the computing device is mapped to correspondence In the privately owned storage section of the type;
    When there is no during the privately owned storage section of same type, new privately owned of type information distribution corresponding to the computing device Section is stored, and the virtual storage medium for connecting the computing device is mapped into the new privately owned storage section.
  4. 4. storage method according to claim 1, it is characterised in that in the meter for obtaining and being connected with virtual storage medium Before the information to be stored for calculating equipment, further include:
    Count the quantity of currently attached different types of computing device;
    The quantity in the privately owned storage section is set according to different types of quantity;
    The storage pool is divided into the privately owned storage section of shared public region and the quantity.
  5. A kind of 5. information-reading method of computing device, it is characterised in that including:
    Obtain the information read requests that the computing device that be connected with virtual storage medium is initiated, described information include sharing information with Differentiation information;
    The shared information is read from the shared public region of storage pool;
    According to the mapping relations in the virtual storage medium and the privately owned storage section of the storage pool, from corresponding described privately owned Store and differentiation information is read in section.
  6. 6. read method according to claim 5, it is characterised in that according to the virtual storage medium and the storage pool Privately owned storage section mapping relations, from the corresponding privately owned storage section read differentiation information, including:
    According to the mapping relations, the privately owned memory block corresponding to the virtual storage medium is searched in the storage pool Between;
    Differentiation information is read from the privately owned storage section found out.
  7. 7. the read method according to claim 5 or 6, it is characterised in that including:
    Open the information reading that multiple threads are used for multiple computing devices;
    Judge whether the computing device of same type;
    When there are during the computing device of same type, distribute same thread for the computing device of same type and carry out institute State the reading of shared information.
  8. A kind of 8. shared virtual medium carrying chip, it is characterised in that including:
    Storage pool, for storing information;The storage pool includes data memory module, and the data memory module includes shared public affairs Section and some privately owned storage sections altogether, the shared public region are used to store shared information, and the privately owned storage section is used In storage differentiation information;
    At least one virtual storage medium, for reading described information from the storage pool, and is sent to corresponding calculating and sets It is standby.
  9. 9. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that the non-transient computer readable storage medium storing program for executing is deposited Computer instruction is stored up, the computer instruction is used to make the computing device any one of computer perform claim requirement 1 to 4 Information storage means.
  10. 10. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that the non-transient computer readable storage medium storing program for executing is deposited Computer instruction is stored up, the computer instruction is used to make the computing device any one of computer perform claim requirement 5 to 7 Information-reading method.
CN201711146463.9A 2017-11-17 2017-11-17 Information storage, read method and the shared virtual medium carrying chip of computing device Pending CN107943743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711146463.9A CN107943743A (en) 2017-11-17 2017-11-17 Information storage, read method and the shared virtual medium carrying chip of computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711146463.9A CN107943743A (en) 2017-11-17 2017-11-17 Information storage, read method and the shared virtual medium carrying chip of computing device

Publications (1)

Publication Number Publication Date
CN107943743A true CN107943743A (en) 2018-04-20

Family

ID=61931777

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711146463.9A Pending CN107943743A (en) 2017-11-17 2017-11-17 Information storage, read method and the shared virtual medium carrying chip of computing device

Country Status (1)

Country Link
CN (1) CN107943743A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1149736A (en) * 1995-06-05 1997-05-14 北京航空航天大学 Distributing storage sharing management method
CN101170511A (en) * 2007-11-20 2008-04-30 中兴通讯股份有限公司 Device and method for realizing multi-core processor communication in built-in operating system
CN101546252A (en) * 2008-03-25 2009-09-30 株式会社日立制作所 Storage apparatus and control method for same
CN102541619A (en) * 2010-12-23 2012-07-04 国际商业机器公司 Management device and method for virtual machine
CN102625934A (en) * 2008-11-13 2012-08-01 英特尔公司 Shared virtual memory
CN103491144A (en) * 2013-09-09 2014-01-01 中国科学院计算技术研究所 Method for constructing wide area network virtual platform
CN104252392A (en) * 2013-06-28 2014-12-31 华为技术有限公司 Method for accessing data cache and processor
CN105912280A (en) * 2016-06-24 2016-08-31 四川福豆科技有限公司 Storage terminal capable of performing data classification
CN106681784A (en) * 2016-12-23 2017-05-17 维沃移动通信有限公司 System software management method and terminal
CN106855788A (en) * 2015-12-09 2017-06-16 北京信威通信技术股份有限公司 A kind of Memory Allocation management method of heap space

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1149736A (en) * 1995-06-05 1997-05-14 北京航空航天大学 Distributing storage sharing management method
CN101170511A (en) * 2007-11-20 2008-04-30 中兴通讯股份有限公司 Device and method for realizing multi-core processor communication in built-in operating system
CN101546252A (en) * 2008-03-25 2009-09-30 株式会社日立制作所 Storage apparatus and control method for same
CN102625934A (en) * 2008-11-13 2012-08-01 英特尔公司 Shared virtual memory
CN102541619A (en) * 2010-12-23 2012-07-04 国际商业机器公司 Management device and method for virtual machine
CN104252392A (en) * 2013-06-28 2014-12-31 华为技术有限公司 Method for accessing data cache and processor
CN103491144A (en) * 2013-09-09 2014-01-01 中国科学院计算技术研究所 Method for constructing wide area network virtual platform
CN106855788A (en) * 2015-12-09 2017-06-16 北京信威通信技术股份有限公司 A kind of Memory Allocation management method of heap space
CN105912280A (en) * 2016-06-24 2016-08-31 四川福豆科技有限公司 Storage terminal capable of performing data classification
CN106681784A (en) * 2016-12-23 2017-05-17 维沃移动通信有限公司 System software management method and terminal

Similar Documents

Publication Publication Date Title
CN104317742B (en) Automatic thin-provisioning method for optimizing space management
CN104915151B (en) A kind of memory excess distribution method that active is shared in multi-dummy machine system
JP4241911B2 (en) Information processing system
CN105095094B (en) EMS memory management process and equipment
CN102449607B (en) Storage system provided with a plurality of flash packages
US20090210464A1 (en) Storage management system and method thereof
CN103577345A (en) Methods and structure for improved flexibility in shared storage caching by multiple systems
CN114860163B (en) Storage system, memory management method and management node
CN103176845A (en) Method, system and device for virtual machine arrangement
CN106201335B (en) Storage system
US20220263711A1 (en) Acceleration Resource Scheduling Method and Apparatus, and Acceleration System
CN111124277A (en) Deep learning data set caching method, system, terminal and storage medium
CN108710583A (en) Management method, device, computer equipment and the medium in SSD write buffers area
CN107493329A (en) A kind of remote document access method of distributed memory file system
CN103106150B (en) A kind of storage system that realizes simplifies configuration and the method simplifying distribution automatically
CN103514249A (en) Method and system for automatic data reduction and storage device
CN107209716B (en) Memory management device and method
CN102520887A (en) Storage space configuration and management method applied to cloud computing
CN109960471A (en) Date storage method, device, equipment and storage medium
US9009440B2 (en) Adjustment of data storage capacity provided by a storage system
CN108845958A (en) A kind of mapping of interleaver and dynamic EMS memory management system and method
CN101321250B (en) Television set important data storage method
CN109445943A (en) The EMS memory management process of I/O stack, system and relevant apparatus in kernel state system
CN104965793B (en) A kind of cloud storage data node device
CN103020201A (en) Storage pool capable of automatically simplifying configuration for storage system and organization and management method

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Hu Jingming

Inventor after: Chen Feng

Inventor after: Wu Jianyuan

Inventor after: Wang Fang

Inventor after: Han Wenbao

Inventor before: Hu Jingming

Inventor before: Wu Jianyuan

Inventor before: Wang Fang

Inventor before: Han Wenbao

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180420