CN114691016A - Equipment capacity configuration method and device, terminal equipment and storage medium - Google Patents

Equipment capacity configuration method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN114691016A
CN114691016A CN202011604094.5A CN202011604094A CN114691016A CN 114691016 A CN114691016 A CN 114691016A CN 202011604094 A CN202011604094 A CN 202011604094A CN 114691016 A CN114691016 A CN 114691016A
Authority
CN
China
Prior art keywords
storage
planes
memory
blocks
pair
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
CN202011604094.5A
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.)
Shenzhen Longsys Electronics Co Ltd
Original Assignee
Shenzhen Longsys Electronics Co 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 Shenzhen Longsys Electronics Co Ltd filed Critical Shenzhen Longsys Electronics Co Ltd
Priority to CN202011604094.5A priority Critical patent/CN114691016A/en
Publication of CN114691016A publication Critical patent/CN114691016A/en
Pending legal-status Critical Current

Links

Images

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/0614Improving the reliability 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/064Management of blocks
    • 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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

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)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The application is applicable to the technical field of storage, and provides a device capacity configuration method, a device, a terminal device and a storage medium. In the embodiment of the application, storage blocks distributed on at least one pair of storage planes are detected, and a distribution result is determined; determining the positions of bad blocks on the at least one pair of storage planes according to the distribution result; determining the state of the memory blocks on the opposite memory planes of the at least one pair of memory planes according to the bad block positions on the at least one pair of memory planes; and according to the state of the storage blocks on the opposite storage planes, carrying out re-pairing on the storage blocks on the opposite storage planes by using a preset rule. Thereby improving the yield of the memory product.

Description

