CN109597589A - Date storage method and system - Google Patents

Date storage method and system Download PDF

Info

Publication number
CN109597589A
CN109597589A CN201811520819.5A CN201811520819A CN109597589A CN 109597589 A CN109597589 A CN 109597589A CN 201811520819 A CN201811520819 A CN 201811520819A CN 109597589 A CN109597589 A CN 109597589A
Authority
CN
China
Prior art keywords
data
memory module
capacity
storage method
module
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.)
Granted
Application number
CN201811520819.5A
Other languages
Chinese (zh)
Other versions
CN109597589B (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201811520819.5A priority Critical patent/CN109597589B/en
Publication of CN109597589A publication Critical patent/CN109597589A/en
Application granted granted Critical
Publication of CN109597589B publication Critical patent/CN109597589B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/0608Saving storage space on storage systems

Abstract

The invention discloses a kind of date storage method and systems, and wherein date storage method includes: to store different types of data to different memory modules respectively;The relationship between data volume stored according to the capacity of each memory module and needs carrys out the shared capacity permission of open or closed each memory module;The capacity, which is less than, needs the memory module of the data volume stored to need the data stored to store into the data module of at least one opening and shares capacity permission its part.The present invention had not only realized data classification storage, but also improved the utilization rate of memory module capacity.

Description

Date storage method and system
Technical field
The present invention relates to date storage methods, using the date storage method come the data-storage system of storing data.
Background technique
With the development of industrial automation, the demand of industrial field data storage is gradually increased, to the classification of type of data Also more and more careful, different data types would generally be stored in respectively in different memory modules in the prior art, a denier According to damaging, the memory module that can be damaged with cracking trace back data is corresponding so as to solve the problems, such as early as possible.But not The data volume of same type data is different, and also can not accurately estimate its data volume in advance, in order to avoid what data not enough stored asks Topic, the prior art usually can all select the memory module of larger capacity, and the cost of this kind of memory module is also corresponding higher, even if In this way, the presence that also still will appear the memory module having not enough is deposited, the phenomenon of some memory module memory space residues causes The utilization efficiency of memory module is extremely low.
Summary of the invention
In order to not enough depositing of solving that each memory module in the prior art occurs in the data of memory corresponding types with And the technical problem that the insufficient utilization rate of remaining space is lower, the invention proposes a kind of date storage methods, comprising:
Different types of data are stored respectively to different memory modules;
The relationship between data volume stored according to the capacity of each memory module and needs carrys out open or closed each memory module Shared capacity permission;
The capacity, which is less than, needs the memory module of the data volume stored to need the data stored to store at least one its part In the data module of a opening and shares capacity permission.
In one embodiment, it when the data stored when the memory module is filled with or required for having deposited, is deposited Storage state feeds back to upper layer data management module and other memory modules, by the upper layer data management module according to each storage mould Relationship between the capacity of block and the data volume that needs store assign control instruction to corresponding memory module it is open or closed its Shared capacity permission.
In another embodiment, when the data stored when the memory module is filled with or required for having deposited, by it Storage state feeds back to other memory modules, each memory module according to the relationship of its own capacity and the data volume for needing to store, Its open or closed shared capacity permission.
In above-mentioned two embodiment, the storage state includes the type, size of data, free memory of storing data And storage location.Specifically, the relationship that can be between the capacity of each memory module and the data volume that needs store meets institute When stating capacity greater than the data volume, then opening and shares capacity permission;If being less than or equal to, shared capacity permission is closed.
In one embodiment, the distribution that the memory module is issued according to the upper layer data management module instructs to deposit Store up the data of corresponding types.Between the memory module and the upper layer data management module using bus or wirelessly into Row communication.Bus is used between each memory module or is wirelessly communicated.The bus mode be RS485 or CAN。
If there are also the data of corresponding types to be stored in later, new data can be used after the memory module is filled with The data of the history of corresponding types at most are covered to be stored.
The invention also proposes a kind of data-storage systems, including several memory modules, the memory module root According to date storage method storing data as described in the above technical scheme.
The present invention distributes different memory modules according to user demand for different types of data, and according to the big of data volume Small automatic distribution data space, the effective storing data utilization rate for improving memory module.
Detailed description of the invention
Below with reference to embodiment and attached drawing, the present invention is described in detail, in which:
Fig. 1 is the memory module attachment structure schematic diagram of one embodiment of the invention.
Fig. 2 is the data Stored Procedure figure of one embodiment of the invention.
Specific embodiment
The principle and embodiment that the invention will now be described in detail with reference to the accompanying drawings.
As shown in Figure 1 and Figure 2, data-storage system of the invention includes multiple memory modules, between multiple memory modules It being connected with each other, multiple memory modules connect with upper layer data management module, it can be connected by bus between them, such as RS485, Can etc. can also be connected wirelessly, such as NB-IOL etc..
When a memory module is chosen, it is determined that the storage size of the data of some type is deposited in fixed It stores up on big little module, when user need to store the data of different data types, such as: device data, multi-energy data, control number According to a variety of data types such as, status datas, distribution data memory module, different memory module point can be gone according to data type Distribution instruction can be issued by upper layer data management module with which type of data, such as multi-energy data in the present embodiment, is set The amount of capacity of standby data, control data and the corresponding memory module of status data is 200M, 100M, 100M, 400M.
Data carry out real-time storage, when some memory module has been filled with the data of its corresponding types or some Memory module deposit be over its corresponding data type when, which can be by storage state, the class including the storing data Type, size of data, free memory, storage location etc. feed back to data management module and remainder data memory module.
Then judge the relationship between the capacity of each memory module and the data volume that needs store, see whether to need to open Or close the shared capacity permission of corresponding memory module.Judge whether capacity is greater than the data for needing to store in the present embodiment Amount, if more than then opening and shares capacity permission;If being less than or equal to, shared capacity permission is closed.Then capacity, which is less than, needs Its part can be needed the data stored to store to one or more opening and shares capacity by the memory module of the data volume of storage In the data module of permission.In other embodiments, it is not necessarily intended to carry out open or closed shared capacity permission with the standard, such as When capacity is less times greater than corresponding data volume, it is not sufficient to bring opening and shares capacity permission, it can also be without opening.At this In embodiment, when storage state can be reported to upper layer data management module by corresponding memory module, by upper layer data management Requirement of the module according to user to data come assign to memory module can opening and shares capacity permission control instruction or do not open Control instruction.When the required data volume of some memory module is excessive, when the space of memory module is inadequate, which will The information that whether can be stored with remaining each memory module communications access.When getting corresponding permission and having space storage, Data have opened the memory module of shared capacity permission by being stored into, and report storage state to data management module.Such as shape The corresponding memory module of state data only has 200M capacity, storage far from enough, and device data storage corresponding with control data The capacity of module has residue again, then the corresponding memory module of status data closes shared capacity permission, device data and control number According to corresponding memory module opening and shares capacity permission, then partial status data can store in device data and control data pair In the memory module answered.
In other embodiments, can not also be by the way of upper layer data management module, user is according to required storage Maximum amount of data goes to determine the data stored in the segment space of the memory module of the type or be filled with, and then allows open total Capacity permission is enjoyed to go to store remaining categorical data or access remaining memory module.
After a memory module is filled with, when needing to store there are also the data of same type, covering history also can choose Data at most are stored or continue to access remaining module for having space to store, and maximization meets user to the storage need of data It asks and to the utilization rate of memory space.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (11)

1. a kind of date storage method characterized by comprising
Different types of data are stored respectively to different memory modules;
The relationship between data volume stored according to the capacity of each memory module and needs carrys out open or closed each memory module Shared capacity permission;
The capacity, which is less than, needs the memory module of the data volume stored to need the data stored to store at least one its part In the data module of a opening and shares capacity permission.
2. date storage method as described in claim 1, which is characterized in that when the memory module is filled with or deposited institute When the data for needing to store, its storage state is fed back into upper layer data management module and other memory modules, by the upper layer The relationship between data volume that data management module is stored according to the capacity of each memory module with needs assigns control instruction to phase Its open or closed shared capacity permission of the memory module answered.
3. date storage method as described in claim 1, which is characterized in that when the memory module is filled with or deposited institute When the data for needing to store, its storage state is fed back into other memory modules, each memory module is according to its own capacity and need The relationship for the data volume to be stored, its open or closed shared capacity permission.
4. date storage method as claimed in claim 2 or claim 3, which is characterized in that the storage state includes storing data Type, size of data, free memory and storage location.
5. date storage method as claimed in claim 2 or claim 3, which is characterized in that the capacity of each memory module with need to store Data volume between relationship when meeting the capacity greater than the data volume, then opening and shares capacity permission;If being less than or waiting In then capacity permission is shared in closing.
6. date storage method as claimed in claim 2, which is characterized in that the memory module is according to the upper layer data pipe The distribution that reason module issues instructs to store the data of corresponding types.
7. date storage method as claimed in claim 2, which is characterized in that the memory module and the upper layer data management Bus is used between module or is wirelessly communicated.
8. date storage method as described in claim 1, which is characterized in that use bus or nothing between each memory module The mode of line is communicated.
9. date storage method as claimed in claim 7 or 8, which is characterized in that the bus mode is RS485 or CAN.
10. date storage method as described in claim 1, which is characterized in that the memory module is filled with rear new data The data of the history of corresponding types at most are covered to be stored.
11. a kind of data-storage system, including several memory modules, which is characterized in that the memory module is according to such as right It is required that date storage method storing data described in 1 to 10 any one.
CN201811520819.5A 2018-12-12 2018-12-12 Data storage method and system Active CN109597589B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811520819.5A CN109597589B (en) 2018-12-12 2018-12-12 Data storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811520819.5A CN109597589B (en) 2018-12-12 2018-12-12 Data storage method and system

Publications (2)

Publication Number Publication Date
CN109597589A true CN109597589A (en) 2019-04-09
CN109597589B CN109597589B (en) 2020-08-11

Family

ID=65961656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811520819.5A Active CN109597589B (en) 2018-12-12 2018-12-12 Data storage method and system

Country Status (1)

Country Link
CN (1) CN109597589B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185881A (en) * 2011-03-09 2011-09-14 中山大学 Household digital equipment wireless multi-protocol space sharing storage manager and method
CN102799395A (en) * 2012-06-29 2012-11-28 华为技术有限公司 Dynamic balancing processing method and device for disk spaces and disk system
CN103620549A (en) * 2011-06-20 2014-03-05 微软公司 Storage media abstraction for uniform data storage
CN103685426A (en) * 2012-09-25 2014-03-26 联想(北京)有限公司 An information processing method and an information processing apparatus used for an electronic device
US20150286404A1 (en) * 2012-12-07 2015-10-08 Sonelite Inc. Direct data to memory system and related operating methods
CN106648899A (en) * 2016-12-28 2017-05-10 深圳Tcl数字技术有限公司 Cloud computing storage method and device based on surplus storage space of terminal device
US20180246654A1 (en) * 2013-11-01 2018-08-30 International Business Machines Corporation Capacity forecasting based on capacity policies and transactions

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185881A (en) * 2011-03-09 2011-09-14 中山大学 Household digital equipment wireless multi-protocol space sharing storage manager and method
CN103620549A (en) * 2011-06-20 2014-03-05 微软公司 Storage media abstraction for uniform data storage
CN102799395A (en) * 2012-06-29 2012-11-28 华为技术有限公司 Dynamic balancing processing method and device for disk spaces and disk system
CN103685426A (en) * 2012-09-25 2014-03-26 联想(北京)有限公司 An information processing method and an information processing apparatus used for an electronic device
US20150286404A1 (en) * 2012-12-07 2015-10-08 Sonelite Inc. Direct data to memory system and related operating methods
US20180246654A1 (en) * 2013-11-01 2018-08-30 International Business Machines Corporation Capacity forecasting based on capacity policies and transactions
CN106648899A (en) * 2016-12-28 2017-05-10 深圳Tcl数字技术有限公司 Cloud computing storage method and device based on surplus storage space of terminal device

Also Published As

Publication number Publication date
CN109597589B (en) 2020-08-11

Similar Documents

Publication Publication Date Title
CN104731799B (en) Main memory DBM device
CN103761051B (en) One flows concurrent write performance optimization method based on duration data Multiinputoutput
CN106371916B (en) A kind of thread optimized method and device thereof of storage system IO
CN106647412B (en) A kind of data sharing method between distributed director based on configuration element
CN106547492A (en) A kind of operational order dispatching method of NAND flash memory equipment and device
CN100578469C (en) Storage and polling method and storage controller and polling system
CN103522994A (en) Automatic group optimization system for power battery boxes in EV battery swap stations and operating method thereof
CN109228954B (en) Charging pile energy management method and system and charging pile group system
CN100449504C (en) Buffer management based on bitmap list
CN104615684A (en) Mass data communication concurrent processing method and system
CN107220184A (en) The management method and device of a kind of LUN memory cell
CN108021516A (en) The command scheduling management system and method for a kind of parallel memorizing media storage controller
CN103064749B (en) Inter-process communication method
CN109597589A (en) Date storage method and system
CN101021819A (en) Access control method for synchronous dynamic memory and synchronous dynamic memory controller
CN103577347B (en) For operating the method for memory devices and for the system of storage operation
CN110266604A (en) Bandwidth of air-interface self-adaptation control method, device and communication equipment
CN103827836B (en) A method and apparatus for storing data
CN109995667A (en) The method and sending device of transmitting message
CN105072048B (en) A kind of packet storage dispatching method and device
CN107172222A (en) A kind of date storage method and device based on distributed memory system
CN105099753B (en) The method of Network Management System and its processing business
CN101478495A (en) Flow limitation method and apparatus
CN105450679A (en) Method and system for performing data cloud storage
CN103701721A (en) Message transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant