CN109002258A - NameSpace distribution method, system and equipment and storage medium in solid state hard disk - Google Patents
NameSpace distribution method, system and equipment and storage medium in solid state hard disk Download PDFInfo
- Publication number
- CN109002258A CN109002258A CN201810679100.XA CN201810679100A CN109002258A CN 109002258 A CN109002258 A CN 109002258A CN 201810679100 A CN201810679100 A CN 201810679100A CN 109002258 A CN109002258 A CN 109002258A
- Authority
- CN
- China
- Prior art keywords
- namespace
- solid state
- hard disk
- state hard
- array
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0631—Configuration or reconfiguration of storage systems by allocating resources to storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
- G06F3/0623—Securing storage systems in relation to content
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application discloses NameSpace distribution method, system and equipment and computer readable storage mediums in a kind of solid state hard disk, this method comprises: receiving distribution order determines target namespace when there is idle NameSpace in the solid state hard disk;Judge the NameSpace the size whether residual capacity in the solid state hard disk is greater than in the distribution order;If so, idle NameSpace particle is distributed for the target namespace, until the size of the target namespace reaches the NameSpace size in the distribution order.NameSpace distribution method in solid state hard disk provided by the present application, is divided into multiple NameSpace particles for solid state hard disk, and the memory of solid state hard disk is distributed to NameSpace in the form of NameSpace particle.The full storage space of solid state hard disk is divided into multiple relatively independent NameSpaces, improves the safety and independence of data.
Description
Technical field
This application involves technical field of memory, more specifically to NameSpace distribution method in a kind of solid state hard disk,
System and equipment and a kind of computer readable storage medium.
Background technique
With the continuous improvement of data storage technology, the faster solid state hard disk of read or write speed has progressed into our view
Open country, as the term suggests solid state hard disk is manufactured hard disk with solid-state electronic storage chip array, by control unit and storage unit
Composition.Solid state hard disk has abandoned traditional mechanical structure, is stored, can be worked under rugged environment using full chip, and than
Traditional mechanical storage has higher anti-collision, and more high stability and reliability.Meanwhile in terms of read-write also than
Traditional mechanical storage is fast very much, the reason is that solid state hard disk (SSD) complete semiconductor transformation, there is no the lookups of data, tracking
The problems such as time, read latch, so data reading speed is fast, reflecting time is short.
The solid state hard disk of large capacity is usually required to the high enterprise's large-scale use of read or write speed, in use, often
It often may require that and different types of data be placed in relatively independent space, i.e., by creating NameSpace in solid state hard disk,
Exclusive subregion carrys out the opposite safety and independence for improving data in other words, can solve this by subregion in mechanical hard disk
A problem, but the fully transistorized storage characteristics of solid state hard disk determines that the subregion for carrying out traditional approach to it is not anticipate
Justice, i.e., can only there be a phenomenon that solid state hard disk physically is exactly a complete subregion, be unfavorable for the management to file,
And can also there be inconvenience during write-in and erasing.
Therefore, how in the full storage space of same solid state hard disk, multiple relatively independent memory spaces is created, are mentioned
The safety of high data and independence are user's problems to be solved.
Summary of the invention
The application's is designed to provide NameSpace distribution method, system and equipment and a kind of meter in a kind of solid state hard disk
Calculation machine readable storage medium storing program for executing creates multiple relatively independent memory spaces, mentions in the full storage space of same solid state hard disk
The high safety and independence of data.
To achieve the above object, this application provides NameSpace distribution methods in a kind of solid state hard disk, comprising:
It receives distribution order and determines target namespace when there is idle NameSpace in the solid state hard disk;
Judge the NameSpace the size whether residual capacity in the solid state hard disk is greater than in the distribution order;
If so, idle NameSpace particle is distributed for the target namespace, until the target namespace
Size reaches the NameSpace size in the distribution order.
Wherein, after the reception distribution order, further includes:
Judge whether the parameter in the distribution order is legal;Wherein, it is big to include at least the NameSpace for the parameter
It is small;
If so, the step of executing when there is idle NameSpace in the solid state hard disk, determining target namespace.
Wherein, the parameter further includes NameSpace characteristic;
Correspondingly, NameSpace particle is distributed for the target namespace, until the size of the target namespace
Reach described to distribute after the NameSpace size in order, further includes:
According to the characteristic of target namespace described in the NameSpace featured configuration.
Wherein, the NameSpace for judging whether the residual capacity in the solid state hard disk is greater than in the distribution order is big
It is small, comprising:
The idle NameSpace particle in the solid state hard disk is inquired, and judges all idle NameSpace particles
Whether size summation is greater than the NameSpace size in the distribution order.
Wherein, further includes:
The first array and the second array are created for the solid state hard disk;
Wherein, first array is specially to describe the array of NameSpace belonging to each NameSpace particle, described
Second array is specially to describe the array whether each NameSpace particle is assigned;
Correspondingly, distributing idle NameSpace particle for the target namespace, comprising:
The corresponding value of free time NameSpace particle described in first array is updated to the target namespace
Number, and the corresponding value of free time NameSpace particle described in second array is updated to preset value.
Wherein, the array element of first array is 16 type of unit, and the array element of second array is unit
32 types.
To achieve the above object, this application provides NameSpace distribution systems in a kind of solid state hard disk, comprising:
Receiving module determines target when there is idle NameSpace in the solid state hard disk for receiving distribution order
NameSpace;
Whether judgment module, the residual capacity for judging in the solid state hard disk are greater than the name in the distribution order
Space size;If so, the workflow of starting distribution module;
The distribution module, for distributing idle NameSpace particle for the target namespace, until the target
The size of NameSpace reaches the NameSpace size in the distribution order.
To achieve the above object, this application provides NameSpace distributing equipments in a kind of solid state hard disk, comprising:
Memory, for storing computer program;
Processor is realized when for executing the computer program such as NameSpace distribution method in above-mentioned solid state hard disk
Step.
To achieve the above object, this application provides a kind of computer readable storage medium, the computer-readable storages
It is stored with computer program on medium, is realized when the computer program is executed by processor as empty in named in above-mentioned solid state hard disk
Between distribution method the step of.
By above scheme it is found that NameSpace distribution method in a kind of solid state hard disk provided by the present application, comprising: receive
Distribution order determines target namespace when there is idle NameSpace in the solid state hard disk;Judge the solid state hard disk
Whether interior residual capacity is greater than the NameSpace size in the distribution order;If so, for the target namespace point
With idle NameSpace particle, until the NameSpace that the size of the target namespace reaches in the distribution order is big
It is small.
Solid state hard disk is divided into multiple NameSpaces by NameSpace distribution method in solid state hard disk provided by the present application
Grain, distributes to NameSpace in the form of NameSpace particle for the memory of solid state hard disk.The full storage of solid state hard disk is empty
Between be divided into multiple relatively independent NameSpaces, the safety and independence of data are improved, so as to realize different lives
The different cipher modes of the name space realize the QOS (Chinese name: service quality, full name in English: Quality based on NameSpace
Of Service), SR-IOV (Chinese name: single I/O virtualization, full name in English: Single-root I/O
The Premium Features such as virtualization).Disclosed herein as well is NameSpace distribution system and equipment in a kind of solid state hard disk
With a kind of computer readable storage medium, it is equally able to achieve above-mentioned technical effect.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is the flow chart of NameSpace distribution method in a kind of solid state hard disk disclosed in the embodiment of the present application;
Fig. 2 is the flow chart of NameSpace distribution method in another kind solid state hard disk disclosed in the embodiment of the present application;
Fig. 3 is the structure chart of NameSpace distribution system in a kind of solid state hard disk disclosed in the embodiment of the present application;
Fig. 4 is the structure chart of NameSpace distributing equipment in a kind of solid state hard disk disclosed in the embodiment of the present application;
Fig. 5 is the structure chart of NameSpace distributing equipment in another kind solid state hard disk disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
The embodiment of the present application discloses NameSpace distribution method in a kind of solid state hard disk, in the complete of same solid state hard disk
In memory space, multiple relatively independent memory spaces are created, the safety and independence of data are improved.
Referring to Fig. 1, the flow chart of NameSpace distribution method in a kind of solid state hard disk disclosed in the embodiment of the present application is such as schemed
Shown in 1, comprising:
S101: receiving distribution order, when there is idle NameSpace in the solid state hard disk, determines object naming sky
Between;
The distribution order of this step includes at least the NameSpace size of request, can also include certainly other information, example
Such as LBA (Chinese name: logical block addresses, full name in English: Logical Block Address) size, partition name, subregion
Storage format, NameSpace characteristic (such as encrypt) information in which way, are not specifically limited herein, user should be according to specific
Model, manufacturer, firmware version number and the usage of solid state hard disk make the selection of most suitable user.
User can preassign NameSpace maximum number MNN (the Max Number of in solid state hard disk
Namespaces), the value range of target namespace is from 1 to MNN, if all NameSpaces all occupy, i.e., not
There are idle NameSpaces, then cannot create new NameSpace again, return to error code, this time creation failure.It is idle if it exists
NameSpace, it is determined that target namespace, as this sub-distribution order distribute NameSpace number.
It further include the parameter judged in the distribution order after receiving distribution order as a preferred implementation manner,
It is whether legal, if so, executing when there is idle NameSpace in the solid state hard disk, determine the step of target namespace
Suddenly;If it is not, error code is then returned, this time creation failure.
S102: the NameSpace for judging whether the residual capacity in the solid state hard disk is greater than in the distribution order is big
It is small;If so, into S103;
In specific implementation, judge that this is solid after sub-distribution order distribution NameSpace number i.e. target namespace thus
Whether the residual capacity in state hard disk meets the requirement of distribution order, it is, judging whether residual capacity is greater than distribution order
The NameSpace size of request, if so, into S103, if it is not, error code is then returned, this time creation failure.
In specific implementation, can be by the idle NameSpace particle in the inquiry solid state hard disk, and judge all
Whether the size summation of the free time NameSpace particle is greater than the mode of the NameSpace size in the distribution order, judgement
Whether the residual capacity in the solid state hard disk meets the requirement of distribution order.
It is understood that also needing to judge that the remaining of solid state hard disk is held when including NameSpace characteristic in distribution order
Whether amount can support the characteristic, if so, into S103, if it is not, error code is then returned, this time creation failure.
S103: idle NameSpace particle is distributed for the target namespace, until the target namespace is big
The small NameSpace size reached in the distribution order.
In specific implementation, the memory space in solid state hard disk is distributed in the form of NameSpace particle to object naming
Unit is ordered for the idle NameSpace amounts of particles of target namespace distribution according to the size and distribution of NameSpace particle
The NameSpace size of request determines, 1 space NameSpace can be also distributed when less than 1 NameSpace granular size
Grain, until the size of target namespace reaches the NameSpace size in the distribution order.
It is NameSpace particle that this step, which defaults the minimum memory unit in solid state hard disk, therefore before this step, is needed
The solid state hard disk for being used to storing data is done into according to the characteristics of storing data the division of NameSpace particle, and be equal part into
Row divides.For example, if the solid state hard disk that total memory capacity is 100G is used to, storage volume is smaller but a fairly large number of number
According to file, then the size of suitable minimum memory unit can be set according to the mean size of the data file because GB and
Every layer of conversion multiple is all 1024 between MB and KB.For example, the mean size of the data file is all in 450K or so, and not
More than 512K, then 512K can be sized to the minimum memory unit, in order to the write-in to file and reduce every
Remaining space proportion in a minimum memory unit, then in the solid state hard disk of 100G, the preset quantity of equal part is exactly
100*1024*2=204800, i.e., the memory space of the 100G is divided into 204800 according to the mean size of storage file
Minimum memory unit, the size of each storage unit are 512K.
Certainly, the mode specifically how divided to the full storage space of a solid state hard disk is varied, most simple
Single is classified as two kinds, i.e., serially divides or parallel patition, serial division mode be one by one divide, divide
Complete one subdivided next;Parallel division mode is the division being completed at the same time to all quantity minimum memory units.This two
The kind each have their own advantage of mode and suitable usage scenario.
For example, the mean size when data file is larger, that is, the size of the minimum memory unit divided is also larger, corresponding
The quantity of minimum memory unit will be less, serial division mode can be used in the case where division numbers are less,
Because time required for partition process and the size marked off are substantially proportional, consumed using parallel division mode
Time can't be fewer than serial, and if once occurring abnormal, also only can damage a storage unit, will not draw as parallel
Point mode is likely to result in whole scrap;When the mean size of data file is smaller, that is, the size of the minimum memory unit divided
Also smaller, the quantity of corresponding minimum memory unit will be more, can be using simultaneously in the case where division numbers are more
Capable division mode can be completed to divide with higher efficiency, it is contemplated that safety and unusual condition can carry out in batches simultaneously
Row divides, without once completing total amount of division.
Only two kinds of simplest division modes above-mentioned, there is also many other division modes, based on various
Principle and method can achieve certain special effects, not make specific restriction herein, should regard actual conditions in conjunction with various shadows
The factor of sound makes the selection for being best suitable for number one.
It is understood that also being needed after this step according to the life when including NameSpace characteristic in distribution order
The characteristic of name space featured configuration target namespace.
Solid state hard disk is divided into multiple names by NameSpace distribution method in solid state hard disk provided by the embodiments of the present application
The memory of solid state hard disk is distributed to NameSpace in the form of NameSpace particle by space particle.By the complete of solid state hard disk
Memory space is divided into multiple relatively independent NameSpaces, the safety and independence of data is improved, so as to realize
The different cipher modes of different NameSpaces realize the Premium Features such as QOS, SR-IOV based on NameSpace.
The embodiment of the present application discloses NameSpace distribution method in a kind of solid state hard disk, relative to a upper embodiment, this
Embodiment has made further instruction and optimization to technical solution.It is specific:
Referring to fig. 2, in another solid state hard disk provided by the embodiments of the present application NameSpace distribution method flow chart, such as
Shown in Fig. 2, comprising:
S211: the first array and the second array are created for the solid state hard disk;
Wherein, first array is specially to describe the array of NameSpace belonging to each NameSpace particle, described
Second array is specially to describe the array whether each NameSpace particle is assigned;
In specific implementation, NameSpace belonging to each NameSpace particle and each can be described in the form of array
Whether NameSpace particle is assigned, and the array element of above-mentioned first array can be 16 type of unit, the array of the second array
Element can be 32 type of unit.
S212: receiving distribution order, when there is idle NameSpace in the solid state hard disk, determines object naming sky
Between;
S202: the NameSpace for judging whether the residual capacity in the solid state hard disk is greater than in the distribution order is big
It is small;If so, into S203;
S203: it is empty that the corresponding value of free time NameSpace particle described in first array is updated to the object naming
Between number, and the corresponding value of free time NameSpace particle described in second array is updated to preset value.
For example, MT is above-mentioned first array, array element is uint16, and the value of each array element is corresponding NameSpace
NameSpace belonging to particle.UBM is above-mentioned second array, and array element is uint32, each represents corresponding NameSpace
Whether particle is assigned.NameSpace particle 100 is distributed to the concrete operations of NameSpace 2 are as follows: more by MT [100] value
New is 2, and the 4th bit of UBM [3] is set 1.
NameSpace distribution system in a kind of solid state hard disk provided by the embodiments of the present application is introduced below, is hereafter retouched
NameSpace distribution method in NameSpace distribution system and a kind of above-described solid state hard disk in a kind of solid state hard disk stated
It can be cross-referenced.
Referring to Fig. 3, the structure chart of NameSpace distribution system in a kind of solid state hard disk provided by the embodiments of the present application is such as schemed
Shown in 3, comprising:
Receiving module 301, when there is idle NameSpace in the solid state hard disk, is determined for receiving distribution order
Target namespace;
Whether judgment module 302, the residual capacity for judging in the solid state hard disk are greater than in the distribution order
NameSpace size;If so, the workflow of starting distribution module;
The distribution module 303, for distributing idle NameSpace particle for the target namespace, until the mesh
The size of mark NameSpace reaches the NameSpace size in the distribution order.
Solid state hard disk is divided into multiple names by NameSpace distribution system in solid state hard disk provided by the embodiments of the present application
The memory of solid state hard disk is distributed to NameSpace in the form of NameSpace particle by space particle.By the complete of solid state hard disk
Memory space is divided into multiple relatively independent NameSpaces, the safety and independence of data is improved, so as to realize
The different cipher modes of different NameSpaces realize the Premium Features such as QOS, SR-IOV based on NameSpace.
On the basis of the above embodiments, as a preferred implementation manner, further include:
Legitimacy module is judged, for judging whether the parameter in the distribution order is legal;Wherein, the parameter is at least
Including the NameSpace size.
On the basis of the above embodiments, the parameter further includes NameSpace characteristic as a preferred implementation manner,;
Correspondingly, the system also includes:
Setup module, the characteristic for the target namespace according to the NameSpace featured configuration.
On the basis of the above embodiments, the judgment module 302 is specially to inquire institute as a preferred implementation manner,
The idle NameSpace particle in solid state hard disk is stated, and judges whether the size summation of all idle NameSpace particles is big
The module of NameSpace size in the distribution order.
On the basis of the above embodiments, as a preferred implementation manner, further include:
Creation module, for creating the first array and the second array for the solid state hard disk;
Wherein, first array is specially to describe the array of NameSpace belonging to each NameSpace particle, described
Second array is specially to describe the array whether each NameSpace particle is assigned;
Correspondingly, the distribution module 303 is specially that free time NameSpace particle described in first array is corresponding
Value be updated to the number of the target namespace, and it is free time NameSpace particle described in second array is corresponding
Value is updated to the module of preset value.
On the basis of the above embodiments, the array element of first array is as a preferred implementation manner,
16 type of unit, the array element of second array are 32 type of unit.
Present invention also provides NameSpace distributing equipments in a kind of solid state hard disk, and referring to fig. 4, the embodiment of the present application provides
A kind of solid state hard disk in NameSpace distributing equipment structure chart, as shown in Figure 4, comprising:
Memory 100, for storing computer program;
It is hard that the provided solid-state of any of the above-described embodiment may be implemented in processor 200 when for executing the computer program
In disk the step of NameSpace distribution method.
Specifically, memory 100 includes non-volatile memory medium, built-in storage.Non-volatile memory medium storage
There are operating system and computer-readable instruction, which is that the operating system and computer in non-volatile memory medium can
The operation of reading instruction provides environment.Processor 200 provides calculating and control ability for NameSpace distributing equipment in solid state hard disk,
When executing the computer program saved in the memory 100, following steps may be implemented: realizing that any of the above-described embodiment is mentioned
For in solid state hard disk the step of NameSpace distribution method.
Solid state hard disk is divided into multiple names by NameSpace distributing equipment in solid state hard disk provided by the embodiments of the present application
The memory of solid state hard disk is distributed to NameSpace in the form of NameSpace particle by space particle.By the complete of solid state hard disk
Memory space is divided into multiple relatively independent NameSpaces, the safety and independence of data is improved, so as to realize
The different cipher modes of different NameSpaces realize the Premium Features such as QOS, SR-IOV based on NameSpace.
On the basis of the above embodiments, preferably, referring to Fig. 5, NameSpace in the solid state hard disk
Distributing equipment further include:
Input interface 300 is connected with processor 200, for obtaining computer program, parameter and the instruction of external importing,
It saves through the control of processor 200 into memory 100.The input interface 300 can be connected with input unit, and it is manual to receive user
The parameter or instruction of input.The input unit can be the touch layer covered on display screen, be also possible to be arranged in terminal enclosure
Key, trace ball or Trackpad, be also possible to keyboard, Trackpad or mouse etc..Specifically, in the present embodiment, Yong Huke
To input NameSpace maximum number etc. by input interface 300.
Display unit 400 is connected with processor 200, the data sent for video-stream processor 200.The display unit 400
It can be display screen, liquid crystal display or the electric ink display screen etc. in PC machine.It, can be with specifically, in the present embodiment
Solid state hard disk residual capacity, idle NameSpace number etc. are shown by display unit 400.
The network port 500 is connected with processor 200, for being communicatively coupled with external each terminal device.The communication link
The communication technology used by connecing can be cable communicating technology or wireless communication technique, and such as mobile high definition chained technology (MHL) leads to
It is blue with universal serial bus (USB), high-definition media interface (HDMI), adopting wireless fidelity technology (WiFi), Bluetooth Communication Technology, low-power consumption
The tooth communication technology, communication technology based on IEEE802.11s etc..
Present invention also provides a kind of computer readable storage medium, the storage medium may include: USB flash disk, mobile hard disk,
Read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic
The various media that can store program code such as dish or CD.Computer program, the calculating are stored on the storage medium
Machine program realizes the step of NameSpace distribution method in the provided solid state hard disk of any of the above-described embodiment when being executed by processor.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other
The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application.
Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application
It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one
The widest scope of cause.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For system disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.It should be pointed out that for those skilled in the art, under the premise of not departing from the application principle, also
Can to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the protection scope of the claim of this application
It is interior.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Claims (10)
1. NameSpace distribution method in a kind of solid state hard disk characterized by comprising
It receives distribution order and determines target namespace when there is idle NameSpace in the solid state hard disk;
Judge the NameSpace the size whether residual capacity in the solid state hard disk is greater than in the distribution order;
If so, idle NameSpace particle is distributed for the target namespace, until the size of the target namespace
Reach the NameSpace size in the distribution order.
2. NameSpace distribution method in solid state hard disk according to claim 1, which is characterized in that the reception distribution order
Later, further includes:
Judge whether the parameter in the distribution order is legal;Wherein, the parameter includes at least the NameSpace size;
If so, the step of executing when there is idle NameSpace in the solid state hard disk, determining target namespace.
3. NameSpace distribution method in solid state hard disk according to claim 2, which is characterized in that the parameter further includes life
Name space characteristic;
Correspondingly, NameSpace particle is distributed for the target namespace, until the size of the target namespace reaches
After NameSpace size in the distribution order, further includes:
According to the characteristic of target namespace described in the NameSpace featured configuration.
4. NameSpace distribution method in solid state hard disk according to claim 1, which is characterized in that judge the solid state hard disk
Whether interior residual capacity is greater than the NameSpace size in the distribution order, comprising:
The idle NameSpace particle in the solid state hard disk is inquired, and judges the size of all idle NameSpace particles
Whether summation is greater than the NameSpace size in the distribution order.
5. NameSpace distribution method in any one of -4 solid state hard disks according to claim 1, which is characterized in that further include:
The first array and the second array are created for the solid state hard disk;
Wherein, first array is specially to describe the array of NameSpace belonging to each NameSpace particle, and described second
Array is specially to describe the array whether each NameSpace particle is assigned;
Correspondingly, distributing idle NameSpace particle for the target namespace, comprising:
The corresponding value of free time NameSpace particle described in first array is updated to the number of the target namespace,
And the corresponding value of free time NameSpace particle described in second array is updated to preset value.
6. NameSpace distribution method in solid state hard disk according to claim 5, which is characterized in that the number of first array
Group element is 16 type of unit, and the array element of second array is 32 type of unit.
7. NameSpace distribution system in a kind of solid state hard disk characterized by comprising
Receiving module determines object naming when there is idle NameSpace in the solid state hard disk for receiving distribution order
Space;
Whether judgment module, the residual capacity for judging in the solid state hard disk are greater than the NameSpace in the distribution order
Size;If so, the workflow of starting distribution module;
The distribution module, for distributing idle NameSpace particle for the target namespace, until the object naming
The size in space reaches the NameSpace size in the distribution order.
8. NameSpace distribution system in solid state hard disk according to claim 7, which is characterized in that further include:
Creation module, for creating the first array and the second array for the solid state hard disk;Wherein, first array is specially
The array of NameSpace belonging to each NameSpace particle is described, second array is specially to describe each NameSpace
Grain whether the array for Bei Fenpeiing;
Correspondingly, the distribution module is specially to update the corresponding value of free time NameSpace particle described in first array
For the number of the target namespace, and the corresponding value of free time NameSpace particle described in second array is updated to
Preset value, until the size of the target namespace reaches the module of the NameSpace size in the distribution order.
9. NameSpace distributing equipment in a kind of solid state hard disk characterized by comprising
Memory, for storing computer program;
Processor is realized when for executing the computer program and is named in solid state hard disk as described in any one of claim 1 to 6
The step of space allocation method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program is realized when the computer program is executed by processor and names sky in solid state hard disk as described in any one of claim 1 to 6
Between distribution method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810679100.XA CN109002258A (en) | 2018-06-27 | 2018-06-27 | NameSpace distribution method, system and equipment and storage medium in solid state hard disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810679100.XA CN109002258A (en) | 2018-06-27 | 2018-06-27 | NameSpace distribution method, system and equipment and storage medium in solid state hard disk |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109002258A true CN109002258A (en) | 2018-12-14 |
Family
ID=64600846
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810679100.XA Pending CN109002258A (en) | 2018-06-27 | 2018-06-27 | NameSpace distribution method, system and equipment and storage medium in solid state hard disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109002258A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112799592A (en) * | 2021-01-29 | 2021-05-14 | 苏州浪潮智能科技有限公司 | Multi-namespace allocation method, device, equipment and readable medium |
US11914898B2 (en) | 2022-01-26 | 2024-02-27 | Kioxia Corporation | Systems, methods, and non-transitory computer-readable media for thin provisioning in non-volatile memory storage devices |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902637A (en) * | 2012-11-19 | 2013-01-30 | 北京理工大学 | Solid-state hard disk data power-off protection method |
CN105892955A (en) * | 2016-04-29 | 2016-08-24 | 华为技术有限公司 | Method and equipment for managing storage system |
CN105975398A (en) * | 2015-12-07 | 2016-09-28 | 国家电网公司 | Method for memory fragmentation management |
US20170262228A1 (en) * | 2016-03-08 | 2017-09-14 | Kabushiki Kaisha Toshiba | Storage system, information processing system and method for controlling nonvolatile memory |
CN107273061A (en) * | 2017-07-12 | 2017-10-20 | 郑州云海信息技术有限公司 | A kind of solid state hard disc creates many namespace method and system |
CN107632943A (en) * | 2017-08-30 | 2018-01-26 | 记忆科技(深圳)有限公司 | A kind of method and solid state hard disc of solid state hard disc data protection |
-
2018
- 2018-06-27 CN CN201810679100.XA patent/CN109002258A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902637A (en) * | 2012-11-19 | 2013-01-30 | 北京理工大学 | Solid-state hard disk data power-off protection method |
CN105975398A (en) * | 2015-12-07 | 2016-09-28 | 国家电网公司 | Method for memory fragmentation management |
US20170262228A1 (en) * | 2016-03-08 | 2017-09-14 | Kabushiki Kaisha Toshiba | Storage system, information processing system and method for controlling nonvolatile memory |
CN105892955A (en) * | 2016-04-29 | 2016-08-24 | 华为技术有限公司 | Method and equipment for managing storage system |
CN107273061A (en) * | 2017-07-12 | 2017-10-20 | 郑州云海信息技术有限公司 | A kind of solid state hard disc creates many namespace method and system |
CN107632943A (en) * | 2017-08-30 | 2018-01-26 | 记忆科技(深圳)有限公司 | A kind of method and solid state hard disc of solid state hard disc data protection |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112799592A (en) * | 2021-01-29 | 2021-05-14 | 苏州浪潮智能科技有限公司 | Multi-namespace allocation method, device, equipment and readable medium |
US11914898B2 (en) | 2022-01-26 | 2024-02-27 | Kioxia Corporation | Systems, methods, and non-transitory computer-readable media for thin provisioning in non-volatile memory storage devices |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110471861B (en) | Data storage method in flash memory device and flash memory device | |
TWI575377B (en) | Storage system with load balancing mechanism and method of operation thereof | |
CN101952808B (en) | Extended utilization area for a memory device | |
US20190026223A1 (en) | Memory system and non-transitory computer readable recording medium | |
US20080195833A1 (en) | Systems, methods and computer program products for operating a data processing system in which a file system's unit of memory allocation is coordinated with a storage system's read/write operation unit | |
CN106598480B (en) | Electronic system and its operating method with Interface Controller mechanism | |
CN102929786A (en) | Volatile memory representation of nonvolatile storage device set | |
CN102375788A (en) | Dynamic allocation of power budget for a system having non-volatile memory | |
US20100125772A1 (en) | Error correcting controller, flash memory chip system, and error correcting method thereof | |
CN107665091B (en) | Data reading method, data writing method and storage controller thereof | |
CN108920276A (en) | Linux system memory allocation method, system and equipment and storage medium | |
US20090091978A1 (en) | Wear leveling method and controller using the same | |
CN109491606B (en) | Full flash memory space management method, system, equipment and computer medium | |
US11868246B2 (en) | Memory system and non-transitory computer readable recording medium | |
US8255656B2 (en) | Storage device, memory controller, and data protection method | |
US20130042028A1 (en) | Universal serial bus (usb) device and a usb system including the same | |
CN109002258A (en) | NameSpace distribution method, system and equipment and storage medium in solid state hard disk | |
CN109451098A (en) | FPGA accelerator card MAC Address configuration method, device and accelerator card | |
CN110647359A (en) | Semiconductor device, method of operating the same, and stacked memory device having the same | |
US8086834B2 (en) | System and method for populating a dedicated system service repository for an information handling system | |
US10620867B2 (en) | System and method for performing wear leveling at a non-volatile firmware memory | |
CN110032340A (en) | A kind of data in magnetic disk management method and relevant apparatus | |
CN109032859A (en) | A kind of NVME SSD logical block detection method, system and relevant apparatus | |
CN108959517B (en) | File management method and device and electronic equipment | |
CN110045929A (en) | A kind of mount point management method and relevant apparatus |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181214 |
|
RJ01 | Rejection of invention patent application after publication |