Equipment capacity configuration method and device, terminal equipment and storage medium
Technical Field
The present application belongs to the field of storage technologies, and in particular, to a device capacity configuration method, apparatus, terminal device, and storage medium.
Background
With the development of society, storage products are more and more common in life of people, for example, a Nand-Flash memory after leaving factory generally has bad blocks, and when the leaving factory bad blocks in the Nand-Flash memory exceed a certain proportion, the Nand-Flash memory will be reduced by a capacity level, or the Nand-Flash memory can only be used as a defective product, so that the yield of mass production of the storage products is low due to the existence of the bad blocks.
Disclosure of Invention
The embodiment of the application provides a device capacity configuration method and device, a terminal device and a storage medium, and can solve the problem of low yield of mass production of storage products.
In a first aspect, an embodiment of the present application provides an apparatus capacity configuration method, including:
detecting storage blocks distributed on at least one pair of storage planes, and determining a distribution result;
determining the positions of bad blocks on the at least one pair of storage planes according to the distribution result;
determining the state of the memory blocks on the opposite memory planes of the at least one pair of memory planes according to the bad block positions on the at least one pair of memory planes;
and according to the state of the storage blocks on the opposite storage planes, carrying out re-pairing on the storage blocks on the opposite storage planes by using a preset rule.
Optionally, the determining the location of the bad block on the at least one pair of storage planes according to the distribution result includes:
constructing an initial mapping table according to the distribution result;
determining a bad block location on the at least one pair of storage planes from the initial mapping table.
Optionally, the determining the state of the memory block on the opposite memory plane of the at least one pair of memory planes according to the location of the bad block on the at least one pair of memory planes includes:
determining the state of the storage block at the relative position of the second storage plane from the distribution result according to the position of the bad block on the first storage plane;
and determining the state of the storage block at the relative position of the first storage plane from the distribution result according to the position of the bad block on the second storage plane.
Optionally, the re-pairing the memory blocks on the opposite memory plane according to the state of the memory blocks on the opposite memory plane by using a preset rule includes:
and when the states of the storage blocks at the relative positions of the first storage plane and the second storage plane are both normal states, pairing the storage blocks at the relative positions of the first storage plane and the second storage plane according to a preset rule.
Optionally, the detecting the memory blocks distributed on at least one pair of memory planes and determining the distribution result includes:
detecting identification information of memory blocks on the at least one pair of memory planes;
determining a detection result of the storage block according to the identification information;
and arranging the detection results in a preset sequence to determine a distribution result.
Optionally, after the storage blocks on the opposite storage plane are re-paired according to the state of the storage blocks on the opposite storage plane by a preset rule, the method includes:
constructing a pairing table according to the pairing state of the newly paired storage blocks;
and when receiving the use request, controlling the re-paired storage blocks to perform corresponding operation according to the pairing table.
In a second aspect, an embodiment of the present application provides an apparatus for configuring device capacity, including:
the detection module is used for detecting the storage blocks distributed on at least one pair of storage planes and determining a distribution result;
a first determining position module, configured to determine a bad block position on the at least one pair of storage planes according to the distribution result;
a state determining module for determining the state of the memory blocks on the opposite memory planes of the at least one pair of memory planes according to the bad block positions on the at least one pair of memory planes;
and the re-pairing module is used for re-pairing the storage blocks on the opposite storage planes according to the states of the storage blocks on the opposite storage planes by preset rules.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the device capacity configuration methods when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of any one of the above-mentioned device capacity configuration methods.
In a fifth aspect, the present application provides a computer program product, which, when run on a terminal device, causes the terminal device to execute any one of the above-mentioned device capacity configuration methods in the first aspect.
In the embodiment of the application, storage blocks distributed on at least one pair of storage planes are detected, and a distribution result is determined; the bad block positions on the at least one pair of storage planes are determined according to the distribution result, so that how many bad blocks on each current storage plane can be determined, the storage blocks need to be used in pairs, the state of the storage block on the opposite storage plane of the at least one pair of storage planes is determined according to the bad block positions on the at least one pair of storage planes, the state of the storage block on the other storage plane used in pairs with the bad blocks can be obtained, and the storage blocks on the opposite storage planes are re-paired according to the state of the storage blocks on the opposite storage planes according to a preset rule, so that the storage blocks which cannot be used due to the bad blocks are re-paired, the utilization rate of the storage blocks is improved to the maximum extent, the capacity of storage products is improved, and the yield of the mass production of the storage products is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a method for configuring device capacity according to an embodiment of the present application;
fig. 2 is a second flowchart of a device capacity configuration method according to an embodiment of the present application;
fig. 3 is an initial mapping table of a device capacity configuration method according to an embodiment of the present application;
fig. 4 is a pairing table of a device capacity configuration method provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus capacity configuration device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Fig. 1 is a schematic flowchart of a device capacity configuration method in an embodiment of the present application, where an execution subject of the method may be a terminal device, and as shown in fig. 1, the device capacity configuration method may include the following steps:
step S101, detecting the storage blocks distributed on at least one pair of storage planes, and determining the distribution result.
When a bad Block exists on a certain storage plane (plane) of a storage product, a storage Block (Block) that needs to be used in pair with the bad Block at the relative position of another storage plane cannot be used, so in this embodiment, the storage blocks distributed on at least one pair of storage planes in the storage product need to be detected to determine the distribution result of each storage Block on each storage plane in the storage product, so that the terminal device can perform subsequent processing according to the distribution result on the storage planes. It will be appreciated that since the memory blocks on the memory planes are used in pairs, the number of individual memory blocks on at least one pair of memory planes in the memory product is uniform.
Optionally, as shown in fig. 2, step S101 includes:
step S201, detecting identification information of the storage blocks on the at least one pair of storage planes.
Step S202, determining the detection result of the storage block according to the identification information.
And S203, arranging the detection results in a preset sequence, and determining a distribution result.
In this embodiment, the identification information of the storage blocks on each storage plane in the storage product is detected by using a Flash algorithm, whether each storage block is normally usable or a bad block, that is, a detection result of the storage block, is determined according to the scanned presentation information, and then the detection results of the storage blocks are arranged according to a preset sequence, so as to determine a distribution result on the storage plane including each storage block, where the preset sequence may be a sequence in which the storage blocks are physically arranged on the storage plane.
And S102, determining the positions of the bad blocks on the at least one pair of storage planes according to the distribution result.
In this embodiment, the terminal device may determine the locations of the bad blocks on at least one pair of storage planes in the storage product according to the obtained distribution result, so that the locations that cannot be used on the current storage plane may be determined according to the locations of the bad blocks, so as to process the locations subsequently, and improve the capacity of the storage product.
Optionally, step S102 includes: constructing an initial mapping table according to the distribution result; determining a bad block location on the at least one pair of storage planes from the initial mapping table.
In this embodiment, an initial mapping table may be constructed according to the distribution result on the storage plane obtained through the above processing, as shown in fig. 3, and then the locations of the bad blocks on at least one pair of storage planes are determined by the initial mapping table, and the bad blocks are distinguished from the normally used storage blocks on the initial mapping table by different identifiers such as colors and characters, for example, as shown in fig. 3, taking Nand-Flash as an example, and the left column is the detection result of each Nand-Flash Block on the Nand-Flash plane0, and the total number is 10; the right column shows the detection results of the Nand-Flash blocks on the Nand-Flash plane1, the total number being 10. Wherein, P0_0003 and P0_0005 on the Nand-Flash plane0 are bad blocks; p1_0001, P1_0004 and P1_0007 on the Nand-Flash plane1 are bad blocks, and because the Nand-Flash memory product needs to execute a multiple plane operation based on performance considerations, that is, the Nand-Flash Block needs to be used in pairs, that is, the Nand-Flash plane0 and the Nand-Flash plane1 are used in combination, the number of the Nand-Flash Block pairs used in the memory product shown in FIG. 3 is 5, the usable ratio of the Nand-Flash Block pairs is only 50% of the Nand-Flash Block used, and the Nand-Flash Block usage rate is low.
Optionally, the initial mapping table may be displayed so as to be convenient for a relevant worker to observe.
Step S103, determining the state of the storage blocks on the opposite storage planes of the at least one pair of storage planes according to the positions of the bad blocks on the at least one pair of storage planes.
In this embodiment, the state of the storage block on the storage plane relative to the bad block is determined according to the determined positions of the bad blocks on at least one pair of storage planes, so as to determine whether the state of the storage block used in pair with the bad block is capable of being used normally or a bad block, so that the storage block which cannot be used normally due to the existence of the bad block is processed subsequently, and the storage block is reused.
Optionally, step S103 includes:
determining the state of the storage block at the relative position of the second storage plane from the distribution result according to the position of the bad block on the first storage plane;
and determining the state of the storage block at the relative position of the first storage plane from the distribution result according to the position of the bad block on the second storage plane.
In this embodiment, the pair of storage planes includes a first storage plane and a second storage plane, and the state of the storage block at the relative position of the second storage plane is determined from the obtained distribution result according to the location of the bad block on the first storage plane, or the state of the storage block at the relative position of the first storage plane is determined from the obtained distribution result according to the location of the bad block on the second storage plane. For example, the states of P1_0003 and P1_0005 on the corresponding Nand-Flash plane1 are determined according to the bad block distribution position of the Nand-Flash plane0 in FIG. 3, and it can be seen that both P1_0003 and P1_0005 can be used normally; the states of P0_0001, P0_0004 and P0_0007 on the corresponding Nand-Flash plane0 are determined according to the bad block distribution position of the Nand-Flash plane1, and P0_0001, P0_0004 and P0_0007 can be normally used as can be seen in the figure.
And step S104, carrying out pairing on the storage blocks on the opposite storage planes again according to the states of the storage blocks on the opposite storage planes by using a preset rule.
In this embodiment, the memory blocks on the opposite storage plane are re-paired according to the determined state of the memory blocks on the opposite storage plane according to a preset rule, that is, if the memory blocks on the opposite storage plane can be normally used, the memory blocks can be re-paired, so that the memory blocks which cannot be used due to the existence of the bad blocks can be re-used, thereby increasing the capacity of the memory and further achieving the purpose of increasing the yield of mass production of memory products. It is to be understood that if the memory block on the opposite memory plane is also a bad block, which indicates that the memory block on the opposite memory plane is also a memory block that cannot be used, the recoupling is not performed.
By way of specific example and not limitation, as can be seen from fig. 4 after the storage product is subjected to the re-pairing based on the bad Block distribution condition in fig. 3, the re-pairing of P0_0001, P0_0004 and P0_0007 on the Nand-Flash plane0 and the re-pairing of P1_0003 and P1_0005 on the Nand-Flash plane1 can promote the number of paired use of the Nand-Flash blocks of the storage product to be increased to 7, so that the usable ratio of the Nand-Flash blocks is only increased to 70%, the capacity of the storage product is greatly increased, and the yield of mass production is increased.
Optionally, the preset rule may be set according to a user requirement, for example, random pairing may be performed, pairing may be performed according to a physical arrangement distance of the storage blocks, or pairing may be performed based on other factors, which is not limited herein.
Optionally, correspondingly, step S104 includes:
and when the states of the storage blocks at the relative positions of the first storage plane and the second storage plane are both normal states, pairing the storage blocks at the relative positions of the first storage plane and the second storage plane according to a preset rule.
Optionally, after step S104, the method includes:
constructing a pairing table according to the pairing state of the newly paired storage blocks; and when receiving the use request, controlling the re-paired storage blocks to perform corresponding operation according to the pairing table.
In this embodiment, the terminal device constructs the pairing table according to the pairing state of the newly paired storage blocks, as shown in fig. 4, when receiving the usage request, the terminal device may randomly select the storage blocks paired with each other according to the pairing table to perform the corresponding operation according to the usage request, for example, when a group of data needs to be stored in the storage block pair, the terminal device may randomly select or select in a set order, determine the storage block pair in which the data is to be stored, and control the storage block pair to perform the storage operation.
In the embodiment of the application, storage blocks distributed on at least one pair of storage planes are detected, and a distribution result is determined; the bad block positions on the at least one pair of storage planes are determined according to the distribution result, so that how many bad blocks on each current storage plane can be determined, the storage blocks need to be used in pairs, the state of the storage block on the opposite storage plane of the at least one pair of storage planes is determined according to the bad block positions on the at least one pair of storage planes, the state of the storage block on the other storage plane used in pairs with the bad blocks can be obtained, and the storage blocks on the opposite storage planes are re-paired according to the state of the storage blocks on the opposite storage planes according to a preset rule, so that the storage blocks which cannot be used due to the bad blocks are re-paired, the utilization rate of the storage blocks is improved to the maximum extent, the capacity of storage products is improved, and the yield of the mass production of the storage products is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Corresponding to the above-mentioned method for configuring device capacity, fig. 5 is a schematic structural diagram of a device capacity configuration apparatus in an embodiment of the present application, and as shown in fig. 5, the device capacity configuration apparatus may include:
the detecting module 501 is configured to detect storage blocks distributed on at least one pair of storage planes, and determine a distribution result.
A location determining module 502, configured to determine a location of a bad block on the at least one pair of storage planes according to the distribution result.
A determine status module 503, configured to determine a status of a memory block on an opposite memory plane of the at least one pair of memory planes according to a location of the bad block on the at least one pair of memory planes.
A re-pairing module 504, configured to re-pair the memory blocks on the opposite memory plane according to the state of the memory blocks on the opposite memory plane by using a preset rule.
Optionally, the module 502 for determining a position may include:
and the construction unit is used for constructing an initial mapping table according to the distribution result.
And the position determining unit is used for determining the position of the bad block on the at least one pair of storage planes from the initial mapping table.
Optionally, the determining the status module 503 may include:
and the first state determining unit is used for determining the state of the storage block at the relative position of the second storage plane from the distribution result according to the position of the bad block on the first storage plane.
And the second state determining unit is used for determining the state of the storage block at the relative position of the first storage plane from the distribution result according to the position of the bad block on the second storage plane.
Optionally, the re-pairing module 504 may include:
and the pairing unit is used for pairing the storage block at the relative position of the first storage plane and the storage block at the relative position of the second storage plane according to a preset rule when the state of the storage block at the relative position of the first storage plane and the state of the storage block at the relative position of the second storage plane are both in a normal state.
Optionally, the detecting module 501 may include:
a detection unit, configured to detect identification information of the storage blocks on the at least one pair of storage planes.
And the determining result unit is used for determining the detection result of the storage block according to the identification information.
And the arrangement unit is used for arranging the detection results in a preset sequence and determining the distribution results.
Optionally, the device capacity configuration apparatus may further include:
and the construction module is used for constructing a pairing table according to the pairing state of the re-paired storage blocks.
And the control module is used for controlling the re-paired storage blocks to carry out corresponding operation according to the pairing table when receiving the use request.
In the embodiment of the application, storage blocks distributed on at least one pair of storage planes are detected, and a distribution result is determined; determining the positions of the bad blocks on the at least one pair of storage planes according to the distribution result, so that how many bad blocks on each current storage plane can not be used can be determined, the states of the storage blocks on the other storage plane which is used in pair with the bad blocks can be obtained by determining the states of the storage blocks on the opposite storage planes of the at least one pair of storage planes according to the positions of the bad blocks on the at least one pair of storage planes, and then the storage blocks on the opposite storage planes are re-paired according to the states of the storage blocks on the opposite storage planes according to a preset rule, so that the storage blocks which cannot be used due to the existence of the bad blocks are re-paired, the utilization rate of the storage blocks is improved to the maximum degree, the capacity of storage products is improved, and the yield of the storage products is improved.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and the module described above may refer to corresponding processes in the foregoing system embodiments and method embodiments, and are not described herein again.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. For convenience of explanation, only portions related to the embodiments of the present application are shown.
As shown in fig. 6, the terminal device 6 of this embodiment includes: at least one processor 600 (only one shown in fig. 6), a memory 601 connected to the processor 600, and a computer program 602, such as a device capability configuration program, stored in the memory 601 and executable on the at least one processor 600. The processor 600 executes the computer program 602 to implement the steps in the above-mentioned embodiments of the device capacity configuration method, such as the steps S101 to S104 shown in fig. 1. Alternatively, the processor 600 executes the computer program 602 to implement the functions of the modules in the device embodiments, such as the functions of the modules 501 to 504 shown in fig. 5.
Illustratively, the computer program 602 may be partitioned into one or more modules that are stored in the memory 601 and executed by the processor 600 to accomplish the present application. The one or more modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program 602 in the terminal device 6. For example, the computer program 602 may be divided into a detection module 501, a position determination module 502, a status determination module 503, and a re-pairing module 504, and the specific functions of each module are as follows:
a detection module 501, configured to detect storage blocks distributed on at least one pair of storage planes, and determine a distribution result;
a location determining module 502, configured to determine locations of bad blocks on the at least one pair of storage planes according to the distribution result;
a determine status module 503, configured to determine a status of a memory block on an opposite memory plane of the at least one pair of memory planes according to a location of a bad block on the at least one pair of memory planes;
a re-pairing module 504, configured to re-pair the memory blocks on the opposite memory plane according to the state of the memory blocks on the opposite memory plane by using a preset rule.
The terminal device 6 may include, but is not limited to, a processor 600, a memory 601. Those skilled in the art will appreciate that fig. 6 is merely an example of the terminal device 6, and does not constitute a limitation to the terminal device 6, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, a bus, etc.
The Processor 600 may be a Central Processing Unit (CPU), and the Processor 600 may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 601 may in some embodiments be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. The memory 601 may also be an external storage device of the terminal device 6 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the terminal device 6. Further, the memory 601 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 601 is used for storing an operating system, an application program, a Boot Loader (Boot Loader), data, and other programs, such as program codes of the computer programs. The memory 601 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described or recited in any embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above may be implemented by instructing relevant hardware by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the embodiments of the methods described above may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal device, recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunication signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for configuring device capabilities, comprising:
detecting storage blocks distributed on at least one pair of storage planes, and determining a distribution result;
determining the positions of bad blocks on the at least one pair of storage planes according to the distribution result;
determining the state of the memory blocks on the opposite memory planes of the at least one pair of memory planes according to the bad block positions on the at least one pair of memory planes;
and according to the state of the storage blocks on the opposite storage planes, carrying out re-pairing on the storage blocks on the opposite storage planes by using a preset rule.
2. The apparatus capacity configuration method according to claim 1, wherein the determining the location of the bad block on the at least one pair of storage planes according to the distribution result comprises:
constructing an initial mapping table according to the distribution result;
determining a bad block location on the at least one pair of storage planes from the initial mapping table.
3. The device capacity configuration method of claim 1, wherein said determining the status of memory blocks on opposite memory planes of the at least one pair of memory planes from bad block locations on the at least one pair of memory planes comprises:
determining the state of the storage block at the relative position of the second storage plane from the distribution result according to the position of the bad block on the first storage plane;
and determining the state of the storage block at the relative position of the first storage plane from the distribution result according to the position of the bad block on the second storage plane.
4. The device capacity configuration method according to claim 3, wherein the re-pairing the memory blocks on the opposite memory plane according to the state of the memory blocks on the opposite memory plane by a preset rule comprises:
and when the states of the storage blocks at the relative positions of the first storage plane and the second storage plane are both normal states, pairing the storage blocks at the relative positions of the first storage plane and the second storage plane according to a preset rule.
5. The apparatus capacity configuration method according to claim 1, wherein the detecting the memory blocks distributed on at least one pair of memory planes and determining the distribution result comprises:
detecting identification information of memory blocks on the at least one pair of memory planes;
determining a detection result of the storage block according to the identification information;
and arranging the detection results in a preset sequence to determine a distribution result.
6. The device capacity configuration method of claim 1, wherein after the storage blocks on the opposite storage plane are re-paired according to the state of the storage blocks on the opposite storage plane by a preset rule, the method comprises:
constructing a pairing table according to the pairing state of the newly paired storage blocks;
and when receiving the use request, controlling the re-paired storage blocks to perform corresponding operation according to the pairing table.
7. An apparatus for configuring device capacity, comprising:
the detection module is used for detecting the storage blocks distributed on at least one pair of storage planes and determining a distribution result;
a first determining position module, configured to determine a bad block position on the at least one pair of storage planes according to the distribution result;
a state determining module for determining the state of the memory blocks on the opposite memory planes of the at least one pair of memory planes according to the bad block positions on the at least one pair of memory planes;
and the re-pairing module is used for re-pairing the storage blocks on the opposite storage planes according to the states of the storage blocks on the opposite storage planes by preset rules.
8. The device capability configuration apparatus of claim 7, comprising:
the establishing module is used for establishing an initial mapping table according to the distribution result;
a second determining location module for determining a location of a bad block on the at least one pair of memory planes from the initial mapping table.
9. A terminal device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor, when executing said computer program, implements the steps of a device capability configuration method according to any of claims 1 to 6.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of a method for configuring the capacity of a device according to any one of claims 1 to 6.
CN202011604094.5A 2020-12-29 2020-12-29 Equipment capacity configuration method and device, terminal equipment and storage medium Pending CN114691016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011604094.5A CN114691016A (en) 2020-12-29 2020-12-29 Equipment capacity configuration method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011604094.5A CN114691016A (en) 2020-12-29 2020-12-29 Equipment capacity configuration method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114691016A true CN114691016A (en) 2022-07-01

