CN116931811A - Data processing methods, devices and storage media - Google Patents
Data processing methods, devices and storage media Download PDFInfo
- Publication number
- CN116931811A CN116931811A CN202210331932.9A CN202210331932A CN116931811A CN 116931811 A CN116931811 A CN 116931811A CN 202210331932 A CN202210331932 A CN 202210331932A CN 116931811 A CN116931811 A CN 116931811A
- Authority
- CN
- China
- Prior art keywords
- data
- processed
- storage unit
- priority
- memory chip
- 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 OR CALCULATING; 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/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-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)
- Read Only Memory (AREA)
Abstract
Description
技术领域Technical field
本公开涉及数据存储技术,尤其涉及一种数据处理方法、装置及存储介质。The present disclosure relates to data storage technology, and in particular, to a data processing method, device and storage medium.
背景技术Background technique
随着计算机闪存芯片(如,Nand芯片)的存储容量越来越大,为了使得电子设备具有更大的存储空间,会将闪存芯片应用于电子设备中。As the storage capacity of computer flash memory chips (such as Nand chips) becomes larger and larger, in order to make electronic devices have larger storage space, flash memory chips will be used in electronic devices.
在电子设备运行的过程中,会产生业务数据,一般情况下,会将业务数据存储至电子设备的物理内存,在电子设备的物理内存被占满的情况下,会将物理内存中的部分数据清除,或者通过交换(SWAP)技术交换到电子设备的闪存芯片中。During the operation of an electronic device, business data will be generated. Generally, the business data will be stored in the physical memory of the electronic device. When the physical memory of the electronic device is full, part of the data in the physical memory will be stored. Cleared, or swapped into the flash memory chip of the electronic device through swap (SWAP) technology.
但是,闪存芯片会直接将交换数据存储至默认的存储单元,但该默认的存储单元的数据读写速度与该交换数据并不匹配,会影响交换数据的读写效率,且针对默认的存储单元频繁执行擦写操作,会影响该默认存储单元的使用寿命。However, the flash memory chip will directly store the exchange data into the default storage unit, but the data reading and writing speed of the default storage unit does not match the exchange data, which will affect the reading and writing efficiency of the exchange data, and for the default storage unit Frequent erase and write operations will affect the service life of the default storage unit.
发明内容Contents of the invention
本公开提供一种数据处理方法、装置及存储介质。The present disclosure provides a data processing method, device and storage medium.
根据本公开实施例的第一方面,提供一种数据处理方法,包括:According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, including:
在第一存储芯片接收到待处理数据的情况下,确定所述待处理数据的优先级;When the first memory chip receives the data to be processed, determine the priority of the data to be processed;
从所述第一存储芯片所具有的至少两个存储单元中,确定与所述优先级对应的目标存储单元;其中,各个所述存储单元具有对应的数据读写速度;Determine a target storage unit corresponding to the priority level from at least two storage units of the first memory chip; wherein each of the storage units has a corresponding data reading and writing speed;
将所述待处理数据写入所述目标存储单元。Write the data to be processed into the target storage unit.
可选的,所述从所述第一存储芯片所具有的至少两个存储单元中,确定与所述优先级对应的目标存储单元,包括:Optionally, determining a target storage unit corresponding to the priority level from at least two storage units of the first memory chip includes:
在所述待处理数据的优先级满足预设优先级条件的情况下,将所述至少两个存储单元中,数据读写速度最高的存储单元确定为所述目标存储单元。When the priority of the data to be processed satisfies the preset priority condition, the storage unit with the highest data reading and writing speed among the at least two storage units is determined as the target storage unit.
可选的,所述方法还包括:Optionally, the method also includes:
获取所述待处理数据的数据标识;Obtain the data identifier of the data to be processed;
在所述数据标识指示所述待处理数据为从第二存储芯片中读出的数据的情况下,确定所述待处理数据的优先级满足所述预设优先级条件。When the data identification indicates that the data to be processed is data read from the second memory chip, it is determined that the priority of the data to be processed satisfies the preset priority condition.
可选的,所述将所述至少两个存储单元中,数据读写速度最高的存储单元确定为所述目标存储单元,包括:Optionally, determining the storage unit with the highest data reading and writing speed among the at least two storage units as the target storage unit includes:
确定所述数据读写速度最高的存储单元的存储余量是否大于所述待处理数据的数据量;Determine whether the storage margin of the storage unit with the highest data reading and writing speed is greater than the data amount of the data to be processed;
在所述存储余量大于所述待处理数据的数据量的情况下,将所述数据读写速度最高的存储单元确定为所述目标存储单元。When the storage margin is greater than the data amount of the data to be processed, the storage unit with the highest data reading and writing speed is determined as the target storage unit.
可选的,所述方法还包括:Optionally, the method also includes:
在第二存储芯片中的数据量大于预设数据阈值的情况下,从已存储至所述第二存储芯片的数据中,确定所述待处理数据;When the amount of data in the second memory chip is greater than the preset data threshold, determine the data to be processed from the data that has been stored in the second memory chip;
在将所述待处理数据读出所述第二存储芯片时,生成对应于所述待处理数据的数据标识;When the data to be processed is read out of the second memory chip, a data identifier corresponding to the data to be processed is generated;
将携带所述数据标识的所述待处理数据传输至所述第一存储芯片。The data to be processed carrying the data identifier is transmitted to the first memory chip.
可选的,所述至少两个存储单元,包括:第一SLC存储单元、第二SLC存储单元以及TLC存储单元;Optionally, the at least two storage units include: a first SLC storage unit, a second SLC storage unit and a TLC storage unit;
其中,所述第一SLC存储单元的数据读写速度等于所述第二SLC存储单元的数据读写速度,且所述第一SLC存储单元和所述第二SLC存储单元的数据读写速度大于所述TLC存储单元的数据读写速度。Wherein, the data reading and writing speed of the first SLC storage unit is equal to the data reading and writing speed of the second SLC storage unit, and the data reading and writing speeds of the first SLC storage unit and the second SLC storage unit are greater than The data reading and writing speed of the TLC storage unit.
根据本公开实施例的第二方面,提供一种数据处理装置,包括:According to a second aspect of the embodiment of the present disclosure, a data processing device is provided, including:
第一确定模块,配置为在第一存储芯片接收到待处理数据的情况下,确定所述待处理数据的优先级;A first determination module configured to determine the priority of the data to be processed when the first memory chip receives the data to be processed;
第二确定模块,配置为从所述第一存储芯片所具有的至少两个存储单元中,确定与所述优先级对应的目标存储单元;其中,各个所述存储单元具有对应的数据读写速度;The second determination module is configured to determine the target storage unit corresponding to the priority level from at least two storage units of the first memory chip; wherein each of the storage units has a corresponding data reading and writing speed. ;
写入模块,配置为将所述待处理数据写入所述目标存储单元。A writing module configured to write the data to be processed into the target storage unit.
可选的,所述第二确定模块,配置为:Optionally, the second determination module is configured as:
在所述待处理数据的优先级满足预设优先级条件的情况下,将所述至少两个存储单元中,数据读写速度最高的存储单元确定为所述目标存储单元。When the priority of the data to be processed satisfies the preset priority condition, the storage unit with the highest data reading and writing speed among the at least two storage units is determined as the target storage unit.
可选的,所述装置还包括:Optionally, the device also includes:
获取模块,配置为获取所述待处理数据的数据标识;An acquisition module configured to acquire the data identifier of the data to be processed;
第三确定模块,配置为在所述数据标识指示所述待处理数据为从第二存储芯片中读出的数据的情况下,确定所述待处理数据的优先级满足所述预设优先级条件。A third determination module configured to determine that the priority of the data to be processed satisfies the preset priority condition when the data identifier indicates that the data to be processed is data read from the second memory chip. .
可选的,所述第二确定模块,配置为:Optionally, the second determination module is configured as:
确定所述数据读写速度最高的存储单元的存储余量是否大于所述待处理数据的数据量;Determine whether the storage margin of the storage unit with the highest data reading and writing speed is greater than the data amount of the data to be processed;
在所述存储余量大于所述待处理数据的数据量的情况下,将所述数据读写速度最高的存储单元确定为所述目标存储单元。When the storage margin is greater than the data amount of the data to be processed, the storage unit with the highest data reading and writing speed is determined as the target storage unit.
可选的,所述装置还包括:Optionally, the device also includes:
第四确定模块,配置为在第二存储芯片中的数据量大于预设数据阈值的情况下,从已存储至所述第二存储芯片的数据中,确定所述待处理数据;A fourth determination module configured to determine the data to be processed from the data that has been stored in the second memory chip when the amount of data in the second memory chip is greater than the preset data threshold;
生成模块,配置为在将所述待处理数据读出所述第二存储芯片时,生成对应于所述待处理数据的数据标识;A generation module configured to generate a data identifier corresponding to the data to be processed when the data to be processed is read out of the second memory chip;
传输模块,配置为将携带所述数据标识的所述待处理数据传输至所述第一存储芯片。A transmission module configured to transmit the data to be processed carrying the data identifier to the first memory chip.
可选的,所述至少两个存储单元,包括:第一SLC存储单元、第二SLC存储单元以及TLC存储单元;Optionally, the at least two storage units include: a first SLC storage unit, a second SLC storage unit and a TLC storage unit;
其中,所述第一SLC存储单元的数据读写速度等于所述第二SLC存储单元的数据读写速度,且所述第一SLC存储单元和所述第二SLC存储单元的数据读写速度大于所述TLC存储单元的数据读写速度。Wherein, the data reading and writing speed of the first SLC storage unit is equal to the data reading and writing speed of the second SLC storage unit, and the data reading and writing speeds of the first SLC storage unit and the second SLC storage unit are greater than The data reading and writing speed of the TLC storage unit.
根据本公开实施例的第三方面,提供一种数据处理装置,包括:According to a third aspect of the embodiment of the present disclosure, a data processing device is provided, including:
处理器;processor;
配置为存储处理器可执行指令的存储器;Memory configured to store instructions executable by the processor;
其中,所述处理器配置为:执行时实现上述第一方面中任一种数据处理方法中的步骤。Wherein, the processor is configured to: when executed, implement the steps in any one of the data processing methods in the above first aspect.
根据本公开实施例的第四方面,提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由数据处理装置的处理器执行时,使得所述装置能够执行上述第一方面中任一种数据处理方法中的步骤。According to a fourth aspect of an embodiment of the present disclosure, a non-transitory computer-readable storage medium is provided, which when instructions in the storage medium are executed by a processor of a data processing device, enables the device to perform the above first aspect steps in any of the data processing methods.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
本公开中的技术方案,在第一存储芯片接收到待处理数据之后,可以确定待处理数据的优先级,并从该第一存储芯片所具有的至少两个存储单元中,确定与该优先级对应的目标存储单元,并将该待处理数据存储至该目标存储单元。According to the technical solution of the present disclosure, after the first memory chip receives the data to be processed, it can determine the priority of the data to be processed, and determine the priority level from at least two memory units of the first memory chip. The corresponding target storage unit, and stores the data to be processed in the target storage unit.
通过在第一存储芯片中,针对不同优先级的数据,设置具有具有对应数据读写速度的存储单元。在使用的过程中,能够先对待处理数据进行优先级判断,并确定与该优先级对应的存储单元,能够使得确定出的目标存储单元的数据读写速度与待处理数据的优先级相匹配,进而提高数据的读写效率。且,相较于相关技术中将所有的数据均存储至默认的存储单元,能够将具有不同优先级的数据写入不同的存储单元,能够降低频繁对某个存储单元进行擦除的概率,进而提高各个存储单元的使用寿命,进而提高第一存储芯片的整体使用寿命。By arranging storage units with corresponding data reading and writing speeds in the first memory chip for data of different priorities. In the process of use, the priority of the data to be processed can be judged first, and the storage unit corresponding to the priority can be determined, so that the data reading and writing speed of the determined target storage unit can match the priority of the data to be processed. This improves data reading and writing efficiency. Moreover, compared with the related technology where all data is stored in the default storage unit, data with different priorities can be written into different storage units, which can reduce the probability of frequently erasing a certain storage unit, thereby reducing the probability of frequent erasure of a certain storage unit. The service life of each memory unit is improved, thereby improving the overall service life of the first memory chip.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的数据处理方法的流程图。FIG. 1 is a flowchart of a data processing method according to an exemplary embodiment.
图2是根据一示例性实施例示出的第二存储芯片的数据存储示意图。FIG. 2 is a schematic diagram of data storage of a second memory chip according to an exemplary embodiment.
图3是根据一示例性实施例示出的第一存储芯片的示意图。FIG. 3 is a schematic diagram of a first memory chip according to an exemplary embodiment.
图4是根据一示例性实施例示出的进行数据处理的架构示意图。FIG. 4 is a schematic diagram of an architecture for data processing according to an exemplary embodiment.
图5是根据一示例性实施例示出的数据处理装置框图。Figure 5 is a block diagram of a data processing device according to an exemplary embodiment.
图6是根据一示例性实施例示出的数据处理装置的硬件结构框图一。Figure 6 is a hardware structure block diagram 1 of a data processing device according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种数据处理装置的硬件结构框图二。Figure 7 is a second hardware structure block diagram of a data processing device according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with aspects of the disclosure as detailed in the appended claims.
图1是根据一示例性实施例示出的数据处理方法的流程图,如图1所示,该数据处理方法包括以下步骤:Figure 1 is a flow chart of a data processing method according to an exemplary embodiment. As shown in Figure 1, the data processing method includes the following steps:
在步骤101中,在第一存储芯片接收到待处理数据的情况下,确定所述待处理数据的优先级;In step 101, when the first memory chip receives the data to be processed, determine the priority of the data to be processed;
在步骤102中,从所述第一存储芯片所具有的至少两个存储单元中,确定与所述优先级对应的目标存储单元;其中,各个所述存储单元具有对应的数据读写速度;In step 102, determine a target storage unit corresponding to the priority level from at least two storage units of the first memory chip; wherein each of the storage units has a corresponding data reading and writing speed;
在步骤103中,将所述待处理数据写入所述目标存储单元。In step 103, the data to be processed is written into the target storage unit.
需要说明的是,本公开提出的数据处理方法可以应用于电子设备,也可以应用于网络服务器,这里,电子设备可以包括:终端设备,例如,移动终端或者固定终端。其中,移动终端可以包括:手机、平板电脑、笔记本电脑等设备。固定终端可以包括:台式电脑或智能电视等。It should be noted that the data processing method proposed in this disclosure can be applied to electronic devices or network servers. Here, the electronic devices can include: terminal devices, such as mobile terminals or fixed terminals. Among them, mobile terminals can include: mobile phones, tablets, laptops and other devices. Fixed terminals can include: desktop computers or smart TVs, etc.
这里,第一存储芯片可以为电子设备中可以用于进行数据存储的存储设备。在一些实施例中,第一存储芯片可以包括:闪存芯片(Nand芯片)。如,该第一存储芯片可以包括:通用闪存存储(Universal Flash Storage,UFS)芯片。Here, the first memory chip may be a storage device that can be used for data storage in the electronic device. In some embodiments, the first memory chip may include: a flash memory chip (Nand chip). For example, the first memory chip may include a universal flash storage (Universal Flash Storage, UFS) chip.
第一存储芯片所接收到的待处理数据可以包括:从电子设备中其它存储芯片交换至第一存储芯片的数据;或者,电子设备中的应用运行时产生的数据等。The data to be processed received by the first memory chip may include: data exchanged from other memory chips in the electronic device to the first memory chip; or data generated when an application in the electronic device is running, etc.
在一些实施例中,可以根据待处理数据的重要程度,确定待处理数据的优先级;或者根据待处理数据对数据读写速度的需求,确定待处理数据的优先级;或者根据待处理数据的类型,确定待处理数据的优先级;或者根据待处理数据的来源,确定待处理数据的优先级。In some embodiments, the priority of the data to be processed may be determined based on the importance of the data to be processed; or the priority of the data to be processed may be determined based on the data reading and writing speed requirements of the data to be processed; or the priority of the data to be processed may be determined based on the Type, determine the priority of the data to be processed; or determine the priority of the data to be processed based on the source of the data to be processed.
以根据待处理数据的重要程度,确定待处理数据的优先级为例,在第一存储芯片接收到待处理数据之后,可以根据待处理数据的数据内容,确定待处理数据的重要程度,然后根据待处理数据的重要程度和第一映射关系,确定待处理数据的优先级。其中,第一映射关系可以用于表征数据的重要程度和优先级之间的关联关系,可以预先设定,如,预先通过实验的方式设定,或者预先通过人工的方式设定等。Taking the priority of the data to be processed based on the importance of the data to be processed as an example, after the first memory chip receives the data to be processed, the importance of the data to be processed can be determined based on the data content of the data to be processed, and then based on The importance of the data to be processed and the first mapping relationship determine the priority of the data to be processed. The first mapping relationship can be used to represent the correlation between the importance and priority of the data, and can be set in advance, for example, through experiments or manually.
在一些实施例中,待处理数据的优先级可以和待处理数据的重要程度正相关。可以理解为,待处理数据的优先级越高,表明该待处理数据的重要程度越高;待处理数据的优先级越低,表明该待处理数据的重要程度越低。这里,待处理数据的重要程度可以根据需要设置,在此不作具体限定。In some embodiments, the priority of the data to be processed may be positively related to the importance of the data to be processed. It can be understood that the higher the priority of the data to be processed, the higher the importance of the data to be processed; the lower the priority of the data to be processed, the lower the importance of the data to be processed. Here, the importance of the data to be processed can be set as needed, and is not specifically limited here.
以根据待处理数据对数据读写速度的需求,确定待处理数据的优先级为例,在第一存储芯片接收到待处理数据之后,可以根据待处理数据的数据内容,确定待处理数据对数据读写速度的需求,然后根据待处理数据对数据读写速度的需求和第二映射关系,确定待处理数据的优先级。其中,第二映射关系可以用于表征数据对数据读写速度的需求和优先级之间的关联关系,可以预先设定,如,预先通过实验的方式设定,或者预先通过人工的方式设定等。Taking the priority of the data to be processed based on the data reading and writing speed requirements of the data to be processed as an example, after the first memory chip receives the data to be processed, the data to be processed can be determined according to the data content of the data to be processed. The read and write speed requirements, and then determine the priority of the data to be processed based on the data read and write speed requirements of the data to be processed and the second mapping relationship. Among them, the second mapping relationship can be used to represent the correlation between the data's demand for data reading and writing speed and the priority, and can be preset, for example, preset through experiments or preset manually. wait.
在一些实施例中,待处理数据的优先级可以和待处理数据对数据读写速度的需求正相关。可以理解为,待处理数据的优先级越高,表明该待处理数据对数据读写速度的需求越高;待处理数据的优先级越低,表明该待处理数据对数据读写速度的需求越低。In some embodiments, the priority of the data to be processed may be positively related to the data reading and writing speed requirements of the data to be processed. It can be understood that the higher the priority of the data to be processed, the higher the demand for the data reading and writing speed of the data to be processed; the lower the priority of the data to be processed, the higher the demand for the data reading and writing speed of the data to be processed. Low.
以上是确定待处理数据的优先级的部分列举说明,在其他可选的实施例中,还可以通过其他方式确定待处理数据的优先级,在此不作具体限定。The above is a partial enumeration and description of determining the priority of data to be processed. In other optional embodiments, the priority of data to be processed can also be determined in other ways, which is not specifically limited here.
本公开实施例中,第一存储芯片可以包括至少两个存储单元,且各个存储单元具有对应的数据读写速度。通过设置多个数据读写速度不同的存储单元,能够为待处理数据的存储提供更多选择,提高待处理数据的读写的灵活性。In the embodiment of the present disclosure, the first memory chip may include at least two memory units, and each memory unit has a corresponding data reading and writing speed. By setting up multiple storage units with different data reading and writing speeds, it can provide more options for storing data to be processed and improve the flexibility of reading and writing data to be processed.
本公开实施例中,在确定出待处理数据的优先级之后,可以从第一存储芯片所具有的至少两个存储单元中,确定与优先级对应的目标存储单元。In the embodiment of the present disclosure, after determining the priority of the data to be processed, a target storage unit corresponding to the priority may be determined from at least two storage units included in the first memory chip.
在一些实施例中,可以预先设置各个优先级与存储单元之间的映射关系,即第三映射关系。在确定出待处理数据的优先级之后,可以根据待处理数据的优先级和第三映射关系,确定与该优先级对应的目标存储单元。In some embodiments, the mapping relationship between each priority and the storage unit may be preset, that is, the third mapping relationship. After the priority of the data to be processed is determined, the target storage unit corresponding to the priority may be determined according to the priority of the data to be processed and the third mapping relationship.
在一些实施例中,该存储单元的数量和待处理数据的优先级的数量可以对应。例如,存储单元的数量和待处理数据的优先级的数量可以相同,假设可以将待处理数据分为10个优先级,则可以对应设置10个存储单元。再例如,存储单元的数量可以小于待处理数据的优先级的数量,假设可以将待处理数据分为10个优先级,则可以对应设置3个存储单元,第1至4个级别的待处理数据可以存储至第一存储单元,第5至7个级别的待处理数据可以存储至第二存储单元,第8至10个级别的待处理数据可以存储至第三存储单元。In some embodiments, the number of storage units may correspond to the number of priorities of the data to be processed. For example, the number of storage units and the number of priorities of the data to be processed can be the same. Assuming that the data to be processed can be divided into 10 priority levels, 10 storage units can be set accordingly. For another example, the number of storage units can be smaller than the number of priorities of the data to be processed. Assuming that the data to be processed can be divided into 10 priority levels, 3 storage units can be set correspondingly for the 1st to 4th levels of data to be processed. The data to be processed at the 5th to 7th levels can be stored in the second storage unit, and the data to be processed at the 8th to 10th levels can be stored in the third storage unit.
本公开中的技术方案,在第一存储芯片接收到待处理数据之后,可以确定待处理数据的优先级,并从该第一存储芯片所具有的至少两个存储单元中,确定与该优先级对应的目标存储单元,并将该待处理数据存储至该目标存储单元。According to the technical solution of the present disclosure, after the first memory chip receives the data to be processed, it can determine the priority of the data to be processed, and determine the priority level from at least two memory units of the first memory chip. The corresponding target storage unit, and stores the data to be processed in the target storage unit.
通过在第一存储芯片中,针对不同优先级的数据,设置具有对应数据读写速度的存储单元。在使用的过程中,能够先对待处理数据进行优先级判断,并确定与该优先级对应的存储单元,能够使得确定出的目标存储单元的数据读写速度与待处理数据的优先级相匹配,进而提高数据的读写效率。且,相较于相关技术中将所有的数据均存储至默认的存储单元,能够将具有不同优先级的数据写入不同的存储单元,能够降低频繁对某个存储单元进行擦除的概率,进而提高各个存储单元的使用寿命,进而提高第一存储芯片的整体使用寿命。By setting storage units with corresponding data reading and writing speeds in the first memory chip for data of different priorities. In the process of use, the priority of the data to be processed can be judged first, and the storage unit corresponding to the priority can be determined, so that the data reading and writing speed of the determined target storage unit can match the priority of the data to be processed. This improves data reading and writing efficiency. Moreover, compared with the related technology where all data is stored in the default storage unit, data with different priorities can be written into different storage units, which can reduce the probability of frequently erasing a certain storage unit, thereby reducing the probability of frequent erasure of a certain storage unit. The service life of each memory unit is improved, thereby improving the overall service life of the first memory chip.
在一些实施例中,所述至少两个存储单元,可以包括:第一单层存储单元(Single-Level Multi-Level Cell,SLC)、第二SLC存储单元以及三层存储单元(Triple-LevelCell,TLC);In some embodiments, the at least two storage units may include: a first single-level storage unit (Single-Level Multi-Level Cell, SLC), a second SLC storage unit, and a triple-level storage unit (Triple-Level Cell, TLC);
其中,所述第一SLC存储单元的数据读写速度等于所述第二SLC存储单元的数据读写速度,且所述第一SLC存储单元和所述第二SLC存储单元的数据读写速度大于所述TLC存储单元的数据读写速度。Wherein, the data reading and writing speed of the first SLC storage unit is equal to the data reading and writing speed of the second SLC storage unit, and the data reading and writing speeds of the first SLC storage unit and the second SLC storage unit are greater than The data reading and writing speed of the TLC storage unit.
当然,在另一些实施例中,该至少两个存储单元还可以包括:多层存储单元(Multi-Level Cell,MLC)。其中MLC存储单元的数据读写速度大于TLC存储单元的数据读写速度,且小于第二SLC存储单元的数据读写速度。Of course, in other embodiments, the at least two storage units may also include: multi-level storage cells (Multi-Level Cell, MLC). The data reading and writing speed of the MLC storage unit is greater than the data reading and writing speed of the TLC storage unit, and is smaller than the data reading and writing speed of the second SLC storage unit.
在一些实施例中,以第一存储芯片包括第二SLC存储单元(Common SLC buffer)和TLC存储单元为例,在电子设备发起进行数据交换(SWAP)的请求时,会将待处理数据转移至第一存储芯片,这时,可以先确定第二SLC存储单元是否还有剩余空间,如果第二SLC存储单元还有剩余空间,会先将待处理数据写入第二SLC存储单元。In some embodiments, taking the first memory chip including a second SLC storage unit (Common SLC buffer) and a TLC storage unit as an example, when the electronic device initiates a data exchange (SWAP) request, the data to be processed will be transferred to The first memory chip, at this time, can first determine whether there is remaining space in the second SLC storage unit. If there is remaining space in the second SLC storage unit, it will first write the data to be processed into the second SLC storage unit.
其中,待处理数据可以为:需要交换的数据,也可以称为SWAP数据或者交换数据,或者常规数据。其中,交换数据用于与常规数据进行区分,交换数据可以为基于交换请求得到的数据,这里,交换请求用于指示将一个存储芯片中的数据交换至另一存储芯片,常规数据则可以为基于电子设备中的应用程序运行产生的数据。其中,SWAP数据的优先级高于常规数据的优先级。Among them, the data to be processed can be: data that needs to be exchanged, which can also be called SWAP data or exchange data, or regular data. The exchange data is used to distinguish it from regular data. The exchange data can be data obtained based on an exchange request. Here, the exchange request is used to instruct the exchange of data in one memory chip to another memory chip. The regular data can be based on Data generated by the operation of applications in electronic devices. Among them, the priority of SWAP data is higher than that of regular data.
在一些实施例中,为了保证第二SLC存储单元的正常使用,保持第一存储芯片(如,UFS芯片)良好的读写性能,第一存储芯片内部的控制器会将第二SLC存储单元中的所有数据(包括:普通数据和SWAP数据)均转移至TLC存储单元,或者在第二SLC存储单元的剩余空间不足的情况下,直接将所有的数据写入TLC存储单元。如果频繁将第二SLC存储单元中的数据写入TLC存储单元,或者直接将所有的数据写入TLC存储单元,会导致频繁擦写TLC存储单元,加速TLC存储单元的磨损,进而导致整个第一存储芯片的磨损,影响第一存储芯片的使用寿命。In some embodiments, in order to ensure the normal use of the second SLC storage unit and maintain good read and write performance of the first memory chip (eg, UFS chip), the controller inside the first memory chip will All data (including normal data and SWAP data) are transferred to the TLC storage unit, or if the remaining space of the second SLC storage unit is insufficient, all data is directly written to the TLC storage unit. If the data in the second SLC storage unit is frequently written into the TLC storage unit, or all data is directly written into the TLC storage unit, it will lead to frequent erasing and writing of the TLC storage unit, accelerating the wear and tear of the TLC storage unit, and thus causing the entire first The wear and tear of the memory chip affects the service life of the first memory chip.
由于SLC存储单元的平均擦写寿命大于TLC存储单元的平均擦写寿命,如,SLC存储单元的平均擦写寿命可以为TLC存储单元的平均擦写寿命的100倍,且SLC存储单元的数据读写速度大于TLC存储单元的数据读写速度。Since the average erase and write life of SLC memory cells is greater than the average erase and write life of TLC memory cells, for example, the average erase and write life of SLC memory cells can be 100 times the average erase and write life of TLC memory cells, and the data reading of SLC memory cells The writing speed is greater than the data reading and writing speed of TLC memory cells.
在一些实施例中,在第一存储芯片中具有第二SLC存储单元和TLC存储单元的情况下,可以根据待处理数据的优先级,将具有不同优先级的待处理数据分别写入第二SLC存储单元和TLC存储单元。如,在待处理数据为SWAP数据时,表示待处理数据的优先级较高,这时,可以将该待处理数据写入第二SLC存储单元;在待处理数据为常规数据时,表示待处理数据的优先级较低,这时,可以将该待处理数据写入TLC存储单元。In some embodiments, when there is a second SLC storage unit and a TLC storage unit in the first memory chip, the data to be processed with different priorities can be written to the second SLC respectively according to the priority of the data to be processed. memory cells and TLC memory cells. For example, when the data to be processed is SWAP data, it means that the priority of the data to be processed is higher. At this time, the data to be processed can be written into the second SLC storage unit; when the data to be processed is regular data, it means that it is to be processed. The data has a lower priority. At this time, the data to be processed can be written into the TLC storage unit.
在另一些实施例中,在第一存储芯片中具有第一SLC存储单元、第二SLC存储单元和TLC存储单元的情况下,可以根据待处理数据的优先级,将具有不同优先级的待处理数据分别写入第一SLC存储单元、第二SLC存储单元和TLC存储单元。如,在待处理数据为SWAP数据时,表示待处理数据的优先级较高,这时,可以将该待处理数据写入第一SLC存储单元;在待处理数据为常规数据时,表示待处理数据的优先级较低,这时,可以将该待处理数据写入第二SLC存储单元或者TLC存储单元。In other embodiments, when the first memory chip has a first SLC storage unit, a second SLC storage unit and a TLC storage unit, the data to be processed with different priorities can be Data is written into the first SLC storage unit, the second SLC storage unit and the TLC storage unit respectively. For example, when the data to be processed is SWAP data, it means that the priority of the data to be processed is higher. At this time, the data to be processed can be written into the first SLC storage unit; when the data to be processed is regular data, it means that it is to be processed. The data has a lower priority. At this time, the data to be processed can be written into the second SLC storage unit or TLC storage unit.
本公开实施例中,能够优先将应用程序需要交换的数据写入特定的存储单元(第一SLC存储单元,也可以称为SWAP SLC)中,在会经常使用到SWAP技术的场景下,会有助于第一存储芯片的磨损均衡,进而延长第一存储芯片的整体使用寿命。In the embodiment of the present disclosure, the data that needs to be exchanged by the application program can be written into a specific storage unit (the first SLC storage unit, which may also be called SWAP SLC) first. In scenarios where SWAP technology is often used, there will be It helps to balance the wear of the first memory chip, thereby extending the overall service life of the first memory chip.
在一些实施例中,所述从所述第一存储芯片所具有的至少两个存储单元中,确定与所述优先级对应的目标存储单元,包括:In some embodiments, determining a target storage unit corresponding to the priority level from at least two storage units of the first memory chip includes:
在所述待处理数据的优先级满足预设优先级条件的情况下,将所述至少两个存储单元中,数据读写速度最高的存储单元确定为所述目标存储单元。When the priority of the data to be processed satisfies the preset priority condition, the storage unit with the highest data reading and writing speed among the at least two storage units is determined as the target storage unit.
这里,所述待处理数据的优先级满足预设优先级条件,包括:待处理数据的优先级大于或者等于优先级阈值。这里,优先级阈值可以为根据需要设定的级别值,可以通过实验的当时设定,或者根据人工的方式设定。Here, the priority of the data to be processed satisfies a preset priority condition, including: the priority of the data to be processed is greater than or equal to a priority threshold. Here, the priority threshold can be a level value set as needed, which can be set at the time of the experiment or set manually.
在实现的过程中,可以将待处理数据的优先级与优先级阈值进行比较,在比较结果表征待处理数据的优先级大于优先级阈值时,表明待处理数据的优先级满足预设优先级条件,这时,可以将数据读写速度最高的存储单元确定为目标存储单元。During the implementation process, the priority of the data to be processed can be compared with the priority threshold. When the comparison result indicates that the priority of the data to be processed is greater than the priority threshold, it indicates that the priority of the data to be processed meets the preset priority conditions. , at this time, the storage unit with the highest data reading and writing speed can be determined as the target storage unit.
在一些实施例中,至少两个存储单元可以包括,第一存储单元、第二存储单元和第三存储单元,其中,第一存储单元的数据读写速度大于第二存储单元,第二存储单元的数据读写速度大于第三存储单元。In some embodiments, at least two storage units may include a first storage unit, a second storage unit and a third storage unit, wherein the data reading and writing speed of the first storage unit is greater than that of the second storage unit, and the second storage unit The data reading and writing speed is greater than that of the third storage unit.
如果确定出的待处理数据的优先级为第一级别,优先级阈值为第三级别,则确定待处理数据的优先级大于优先级阈值。这时,可以将数据读写速度最高的存储单元,即将第一存储单元确定为目标存储单元,并将待处理数据写入目标存储单元。If the determined priority of the data to be processed is the first level and the priority threshold is the third level, it is determined that the priority of the data to be processed is greater than the priority threshold. At this time, the storage unit with the highest data reading and writing speed, that is, the first storage unit, can be determined as the target storage unit, and the data to be processed can be written into the target storage unit.
如果确定出的待处理数据的优先级为第五级别,优先级阈值为第三级别,则确定待处理数据的优先级小于优先级阈值。这时,可以将第二存储单元或者第三存储单元确定为目标存储单元。If the determined priority of the data to be processed is the fifth level and the priority threshold is the third level, it is determined that the priority of the data to be processed is less than the priority threshold. At this time, the second storage unit or the third storage unit may be determined as the target storage unit.
在另一些实施例中,以第一存储单元是SLC存储单元、第二存储单元是MLC存储单元、第三存储单元是TLC存储单元为例,如果待处理数据为SWAP数据,则可以确定待处理数据的优先级满足预设优先级条件,这时,可以直接将该待处理数据写入SLC存储单元。In other embodiments, taking the first storage unit as an SLC storage unit, the second storage unit as an MLC storage unit, and the third storage unit as a TLC storage unit as an example, if the data to be processed is SWAP data, it can be determined that the data to be processed is When the priority of the data meets the preset priority conditions, the data to be processed can be directly written into the SLC storage unit.
在待处理数据为常规数据时,表示待处理数据不满足预设优先级条件,这时,可以将该待处理数据写入第二SLC存储单元或者TLC存储单元。如,可以优先确定第二SLC存储单元的存储余量是否大于余量阈值,如果第二SLC存储单元的存储余量大于余量阈值,则将该常规数据写入第二SLC存储单元;如果第二SLC存储单元的存储余量小于或者等于余量阈值,则将该常规数据写入TLC存储单元。When the data to be processed is regular data, it means that the data to be processed does not meet the preset priority condition. At this time, the data to be processed can be written into the second SLC storage unit or TLC storage unit. For example, it can be determined first whether the storage margin of the second SLC storage unit is greater than the margin threshold, and if the storage margin of the second SLC storage unit is greater than the margin threshold, then the regular data is written into the second SLC storage unit; if the storage margin of the second SLC storage unit is greater than the margin threshold, If the storage margin of the second SLC storage unit is less than or equal to the margin threshold, the regular data is written into the TLC storage unit.
本公开实施例中,在待处理数据的优先级满足预设优先级的条件的情况下,表明待处理数据的优先级较高,这时,可以将数据读写速度最高的存储单元确定为目标存储单元,能够提高待处理数据的读写效率。In the embodiment of the present disclosure, when the priority of the data to be processed meets the preset priority conditions, it indicates that the priority of the data to be processed is higher. At this time, the storage unit with the highest data reading and writing speed can be determined as the target. The storage unit can improve the efficiency of reading and writing data to be processed.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
获取所述待处理数据的数据标识;Obtain the data identifier of the data to be processed;
在所述数据标识指示所述待处理数据为从第二存储芯片中读出的数据的情况下,确定所述待处理数据的优先级满足所述预设优先级条件。When the data identification indicates that the data to be processed is data read from the second memory chip, it is determined that the priority of the data to be processed satisfies the preset priority condition.
这里,在第一存储芯片接收到待处理数据之后,可以确定待处理数据是否携带有数据标识,在该待处理数据携带有数据标识的情况下,可以获取该数据标识,并基于该数据标识确定待处理数据书否为从第二存储芯片中读出的数据。Here, after the first memory chip receives the data to be processed, it can determine whether the data to be processed carries a data identifier. If the data to be processed carries a data identifier, the data identifier can be obtained, and the determination is made based on the data identifier. The data to be processed is data read from the second memory chip.
这里,第二存储芯片可以包括:电子设备的物理内存。如,可以包括电子设备的双倍速率同步动态随机存储器(Double Data Rate SDRAM,DDR SDRAM)或者静态随机存取存储器(Static Random-Access Memory,SRAM)。Here, the second memory chip may include: a physical memory of the electronic device. For example, it may include double-rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM) or static random access memory (Static Random-Access Memory, SRAM) of electronic equipment.
在一些实施例中,在待处理数据携带该数据标识(Flag)的情况下,即可确定该待处理数据为从第二存储芯片中读出的数据,这时,可以直接确定该待处理数据满足预设优先级条件。In some embodiments, when the data to be processed carries the data identifier (Flag), it can be determined that the data to be processed is data read from the second memory chip. In this case, the data to be processed can be directly determined. Meet preset priority conditions.
也就是说,在实现的过程中,可以针对从第二存储芯片中读出的数据,增加数据标识,而常规数据不作标识。这样,在进行待处理数据进行写入和存储的时候,能够快速对待处理数据的处理优先级进行区分。That is to say, during the implementation process, data identification can be added to the data read from the second memory chip, while conventional data is not identified. In this way, when writing and storing data to be processed, the processing priority of the data to be processed can be quickly distinguished.
在另一些实施例中,也可以通过不同的数据标识,分别对不同的待处理数据进行标识,例如,可以通过第一数据标识对从第二存储芯片中读出的数据进行标识;通过第二数据标识对常规数据进行标识。其中,第一数据标识和第二数据标识可以是数字,也可以是字母等,只要能够方便第一存储芯片的控制器进行区分即可,在此不作具体限定。如,第一数据标识可以为1,第二数据标识可以为0等。In other embodiments, different data to be processed can also be identified through different data identifiers. For example, the data read out from the second memory chip can be identified through the first data identifier; the data read out from the second memory chip can be identified through the second data identifier. Data identification identifies regular data. The first data identifier and the second data identifier may be numbers, letters, etc., as long as they can be easily distinguished by the controller of the first memory chip, and are not specifically limited here. For example, the first data identifier may be 1, the second data identifier may be 0, and so on.
也就是说,在实现的过程中,可以针对不同的数据,分别设置不同的数据标识。这样,在进行待处理数据进行写入和存储的时候,能够快速对待处理数据的处理优先级进行区分。其中,每个数据标识可以对应有一个优先级,例如,在数据标识为1时,表示待处理数据的优先级较高,数据标识为0时,表示待处理数据的优先级较低等。In other words, during the implementation process, different data identifiers can be set for different data. In this way, when writing and storing data to be processed, the processing priority of the data to be processed can be quickly distinguished. Each data identifier can correspond to a priority. For example, when the data identifier is 1, it means that the priority of the data to be processed is higher, and when the data identifier is 0, it means that the priority of the data to be processed is lower, etc.
本公开实施例中,在第一存储芯片接收到待处理数据之后,可以基于数据标识对各个待处理数据的处理优先级进行区分,并确定与该优先级对应的目标存储单元,并将该待处理数据写入该待处理数据,能够提高数据处理的便利性。In the embodiment of the present disclosure, after the first memory chip receives the data to be processed, the processing priority of each data to be processed can be distinguished based on the data identification, and the target storage unit corresponding to the priority is determined, and the data to be processed is Writing processing data into the data to be processed can improve the convenience of data processing.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
在第二存储芯片中的数据量大于预设数据阈值的情况下,从已存储至所述第二存储芯片的数据中,确定所述待处理数据;When the amount of data in the second memory chip is greater than the preset data threshold, determine the data to be processed from the data that has been stored in the second memory chip;
在将所述待处理数据读出所述第二存储芯片时,生成对应于所述待处理数据的数据标识;When the data to be processed is read out of the second memory chip, a data identifier corresponding to the data to be processed is generated;
将携带所述数据标识的所述待处理数据传输至所述第一存储芯片。The data to be processed carrying the data identifier is transmitted to the first memory chip.
这里,第二存储芯片可以包括:电子设备的物理内存。如,可以包括电子设备的双倍速率同步动态随机存储器(Double Data Rate SDRAM,DDR SDRAM)。Here, the second memory chip may include: a physical memory of the electronic device. For example, it may include Double Data Rate SDRAM (DDR SDRAM) of electronic equipment.
电子设备中的应用程序在运行时,会占用第二存储芯片的存储空间,当多个应用程序同时运行时,第二存储芯片中的空间会被占满,这时,如果用户需要再打开另一个应用程序时,电子设备的操作系统会将第二存储芯片中一部分相对不活跃的应用程序的应用数据清除,或者通过交换技术交换至第一存储芯片,这样,在需要唤醒该应用程序时,再将该应用程序的应用数据从第一存储芯片中读取出来。When the application program in the electronic device is running, it will occupy the storage space of the second memory chip. When multiple applications are running at the same time, the space in the second memory chip will be full. At this time, if the user needs to open another When an application program is running, the operating system of the electronic device will clear a part of the application data of the relatively inactive application program in the second memory chip, or exchange it to the first memory chip through the switching technology, so that when the application program needs to be awakened, Then, the application data of the application program is read out from the first memory chip.
其中,第二存储芯片中一部分相对不活跃的应用程序的应用数据,即为本公开实施例中的待处理数据。Among them, the application data of a part of relatively inactive application programs in the second memory chip is the data to be processed in the embodiment of the present disclosure.
本公开实施例中,在第二存储芯片中的数据量大于预设数据阈值的情况下,表明第二存储芯片的存储空间即将被占满,或者已经被占满,这时,可以从已存储至第二存储芯片的数据中,确定待处理数据。In the embodiment of the present disclosure, when the amount of data in the second memory chip is greater than the preset data threshold, it indicates that the storage space of the second memory chip is about to be filled up, or has been filled up. At this time, the stored data can be retrieved from the stored data. From the data sent to the second memory chip, the data to be processed is determined.
在一些实施例中,在第二存储芯片中的数据量大于预设数据阈值的情况下,从已存储至所述第二存储芯片的数据中,确定所述待处理数据,包括:In some embodiments, when the amount of data in the second memory chip is greater than the preset data threshold, determining the data to be processed from the data that has been stored in the second memory chip includes:
在第二存储芯片中的数据量大于预设数据阈值的情况下,将第二存储芯片中处于非活跃状态的应用数据,确定为该待处理数据;When the amount of data in the second memory chip is greater than the preset data threshold, determine the application data in the inactive state in the second memory chip as the data to be processed;
其中,处于非活跃状态的应用数据,包括:未被使用的等待时长大于预设时长的应用程序的应用数据。Among them, the application data in the inactive state includes: application data of unused applications whose waiting time is longer than the preset time.
例如,在确定第二存储芯片中的数据量已经占用了第二存储芯片的总存储空间的80%,则可以将未被使用的等待时长大于2小时的应用程序的应用数据,确定为该待处理数据。其中,预设数据阈值和预设时长可以根据需要设置,例如,可以根据第二存储芯片的性能确定预设数据阈值,根据各个应用程序的使用频次确定预设时长等。For example, after it is determined that the amount of data in the second memory chip has occupied 80% of the total storage space of the second memory chip, the unused application data of the application whose waiting time is longer than 2 hours can be determined as the waiting time. Data processing. The preset data threshold and the preset duration can be set as needed. For example, the preset data threshold can be determined based on the performance of the second memory chip, the preset duration can be determined based on the frequency of use of each application, etc.
图2是根据一示例性实施例示出的第二存储芯片的数据存储示意图,如图2所示,在系统运行的过程中,如果通讯应用程序和音乐应用程序同时运行时,系统数据会占用第二存储芯片201的部分存储空间,通讯应用程序会占用第二存储芯片201的部分存储空间,音乐应用程序会占用第二存储芯片201的部分存储空间,这样,可能会导致第二存储芯片201的存储空间被占满。Figure 2 is a schematic diagram of data storage of the second memory chip according to an exemplary embodiment. As shown in Figure 2, during the operation of the system, if the communication application and the music application are running at the same time, the system data will occupy the third memory chip. Part of the storage space of the second memory chip 201. The communication application program will occupy part of the storage space of the second memory chip 201. The music application program will occupy part of the storage space of the second memory chip 201. In this way, the second memory chip 201 may be damaged. Storage space is full.
在一些实施例中,假设第二存储芯片的存储空间已经被占满,这时,如果有游戏应用程序被打开,系统会将第二存储芯片中一部分相对不活跃的应用数据通过交换技术交换到第一存储芯片中。例如,如果音乐应用程序未被使用的等待时长大于预设时长,则确定音乐应用程序相对不活跃,这时,可以将音乐应用程序的应用数据,作为待处理数据交换到第一存储芯片中。在需要将该音乐应用程序唤醒时,再从第一存储芯片读出音乐应用程序的应用数据。In some embodiments, assuming that the storage space of the second memory chip is full, at this time, if a game application is opened, the system will exchange a part of the relatively inactive application data in the second memory chip to in the first memory chip. For example, if the waiting time for the music application to be unused is longer than the preset time, it is determined that the music application is relatively inactive. At this time, the application data of the music application can be exchanged to the first memory chip as data to be processed. When the music application needs to be awakened, the application data of the music application is read from the first memory chip.
其中,第二存储芯片可以包括:DDR芯片;第一存储芯片可以包括:UFS芯片;电子设备可以包括:手机。The second memory chip may include a DDR chip; the first memory chip may include a UFS chip; and the electronic device may include a mobile phone.
这里,在确定出待处理数据之后,需要将待处理数据从第二存储芯片中读出,并交换至第一存储芯片,在将待处理数据读出第二存储芯片时,可以生成对应于待处理数据的数据标识,并将携带数据标识的待处理数据传输至第一存储芯片。Here, after the data to be processed is determined, the data to be processed needs to be read out from the second memory chip and exchanged to the first memory chip. When the data to be processed is read out of the second memory chip, a corresponding data corresponding to the data to be processed can be generated. Process the data identification of the data, and transmit the data to be processed carrying the data identification to the first memory chip.
其中,数据标识用于指示所述待处理数据为从第二存储芯片中读出的数据,对应的优先级相较于常规数据较高。The data identifier is used to indicate that the data to be processed is data read from the second memory chip, and the corresponding priority is higher than that of regular data.
在一些实施例中,在待处理数据为数据包时,可以将数据标识添加在该数据包的包头(Header),以方便待处理数据将该数据标识携带至第一存储芯片。In some embodiments, when the data to be processed is a data packet, a data identifier can be added to the header of the data packet to facilitate the data to be processed to carry the data identifier to the first memory chip.
本公开实施例中,系统会在下发待处理数据的过程中,使用数据标识将交换数据与常规数据进行区分,如,在待处理数据的数据标识为1时,表明该待处理数据为交换数据,这样,第一存储芯片在进行数据解析时,能够根据数据标识确定该待处理数据的优先级,进而确定与该优先级对应的目标存储单元。In this disclosed embodiment, the system will use data identifiers to distinguish exchange data from regular data during the process of delivering data to be processed. For example, when the data identifier of the data to be processed is 1, it indicates that the data to be processed is exchange data. , In this way, when performing data analysis, the first memory chip can determine the priority of the data to be processed according to the data identifier, and then determine the target storage unit corresponding to the priority.
在待处理数据的优先级较高时,确定的目标存储单元的数据读写速度也较快,这样,在需要激活该待处理数据对应的应用程序时,读出该待处理数据的速度也较快,能够更迅速的恢复之前运行的应用程序现场,进而完成快速切换。When the priority of the data to be processed is higher, the data reading and writing speed of the determined target storage unit is also faster. In this way, when the application program corresponding to the data to be processed needs to be activated, the speed of reading the data to be processed is also faster. It is fast and can restore the previously running application site more quickly, thereby completing fast switching.
在一些实施例中,所述将所述至少两个存储单元中,数据读写速度最高的存储单元确定为所述目标存储单元,包括:In some embodiments, determining the storage unit with the highest data reading and writing speed among the at least two storage units as the target storage unit includes:
确定所述数据读写速度最高的存储单元的存储余量是否大于所述待处理数据的数据量;Determine whether the storage margin of the storage unit with the highest data reading and writing speed is greater than the data amount of the data to be processed;
在所述存储余量大于所述待处理数据的数据量的情况下,将所述数据读写速度最高的存储单元确定为所述目标存储单元。When the storage margin is greater than the data amount of the data to be processed, the storage unit with the highest data reading and writing speed is determined as the target storage unit.
本公开实施例中,在数据标识指示所述待处理数据为从第二存储芯片中读出的数据的情况下,可以先确定数据读写速度最高的存储单元的存储余量是否大于待处理数据的数据量。在数据读写速度最高的存储单元的存储余量大于待处理数据的数据量的情况下,再将数据读写速度最高的存储单元确定为目标存储单元,并将待处理数据存储至该目标存储单元。In the embodiment of the present disclosure, when the data identifier indicates that the data to be processed is data read from the second memory chip, it may first be determined whether the storage margin of the storage unit with the highest data reading and writing speed is greater than the data to be processed. amount of data. When the storage margin of the storage unit with the highest data reading and writing speed is greater than the data amount of the data to be processed, the storage unit with the highest data reading and writing speed is determined as the target storage unit, and the data to be processed is stored in the target storage. unit.
在另一些实施例中,在数据读写速度最高的存储单元的存储余量小于或者等于待处理数据的数据量的情况下,可以将至少两个存储单元中,数据读写速度次高的存储单元确定为目标存储单元。In other embodiments, when the storage margin of the storage unit with the highest data reading and writing speed is less than or equal to the data amount of the data to be processed, the storage unit with the second highest data reading and writing speed among the at least two storage units may be The unit is determined as the target storage unit.
其中,数据读写速度最高的存储单元可以包括:第一SLC存储单元,数据读写速度次高的存储单元可以包括第二SLC存储单元。当然,数据读写速度最高的存储单元也可以包括:第一SLC存储单元,数据读写速度次高的存储单元可以包括TLC存储单元。或者,数据读写速度最高的存储单元可以包括:第一SLC存储单元,数据读写速度次高的存储单元可以包括MLC存储单元。可以根据第一存储芯片中所包括的存储单元的类型灵活确定。The storage unit with the highest data reading and writing speed may include a first SLC storage unit, and the storage unit with the second highest data reading and writing speed may include a second SLC storage unit. Of course, the storage unit with the highest data reading and writing speed may also include: a first SLC storage unit, and the storage unit with the second highest data reading and writing speed may include a TLC storage unit. Alternatively, the storage unit with the highest data reading and writing speed may include: a first SLC storage unit, and the storage unit with the second highest data reading and writing speed may include an MLC storage unit. It can be flexibly determined according to the type of memory cells included in the first memory chip.
在另一些实施例中,还可以确定数据读写速度最高的存储单元的存储余量是否大于存储余量阈值,在该存储余量大于存储余量阈值的情况下,将数据读写速度最高的存储单元确定为目标存储单元,并将待处理数据存储至该目标存储单元。In other embodiments, it may also be determined whether the storage margin of the storage unit with the highest data reading and writing speed is greater than the storage margin threshold. If the storage margin is greater than the storage margin threshold, the storage unit with the highest data reading and writing speed is The storage unit is determined as the target storage unit, and the data to be processed is stored in the target storage unit.
在另一些实施例中,在数据读写速度最高的存储单元的存储余量小于或者等于存储余量阈值的情况下,可以将至少两个存储单元中,数据读写速度次高的存储单元确定为所述目标存储单元。In other embodiments, when the storage margin of the storage unit with the highest data reading and writing speed is less than or equal to the storage margin threshold, the storage unit with the second highest data reading and writing speed among the at least two storage units may be determined. is the target storage unit.
在进行待处理数据的存储之前,先对数据读写速度最高的存储单元的存储余量进行判断,在数据读写速度最高的存储单元的存储余量充足的情况下,再将待处理数据写入该存储单元,能够降低由于存储单元的存储余量不足,导致待处理数据丢失的可能性。Before storing the data to be processed, the storage margin of the storage unit with the highest data reading and writing speed is first judged. When the storage margin of the storage unit with the highest data reading and writing speed is sufficient, the data to be processed is then written. By inserting the storage unit into the storage unit, the possibility of losing the data to be processed due to insufficient storage margin of the storage unit can be reduced.
在存储单元的存储余量不充足的情况下,将待处理数据写入数据读写速度次高的存储单元,也能够实现各个存储单元所存入数据的均衡。When the storage margin of the storage unit is insufficient, writing the data to be processed into the storage unit with the second highest data reading and writing speed can also achieve a balance of data stored in each storage unit.
在一些实施例中,可以在对电子设备进行初始化配置的时候,可以针对第一存储芯片的数据交换功能,在电子设备的第一存储芯片内部设置第一SLC存储单元,并将该第一SLC存储单元作为高速数据。同时设置第二SLC存储单元和TLC存储单元。In some embodiments, when the electronic device is initialized and configured, a first SLC storage unit can be set inside the first memory chip of the electronic device for the data exchange function of the first memory chip, and the first SLC memory cells as high-speed data. The second SLC storage unit and the TLC storage unit are set simultaneously.
图3是根据一示例性实施例示出的第一存储芯片的示意图,如图3所示,第一存储芯片301包括:第一SLC存储单元(SWAP SLC)、第二SLC存储单元(Common SLC)和TLC存储单元(TLC Area)。Figure 3 is a schematic diagram of a first memory chip according to an exemplary embodiment. As shown in Figure 3, the first memory chip 301 includes: a first SLC memory unit (SWAP SLC) and a second SLC memory unit (Common SLC). and TLC storage unit (TLC Area).
图4是根据一示例性实施例示出的进行数据处理的架构示意图,如图4所示,存储设备控制器(Storage Device Controller)401包括:中央处理器(Central ProcessingUnit,CPU),静态随机存取存储器(SRAM)),闪存芯片控制器(Nand Controller)。第一存储芯片301包括:第一SLC存储单元、第二SLC存储单元和TLC存储单元。在实现的过程中,主机(Host)402可以通过交换接口(SWAP IO)和常规接口(General IO)实现与存储设备控制器401之间的交互。Figure 4 is an architectural schematic diagram of data processing according to an exemplary embodiment. As shown in Figure 4, a storage device controller (Storage Device Controller) 401 includes: a central processing unit (Central Processing Unit, CPU), static random access Memory (SRAM)), flash memory chip controller (Nand Controller). The first memory chip 301 includes: a first SLC memory unit, a second SLC memory unit and a TLC memory unit. During the implementation process, the host (Host) 402 can interact with the storage device controller 401 through the switching interface (SWAP IO) and the general interface (General IO).
本公开实施例中,通过在第一存储芯片中单独设置第一SLC存储单元,专门供优先级较高的待处理数据(如,SWAP数据)使用,假设第二存储芯片(物理内存,如DDR)已经被占满,此时若需要打开第一应用程序,系统会将相对最不活跃的第二应用程序在第二存储芯片中的应用数据作为待处理数据,写入第一存储芯片的第一SLC存储单元中。In the embodiment of the present disclosure, the first SLC storage unit is separately set up in the first memory chip to be used exclusively for data to be processed (such as SWAP data) with higher priority. It is assumed that the second memory chip (physical memory, such as DDR ) has been fully occupied. If the first application needs to be opened at this time, the system will use the application data of the relatively least active second application in the second memory chip as pending data and write it into the first memory chip. in an SLC storage unit.
在读出待处理数据时,会生成待处理数据的数据标识(SWAP Flag),例如,将待处理数据的数据标识设置为1,该数据标识用于标识该待处理数据为SWAP数据。第一存储芯片在接收到待处理数据之后,第一存储芯片的控制器在确定待处理数据的数据标识指示待处理数据为从第二存储芯片读出的数据时,会将该待处理数据写入第一SLC存储单元(SWAPSLC)。由于第一SLC存储单元的数据读写速度较高,在进行数据交换时,能有较好的读写性能,并且在从第一存储芯片中读取该待处理数据时,能提升将非活跃状态的应用程序切换为活跃状态的速度,进而提升用户体验。When the data to be processed is read out, a data flag (SWAP Flag) of the data to be processed is generated. For example, the data flag of the data to be processed is set to 1. This data flag is used to identify the data to be processed as SWAP data. After the first memory chip receives the data to be processed, when the controller of the first memory chip determines that the data identifier of the data to be processed indicates that the data to be processed is data read from the second memory chip, the controller of the first memory chip will write the data to be processed. Enter the first SLC storage unit (SWAPSLC). Since the data reading and writing speed of the first SLC storage unit is relatively high, it can have better reading and writing performance when exchanging data, and when reading the data to be processed from the first memory chip, it can improve the efficiency of inactive data processing. The speed at which the status application switches to the active state, thereby improving the user experience.
本公开实施例中,可以针对SWAP数据开辟第一SLC存储单元(SWAP SLC),并且通过数据标识对SWAP数据进行标识,那么第一存储芯片在接收到SWAP数据时,会将全部的SWAP数据写入第一SLC存储单元,在用户需要将非活跃状态的应用程序切换为活跃状态时,能够更迅速的恢复之前运行的应用程序现场,让用户在多个应用程序间切换的更加顺滑,使用户能体验到多应用程序同时驻留的感觉。In the embodiment of the present disclosure, the first SLC storage unit (SWAP SLC) can be opened for SWAP data, and the SWAP data can be identified through data identification. Then, when receiving the SWAP data, the first memory chip will write all the SWAP data. into the first SLC storage unit. When the user needs to switch an inactive application to an active state, the previously running application can be restored more quickly, allowing the user to switch between multiple applications more smoothly, making Users can experience the feeling of multiple applications resident at the same time.
图5是根据一示例性实施例示出的数据处理装置框图。如图5所示,该数据处理装置500主要包括:Figure 5 is a block diagram of a data processing device according to an exemplary embodiment. As shown in Figure 5, the data processing device 500 mainly includes:
第一确定模块501,配置为在第一存储芯片接收到待处理数据的情况下,确定所述待处理数据的优先级;The first determination module 501 is configured to determine the priority of the data to be processed when the first memory chip receives the data to be processed;
第二确定模块502,配置为从所述第一存储芯片所具有的至少两个存储单元中,确定与所述优先级对应的目标存储单元;其中,各个所述存储单元具有对应的数据读写速度;The second determination module 502 is configured to determine a target storage unit corresponding to the priority level from at least two storage units of the first memory chip; wherein each of the storage units has a corresponding data read and write function. speed;
写入模块503,配置为将所述待处理数据写入所述目标存储单元。The writing module 503 is configured to write the data to be processed into the target storage unit.
在一些实施例中,所述第二确定模块502,配置为:In some embodiments, the second determination module 502 is configured as:
在所述待处理数据的优先级满足预设优先级条件的情况下,将所述至少两个存储单元中,数据读写速度最高的存储单元确定为所述目标存储单元。When the priority of the data to be processed satisfies the preset priority condition, the storage unit with the highest data reading and writing speed among the at least two storage units is determined as the target storage unit.
在一些实施例中,所述装置500还包括:In some embodiments, the apparatus 500 further includes:
获取模块,配置为获取所述待处理数据的数据标识;An acquisition module configured to acquire the data identifier of the data to be processed;
第三确定模块,配置为在所述数据标识指示所述待处理数据为从第二存储芯片中读出的数据的情况下,确定所述待处理数据的优先级满足所述预设优先级条件。A third determination module configured to determine that the priority of the data to be processed satisfies the preset priority condition when the data identifier indicates that the data to be processed is data read from the second memory chip. .
在一些实施例中,所述第二确定模块502,配置为:In some embodiments, the second determination module 502 is configured as:
确定所述数据读写速度最高的存储单元的存储余量是否大于所述待处理数据的数据量;Determine whether the storage margin of the storage unit with the highest data reading and writing speed is greater than the data amount of the data to be processed;
在所述存储余量大于所述待处理数据的数据量的情况下,将所述数据读写速度最高的存储单元确定为所述目标存储单元。When the storage margin is greater than the data amount of the data to be processed, the storage unit with the highest data reading and writing speed is determined as the target storage unit.
在一些实施例中,所述装置500还包括:In some embodiments, the apparatus 500 further includes:
第四确定模块,配置为在第二存储芯片中的数据量大于预设数据阈值的情况下,从已存储至所述第二存储芯片的数据中,确定所述待处理数据;A fourth determination module configured to determine the data to be processed from the data that has been stored in the second memory chip when the amount of data in the second memory chip is greater than the preset data threshold;
生成模块,配置为在将所述待处理数据读出所述第二存储芯片时,生成对应于所述待处理数据的数据标识;A generation module configured to generate a data identifier corresponding to the data to be processed when the data to be processed is read out of the second memory chip;
传输模块,配置为将携带所述数据标识的所述待处理数据传输至所述第一存储芯片。A transmission module configured to transmit the data to be processed carrying the data identifier to the first memory chip.
在一些实施例中,所述至少两个存储单元,包括:第一SLC存储单元、第二SLC存储单元以及TLC存储单元;In some embodiments, the at least two storage units include: a first SLC storage unit, a second SLC storage unit and a TLC storage unit;
其中,所述第一SLC存储单元的数据读写速度等于所述第二SLC存储单元的数据读写速度,且所述第一SLC存储单元和所述第二SLC存储单元的数据读写速度大于所述TLC存储单元的数据读写速度。Wherein, the data reading and writing speed of the first SLC storage unit is equal to the data reading and writing speed of the second SLC storage unit, and the data reading and writing speeds of the first SLC storage unit and the second SLC storage unit are greater than The data reading and writing speed of the TLC storage unit.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the devices in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
图6是根据一示例性实施例示出的数据处理装置的硬件结构框图一。例如,装置700可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Figure 6 is a hardware structure block diagram 1 of a data processing device according to an exemplary embodiment. For example, the device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
参照图6,装置700可以包括以下一个或多个组件:处理组件702,存储器704,电源组件706,多媒体组件708,音频组件710,输入/输出(I/O)接口712,传感器组件714,以及通信组件716。Referring to Figure 6, apparatus 700 may include one or more of the following components: processing component 702, memory 704, power supply component 706, multimedia component 708, audio component 710, input/output (I/O) interface 712, sensor component 714, and Communication component 716.
处理组件702通常控制装置700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件702可以包括一个或多个处理器720来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。Processing component 702 generally controls the overall operations of device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 702 may include one or more modules that facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.
存储器704被配置为存储各种类型的数据以支持在装置700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 704 is configured to store various types of data to support operations at device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, etc. Memory 704 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
电源组件706为装置700的各种组件提供电力。电源组件706可以包括电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电力相关联的组件。Power supply component 706 provides power to the various components of device 700 . Power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 700 .
多媒体组件708包括在所述装置700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当装置700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。Multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, multimedia component 708 includes a front-facing camera and/or a rear-facing camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。Audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a microphone (MIC) configured to receive external audio signals when device 700 is in operating modes, such as call mode, recording mode, and speech recognition mode. The received audio signal may be further stored in memory 704 or sent via communication component 716 . In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
传感器组件714包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件714可以检测到装置700的打开/关闭状态,组件的相对定位,例如所述组件为装置700的显示器和小键盘,传感器组件714还可以检测装置700或装置700一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor component 714 includes one or more sensors that provide various aspects of status assessment for device 700 . For example, sensor component 714 can detect the open/closed state of device 700, the relative positioning of components, such as the display and keypad of device 700, and sensor component 714 can also detect a change in position of device 700 or a component of device 700. , the presence or absence of user contact with device 700 , device 700 orientation or acceleration/deceleration and temperature changes of device 700 . Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件716被配置为便于装置700和其他设备之间有线或无线方式的通信。装置700可以接入基于通信标准的无线网络,如WiFi、4G或5G,或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。Communication component 716 is configured to facilitate wired or wireless communication between apparatus 700 and other devices. Device 700 may access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In one exemplary embodiment, communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communications component 716 also includes a near field communications (NFC) module to facilitate short-range communications. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 700 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable Gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are implemented for executing the above method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由装置700的处理器720执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 704 including instructions, which are executable by the processor 720 of the device 700 to complete the above method is also provided. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种数据处理方法,所述方法包括:A non-transitory computer-readable storage medium that, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to perform a data processing method, the method comprising:
在第一存储芯片接收到待处理数据的情况下,确定所述待处理数据的优先级;When the first memory chip receives the data to be processed, determine the priority of the data to be processed;
从所述第一存储芯片所具有的至少两个存储单元中,确定与所述优先级对应的目标存储单元;其中,各个所述存储单元具有对应的数据读写速度;Determine a target storage unit corresponding to the priority level from at least two storage units of the first memory chip; wherein each of the storage units has a corresponding data reading and writing speed;
将所述待处理数据写入所述目标存储单元。Write the data to be processed into the target storage unit.
图7是根据一示例性实施例示出的一种数据处理装置的硬件结构框图二。例如,装置800可以被提供为一服务器。参照图7,装置800包括处理组件822,其进一步包括一个或多个处理器,以及由存储器832所代表的存储器资源,用于存储可由处理组件822的执行的指令,例如应用程序。存储器832中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件822被配置为执行指令,以执行一种数据处理方法,包括:Figure 7 is a second hardware structure block diagram of a data processing device according to an exemplary embodiment. For example, device 800 may be provided as a server. Referring to Figure 7, apparatus 800 includes a processing component 822, which further includes one or more processors, and memory resources represented by memory 832 for storing instructions, such as application programs, executable by processing component 822. The application program stored in memory 832 may include one or more modules, each corresponding to a set of instructions. Additionally, processing component 822 is configured to execute instructions to perform a data processing method including:
在第一存储芯片接收到待处理数据的情况下,确定所述待处理数据的优先级;When the first memory chip receives the data to be processed, determine the priority of the data to be processed;
从所述第一存储芯片所具有的至少两个存储单元中,确定与所述优先级对应的目标存储单元;其中,各个所述存储单元具有对应的数据读写速度;Determine a target storage unit corresponding to the priority level from at least two storage units of the first memory chip; wherein each of the storage units has a corresponding data reading and writing speed;
将所述待处理数据写入所述目标存储单元。Write the data to be processed into the target storage unit.
装置800还可以包括一个电源组件826被配置为执行装置800的电源管理,一个有线或无线网络接口850被配置为将装置800连接到网络,和一个输入/输出(I/O)接口858。装置800可以操作基于存储在存储器832的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。Device 800 may also include a power supply component 826 configured to perform power management of device 800, a wired or wireless network interface 850 configured to connect device 800 to a network, and an input/output (I/O) interface 858. The device 800 may operate based on an operating system stored in the memory 832, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the disclosure that follow the general principles of the disclosure and include common common sense or customary technical means in the technical field that are not disclosed in the disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the disclosure is limited only by the appended claims.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210331932.9A CN116931811A (en) | 2022-03-30 | 2022-03-30 | Data processing methods, devices and storage media |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210331932.9A CN116931811A (en) | 2022-03-30 | 2022-03-30 | Data processing methods, devices and storage media |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116931811A true CN116931811A (en) | 2023-10-24 |
Family
ID=88381337
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210331932.9A Pending CN116931811A (en) | 2022-03-30 | 2022-03-30 | Data processing methods, devices and storage media |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116931811A (en) |
-
2022
- 2022-03-30 CN CN202210331932.9A patent/CN116931811A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112955856B (en) | Electronic device for displaying a list of executable applications on a split screen and operating method thereof | |
| EP3992786B1 (en) | Display method and electronic device | |
| CN107291626B (en) | Data storage method and device | |
| CN106712179B (en) | Method and device for realizing reverse charging | |
| US20190026008A1 (en) | Flexible display of electronic device and method for operating same | |
| US20160026272A1 (en) | Method for displaying screen in electronic device, and electronic device thereof | |
| CN108121524A (en) | The adjusting method and device, electronic equipment of electronic equipment image display preview frame per second | |
| CN104615546B (en) | file data management method and device | |
| CN111966410B (en) | Start-up processing method and device, electronic equipment and storage medium | |
| EP4451115A1 (en) | Data access method and apparatus, and non-transient computer-readable storage medium | |
| EP3015983A1 (en) | Method and device for optimizing memory | |
| CN111862972A (en) | Voice interactive service method, device, device and storage medium | |
| CN111736997B (en) | Memory allocation method and device, electronic equipment and storage medium | |
| CN110968523B (en) | Methods and apparatus for memory defragmentation | |
| CN116360671A (en) | Storage method, device, terminal and storage medium | |
| CN116931811A (en) | Data processing methods, devices and storage media | |
| CN113032290A (en) | Flash memory configuration method and device, electronic equipment and storage medium | |
| CN112307229A (en) | Data processing method and apparatus, electronic device, computer-readable storage medium | |
| CN119988305A (en) | Bandwidth adjustment method and device, storage medium and electronic device | |
| KR102862943B1 (en) | Electronic device for controlling processing unit based on a time spent in generating a frame and a maximum allowed time and a method for the same | |
| CN115687192A (en) | Data storage method, data storage device and terminal | |
| CN114489471A (en) | Input and output processing method and electronic equipment | |
| CN118312279A (en) | Application running method and device, electronic equipment and storage medium | |
| EP4425451A1 (en) | Text recognition method and related apparatus | |
| CN119576583B (en) | Memory management method, electronic device and computer readable 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 |