Family

ID=82131691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011604094.5A Pending CN114691016A (en) 2020-12-29 2020-12-29 Equipment capacity configuration method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114691016A (en)

Similar Documents

Publication Publication Date Title
CN109600441B (en) Alliance link information publishing control method and terminal equipment
CN109814524B (en) Vehicle diagnosis method, device and system
CN112996020B (en) Bluetooth-based automatic test method and device and Bluetooth test terminal
CN112732982A (en) Fault code storage method and device, terminal equipment and readable storage medium
CN114691016A (en) Equipment capacity configuration method and device, terminal equipment and storage medium
CN111831350A (en) Application process configuration updating method, system, terminal device and storage medium
CN108763053B (en) Method for generating buried point name and terminal equipment
CN107731154B (en) LED display screen data backup device and method and terminal equipment
CN112187937B (en) Unpairing method and device, terminal equipment and storage medium
CN110704198A (en) Data operation method, device, storage medium and processor
CN113103903B (en) Method for switching sequencing modes of charging modules and terminal equipment
CN112788551B (en) Message processing method and device, terminal equipment and storage medium
CN112783971B (en) Transaction recording method, transaction query method, electronic device and storage medium
CN113873026A (en) Dynamic timeout response method, device, terminal equipment and storage medium
CN110213120B (en) Message middleware pressure measurement method and device and terminal equipment
CN112947955B (en) Architecture updating method and device of application program, electronic equipment and storage medium
CN110837450B (en) Test method and device of USB TYPE-C docking station, electronic equipment and storage medium
CN114418147A (en) Method and device for processing abnormity of main charging module, terminal and storage medium
CN109614246B (en) Message processing method and device and message processing server
CN113778482A (en) Dynamic updating method of running program, embedded controller and electronic equipment
CN113886302A (en) Serial port number obtaining method and device of application equipment, terminal equipment and storage medium
CN111475442A (en) Multi-serial port extension circuit, multi-serial port upgrading method and multi-serial port television board card
CN112216333A (en) Chip testing method and device
CN109597813B (en) Vehicle data processing method and device
CN113792014B (en) Nuclear power station file management method and device, terminal equipment and storage medium

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