CN117331472B - Fragment processing method and related device - Google Patents

Fragment processing method and related device Download PDF

Info

Publication number
CN117331472B
CN117331472B CN202311619810.0A CN202311619810A CN117331472B CN 117331472 B CN117331472 B CN 117331472B CN 202311619810 A CN202311619810 A CN 202311619810A CN 117331472 B CN117331472 B CN 117331472B
Authority
CN
China
Prior art keywords
interface
value
fragmentation
information
level
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.)
Active
Application number
CN202311619810.0A
Other languages
Chinese (zh)
Other versions
CN117331472A (en
Inventor
许铭扬
杨刚强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311619810.0A priority Critical patent/CN117331472B/en
Publication of CN117331472A publication Critical patent/CN117331472A/en
Application granted granted Critical
Publication of CN117331472B publication Critical patent/CN117331472B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/168Details of user interfaces specifically adapted to file systems, e.g. browsing and visualisation, 2d or 3d GUIs
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a fragment processing method and a related device, which are applied to the technical field of terminals. The method is applied to the electronic equipment, and comprises the following steps: and providing a visual interface, wherein the visual interface comprises a control for performing fragment processing, and performing fragment processing in response to the triggering of the operation of the control for performing fragment processing by a user. Wherein the visual interface may be displayed by one or more of: responding to the operation of triggering the first option by the user, and displaying a visual interface; responding to the operation of triggering the first suspension ball by a user, and displaying a visual interface; or in response to a user opening the first application, displaying a visual interface. Therefore, the fragmentation processing can be carried out without waiting for the idle state of the electronic equipment, the data storage performance can be improved in time, the time for the electronic equipment to respond to the file opening or the application opening of a user is shortened, and the user experience is improved.

Description

Fragment processing method and related device
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a fragment processing method and a related device.
Background
The electronic device may run an application and may store files. Currently, in some scenarios, an electronic device cannot respond to an operation of opening an application or opening a file by a user in time, resulting in poor user experience.
Disclosure of Invention
The application provides a fragment processing method and a related device, which are applied to the technical field of terminals.
In a first aspect, the present application proposes a fragment processing method, applied to an electronic device, including: responding to the operation of opening a first application by a user, displaying a first interface, wherein the first interface comprises prompt information and a first control, and the prompt information is used for prompting the optimization of fragments stored in data in the electronic equipment; responding to the operation of triggering the first control by the user, and displaying a second interface, wherein the second interface comprises the second control; and responding to the operation of triggering the second control by the user, and performing fragment processing.
According to the fragment processing method provided by the application, when the user opens the first application, the user can be prompted to perform fragment processing, and when the user triggers the second control, the fragment processing is performed, so that the performance of the electronic equipment can be improved, the first application can be operated under the condition of better performance, and the probability of operating a blocking state can be reduced.
In a possible implementation, the second interface further includes first information, where the first information is used to indicate one or more of: the method comprises the steps of (1) storing data by a first device in electronic equipment, wherein the state of the first device is used for reflecting the performance of the first device; the estimated time length required by the electronic equipment for fragment processing; the urgency of the electronic device to perform fragment processing; the degree of fragmentation of the data store in the electronic device; or the electronic equipment predicts the space which can be tidied after carrying out the fragment processing; the electronic device predicts a read-write speed that can be increased after performing the fragmentation processing. Thus, the second interface also includes first information to facilitate user awareness of the information related to the shards.
In a possible implementation, when the first information is used to indicate the state of the first device, the first information includes a first value, where the first value is inversely related to one or more of the following information: garbage collection urgent level, file fragmentation level, table item fragmentation level, single-layer storage unit filling level, or rereading times; the garbage collection urgent level is used for indicating the urgent degree of garbage collection treatment on fragments, the file fragmentation level is used for indicating the fragmentation degree of the file, the table entry fragmentation level is used for indicating the fragmentation degree of the data table, the single-layer storage unit filling level is used for indicating the use degree of the single-layer storage unit, and the re-reading times are used for indicating the times of successfully reading the data. In this way, it is advantageous to calculate information indicative of the state of the first device.
In one possible implementation, the first value and garbage collection urgency level, file fragmentation level, table entry fragmentation level, single level storage unit fill level, or number of rereads satisfy the following formula: first numerical value=100-a. Garbage collection urgent level/garbage collection total level-b. File fragmentation level/file fragmentation total level-c. Table entry fragmentation level/table entry fragmentation total level-d. Single-layer memory cell filling level/single-layer memory cell filling total level-e. Number of rereadings/total number of rereadings; wherein a+b+c+d+e=100, and the total garbage collection level, the total file fragmentation level, the total table entry fragmentation level, the total single-layer storage unit filling level, and the total number of rereads are all constants. In this way, it is advantageous to obtain the first value.
In one possible implementation, an electronic device includes a first register; when the first information is used for indicating the urgent degree of the fragmentation processing of the electronic equipment, the first information is used for indicating that the data storage is good and the optimization is not needed when the value of the first register is the first value; when the value of the first register is a second value, the first information is used for indicating recommendation to optimize; when the value of the first register is a third value, the first information is used for indicating that the optimization is strongly recommended, and the data storage performance is reduced; or when the value of the first register is the fourth value, the first information is used for indicating that the optimization is strongly recommended, and the data storage performance is severely reduced. Thus, the user can intuitively know whether the fragmentation processing is needed.
In one possible implementation, the electronic device includes a second register, a value of the second register being a fifth value; responding to the operation of triggering the second control by the user, performing fragment processing, including: responding to the operation of triggering the second control by the user, and updating the value of the second register to be a sixth value; if the value of the second register is the sixth value, the fragmentation processing is performed. In this way, fragment processing is facilitated.
In a possible implementation, the method further includes: and when the fragment processing is performed, displaying a third interface, wherein the third interface comprises second information, and the second information is used for indicating one or more of the following: the method comprises the steps of (1) storing data by a first device in electronic equipment, wherein the state of the first device is used for reflecting the performance of the first device; the electronic equipment performs a process operated by fragment processing; or the processing state of the process, which is in the process, terminated in advance, completed successfully or not completed due to error. Thus, the user can know the information related to the fragment processing.
In a possible implementation, the electronic device includes a third register, where the second information is used to indicate a processing state of the process, and when a value of the third register is a seventh value, the second information is used to indicate that the process is in processing; when the value of the third register is an eighth value, the second information is used for indicating that the process is terminated in advance; when the value of the third register is a ninth value, the second information is used for indicating that the process is successfully completed; or when the value of the third register is a tenth value, the second information is used for indicating that the process is not completed due to the occurrence of an error. In this way, it is advantageous to realize the processing state of the display process.
In one possible implementation, the third interface further includes a third control; the method further comprises the steps of: and responding to the operation of triggering the third control by the user, and displaying a second interface. In this way, it is advantageous to support cancellation of the fragmentation processing at any time.
In a possible implementation, the method further includes: in the case where the fragment processing is completed, displaying a fourth interface, the fourth interface including third information, the third information including one or more of the following information: the method comprises the steps that after fragmentation processing, a first device in the electronic equipment is in a state, wherein the first device is used for storing data, and the state of the first device is used for reflecting the performance of the first device; a storage space which is processed by the fragments; the reading and writing speed is improved after the chip treatment; the time required by the fragment treatment is carried out again after the fragment treatment; the urgent degree of the chip treatment is carried out again after the chip treatment; or the fragmentation degree of the data storage after fragmentation processing. Thus, the user can know the information related to the fragments after the fragment processing, and further determine the fragment processing effect.
In a possible implementation, the fourth interface further includes a fourth control; the method further comprises the steps of: and responding to the operation of triggering the fourth control by the user, and performing fragment processing. Thus, the method is favorable for supporting the continuous multiple optimization of the user, and fragments can be processed more thoroughly.
In one possible implementation, displaying a first interface in response to a user opening a first application includes: displaying a fifth interface, wherein the fifth interface is different from the first interface in that no prompt information and no first control are provided; and responding to the operation of opening the first application by the user, displaying prompt information on the fifth interface, and obtaining the first interface. In this way, the prompt information is displayed before the interface of the first application is opened, so that the data required by the interface of the first application can not be acquired, and the response speed is improved.
In one possible implementation, before displaying the first interface in response to a user opening the first application, the method further includes: displaying a sixth interface, wherein the sixth interface comprises an icon of the first application; responsive to a user opening a first application, displaying a first interface comprising: and responding to icon operation of the first application triggered by the user, and displaying a first interface. Therefore, the prompt information is displayed when the interface of the first application is displayed, and the user is prompted to carry out fragment processing under the condition that the user requirement is met.
In a second aspect, the present application proposes a fragment processing method, applied to an electronic device, including: displaying a seventh interface, the seventh interface including the first option; responding to the operation of triggering the first option by the user, and displaying a second interface, wherein the second interface comprises a second control; responding to the operation of triggering the second control by the user, performing fragment processing, and displaying a third interface; responding to a first operation of a user on the electronic equipment, displaying a multi-task management interface, wherein the multi-task management interface comprises a thumbnail corresponding to a third interface; wherein the third interface includes second information indicating one or more of: the method comprises the steps of (1) storing data by a first device in electronic equipment, wherein the state of the first device is used for reflecting the performance of the first device; the electronic equipment performs a process operated by fragment processing; or the processing state of the process, which is in the process, terminated in advance, completed successfully or not completed due to error. In this way, the first option is added as an inlet for displaying the second interface, the user is supported to trigger the first option to view the second interface, and the user is responded to trigger the operation of the second control to perform fragment processing, so that the optimization can be performed without waiting for the electronic equipment to be idle, the fragment processing is facilitated in time, the time for the electronic equipment to respond to the user to open the file or open the application is shortened, and the user experience is improved.
In a possible implementation, the second interface further includes first information, where the first information is used to indicate one or more of: the method comprises the steps of (1) storing data by a first device in electronic equipment, wherein the state of the first device is used for reflecting the performance of the first device; the estimated time length required by the electronic equipment for fragment processing; the urgency of the electronic device to perform fragment processing; the degree of fragmentation of the data store in the electronic device; or the electronic equipment predicts the space which can be tidied after carrying out the fragment processing; the electronic device predicts a read-write speed that can be increased after performing the fragmentation processing.
In a possible implementation, when the first information is used to indicate the state of the first device, the first information includes a first value, where the first value is inversely related to one or more of the following information: garbage collection urgent level, file fragmentation level, table item fragmentation level, single-layer storage unit filling level, or rereading times; the garbage collection urgent level is used for indicating the urgent degree of garbage collection treatment on fragments, the file fragmentation level is used for indicating the fragmentation degree of the file, the table entry fragmentation level is used for indicating the fragmentation degree of the data table, the single-layer storage unit filling level is used for indicating the use degree of the single-layer storage unit, and the re-reading times are used for indicating the times of successfully reading the data.
In one possible implementation, the first value and garbage collection urgency level, file fragmentation level, table entry fragmentation level, single level storage unit fill level, or number of rereads satisfy the following formula: first numerical value=100-a. Garbage collection urgent level/garbage collection total level-b. File fragmentation level/file fragmentation total level-c. Table entry fragmentation level/table entry fragmentation total level-d. Single-layer memory cell filling level/single-layer memory cell filling total level-e. Number of rereadings/total number of rereadings; wherein a+b+c+d+e=100, and the total garbage collection level, the total file fragmentation level, the total table entry fragmentation level, the total single-layer storage unit filling level, and the total number of rereads are all constants.
In one possible implementation, an electronic device includes a first register; when the first information is used for indicating the urgent degree of the fragmentation processing of the electronic equipment, the first information is used for indicating that the data storage is good and the optimization is not needed when the value of the first register is the first value; when the value of the first register is a second value, the first information is used for indicating recommendation to optimize; when the value of the first register is a third value, the first information is used for indicating that the optimization is strongly recommended, and the data storage performance is reduced; or when the value of the first register is the fourth value, the first information is used for indicating that the optimization is strongly recommended, and the data storage performance is severely reduced.
In one possible implementation, the electronic device includes a second register, a value of the second register being a fifth value; responding to the operation of triggering the second control by the user, performing fragment processing, including: responding to the operation of triggering the second control by the user, and updating the value of the second register to be a sixth value; if the value of the second register is the sixth value, the fragmentation processing is performed.
In a possible implementation, the electronic device includes a third register, where the second information is used to indicate a processing state of the process, and when a value of the third register is a seventh value, the second information is used to indicate that the process is in processing; when the value of the third register is an eighth value, the second information is used for indicating that the process is terminated in advance; when the value of the third register is a ninth value, the second information is used for indicating that the process is successfully completed; or when the value of the third register is a tenth value, the second information is used for indicating that the process is not completed due to the occurrence of an error.
In one possible implementation, the third interface further includes a third control; the method further comprises the steps of: and responding to the operation of triggering the third control by the user, and displaying a second interface.
In a possible implementation, the method further includes: in the case where the fragment processing is completed, displaying a fourth interface, the fourth interface including third information, the third information including one or more of the following information: the method comprises the steps that after fragmentation processing, a first device in the electronic equipment is in a state, wherein the first device is used for storing data, and the state of the first device is used for reflecting the performance of the first device; a storage space which is processed by the fragments; the reading and writing speed is improved after the chip treatment; the time required by the fragment treatment is carried out again after the fragment treatment; the urgent degree of the chip treatment is carried out again after the chip treatment; or the fragmentation degree of the data storage after fragmentation processing.
In a possible implementation, the fourth interface further includes a fourth control; the method further comprises the steps of: and responding to the operation of triggering the fourth control by the user, and performing fragment processing.
In a third aspect, the present application provides a fragment processing method, applied to an electronic device, including: displaying an eighth interface, wherein the eighth interface comprises a first suspension ball, the first suspension ball comprises a first numerical value, the first numerical value is used for indicating the state of a first device in the electronic equipment, the first device is used for storing data, and the state of the first device is used for reflecting the performance of the first device; and responding to the operation of triggering the first suspension ball by the user, and performing fragment processing.
In one possible implementation, performing fragment processing in response to a user triggering operation of a first hover ball includes: in response to a user triggering operation of the first hover ball, displaying a third interface including second information indicating one or more of: a state of the first device; the electronic equipment performs a process operated by fragment processing; or the processing state of the process, which is in the process, terminated in advance, completed successfully or not completed due to error. Therefore, the control for fragment processing is represented by the suspension ball, the operation is convenient, and the user experience is improved.
In one possible implementation, displaying a third interface in response to a user triggering operation of the first hover ball includes: responding to the operation of triggering the first suspension ball by a user, and displaying a second interface, wherein the second interface comprises a second control and first information; responding to the operation of triggering the second control by the user, and displaying a third interface; wherein the first information is used to indicate one or more of: a state of the first device; the estimated time length required by the electronic equipment for fragment processing; the urgency of the electronic device to perform fragment processing; the degree of fragmentation of the data store in the electronic device; or the electronic equipment predicts the space which can be tidied after carrying out the fragment processing; the electronic device predicts a read-write speed that can be increased after performing the fragmentation processing.
In a fourth aspect, the present application provides an electronic device comprising: a processor and a memory; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored in the memory such that the electronic device is configured to perform the method described in any one of the possible implementations of the aspects described above.
In a fifth aspect, the present application provides an electronic device, which may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), or the like. The electronic device may be a mobile phone, a smart television, a wearable device, a tablet (Pad), a computer with wireless transceiving function, a Virtual Reality (VR) electronic device, an augmented reality (augmented reality, AR) electronic device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned driving (self-driving), a wireless terminal in teleoperation (remote medical surgery), a wireless terminal in smart grid (SMART GRID), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (SMART CITY), a wireless terminal in smart home (smart home), and the like.
In a sixth aspect, the present application provides a computer-readable storage medium storing a computer program. The computer program, when executed by a processor, implements the method described in any one of the possible implementations of the aspects described above.
In a seventh aspect, the application provides a computer program product comprising a computer program which, when run, causes a computer to perform the method described in any one of the possible implementations of the aspects.
It should be understood that, the fourth to seventh aspects of the present application correspond to the technical solutions of the first to third aspects of the present application, and the advantages obtained by each aspect and the corresponding possible embodiments are similar, and are not repeated.
Drawings
FIG. 1 is a schematic diagram of memory allocation and optimization;
fig. 2 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
FIG. 3 is a block diagram of a software architecture of an electronic device to which embodiments of the present application are applicable;
FIG. 4 is a schematic diagram of an interface for fragment processing according to an embodiment of the present application;
FIG. 5 is a schematic flow chart of a fragment processing method according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a current score of a device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an interface for another fragment processing provided by an embodiment of the present application;
FIG. 8 is a schematic flow chart of another fragment processing method provided by an embodiment of the present application;
FIG. 9 is a schematic diagram of an interface for yet another fragment processing provided by an embodiment of the present application;
FIG. 10 is a schematic flow chart of yet another fragment processing method provided by an embodiment of the present application;
FIG. 11 is a schematic diagram of an interface for another fragment processing provided by an embodiment of the present application;
FIG. 12 is a schematic flow chart of another fragment processing method provided by an embodiment of the present application;
FIG. 13 is a block diagram illustrating a fragment processing method according to an embodiment of the present application;
FIG. 14 is a schematic flow chart diagram of yet another fragment processing method provided by an embodiment of the present application;
Fig. 15 is a schematic block diagram of a chip according to an embodiment of the present application.
Detailed Description
In order to clearly describe the technical solution of the embodiments of the present application, the following description is first made:
in embodiments of the present application, the words "first," "second," and the like are used to distinguish between identical or similar items that have substantially the same function and effect. For example, the first interface and the second interface are merely for distinguishing between different interfaces, and are not limited in order. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
It should be noted that "at … …" in the embodiment of the present application may be an instant occurring in a certain situation, or may be a period of time before and after a certain situation occurs, which is not particularly limited in the embodiment of the present application. In addition, the display interface provided by the embodiment of the application is only used as an example, and the display interface can also comprise more or less contents.
To facilitate understanding of embodiments of the present application, a general flash storage (universal flash storage, UFS) device to which embodiments of the present application relate will first be described.
The UFS device is a mobile storage product based on the UFS protocol, where the UFS protocol is a communication interface protocol formulated by JEDEC for a mobile storage device. UFS devices are widely used in the fields of smart phones, tablet computers, virtual Reality (VR) devices, and augmented reality (augmented reality, AR) devices. UFS devices consist of a controller (Contoller) and memory (e.g., NOR-type memory or NAND-type memory). The data is stored in the memory, and the controller is responsible for management of the memory, data flow control and the like. Due to some characteristics of the memory, the UFS device is easy to generate fragmented files, and the device performance in a high-fragmentation scene may be seriously deteriorated.
The UFS device may be used in an electronic device to store files and to store data required for the running of an application. As the service time of the electronic device is longer and longer, the fragmentation degree in the UFS device is higher and higher, and the electronic device obtains the file or data required by the application, so that the file opening or the application opening duration is longer, and the user cannot respond to the operation of opening the file or the application in time, thereby affecting the user experience.
Therefore, under the condition that the fragmentation degree in the UFS device is higher and higher, corresponding measures are needed to be taken in time to optimize the UFS device. In some implementations, the electronic device optimizes the UFS device in a "midnight chicken" manner. For example, when the electronic device is idle (e.g., off-screen or charged), the defragmentation method is executed, and the memory space arrangement is triggered by adopting the stitching pin, so that the UFS device is optimized and the user does not feel at the same time. The defragmentation method performed by the electronic device may be Anti-spam Organization (ARO), file-based optimization (file based optimization, FBO), or garbage collection mechanism (garbage collection, GC), among others.
Illustratively, FIG. 1 shows a schematic diagram of storage space allocation and optimization. As shown in fig. 1, when the electronic device starts to store data, it allocates consecutive logical blocks, such as logical blocks 1 to 9 shown as a in fig. 1, to the data, and consecutive physical addresses, such as physical addresses 1 to 9 shown as b in fig. 1, to the data, which can be used to start an application, where fragmentation does not occur and UFS devices have no performance degradation. It will be appreciated that in some implementations, the data may also be data included in a file, which is not limited by the embodiment of the present application.
When the applied functions are iteratively upgraded, and 2, 5,6, 8 and 9 in 1 to 9 need to be replaced by new data, the electronic device can rewrite new 2, 5,6, 8 and 9 in the original logic blocks, such as the logic blocks with patterns shown as c in fig. 1; for the physical address, the electronic device cannot directly rewrite new data on the original address, and can allocate other physical addresses to the electronic device, such as the physical address with patterns shown as d in fig. 1, at this time, fragmentation occurs on the physical address, and performance of the UFS device is reduced, at this time, the electronic device responds to the operation of starting the application, and the time period for calling the data becomes longer, so that the starting of the application is slower, and user experience is affected.
The electronic device may perform defragmentation in an off-screen or charged state. As shown by e in fig. 1, the logic blocks are continuous, the electronic device may not optimize the logic blocks, as shown by f in fig. 1, the electronic device may optimize the fragmented physical addresses to be continuous physical addresses, and performance of the UFS device is improved.
In this implementation manner, if the electronic device is in a use state for a short time or long time, for example, the screen-off time of the electronic device is short or the electronic device is not charged for a long time, the electronic device cannot timely perform defragmentation, which may result in a poor UFS device state. When the state of the UFS device is poor, the electronic equipment responds to the fact that the user opens a file or opens an application slowly, and the electronic equipment can be optimized only when waiting for the electronic equipment to be idle, so that the performance of the UFS device cannot be recovered in time, and the user experience is affected.
In an exemplary embodiment, when the electronic device is in a screen-off state, the electronic device performs defragmentation, and when the electronic device is in a use state and is in a screen-on state, the electronic device pauses the defragmentation process and waits for the electronic device to continue to perform defragmentation when the electronic device is in the screen-off state. If the electronic equipment is in a bright screen and in a use state for a long time, the fragmentation degree in the electronic equipment is higher and higher, and the use of a user is affected.
In view of this, an embodiment of the present application provides a fragment processing method and a related apparatus, where a visual interface is provided for a user, where the visual interface includes a control for optimizing a UFS device, and an electronic device optimizes the UFS device in response to a user triggering an operation of the control for optimizing the UFS device, so that the performance of the UFS device may be recovered in time without waiting for the electronic device to be idle, thereby shortening a period of time for the electronic device to respond to a user to open a file or open an application, and improving user experience.
The fragment processing method provided by the embodiment of the application supports the active optimization of the user or prompts the user to perform the optimization, so that the optimization can be performed without waiting for the idle state of the electronic equipment, and the performance of the electronic equipment can be recovered. The fragment processing method provided by the embodiment of the application can comprise, but is not limited to, defragmentation, and can be also suitable for garbage collection, bad block management, wear balance and other scenes. In other words, the fragment processing method provided by the embodiment of the application switches the background automatic optimization method to the foreground display, and responds to the operation of user-triggered optimization to execute the optimization method.
The fragment processing method provided by the embodiment of the application can be applied to electronic equipment, such as smart phones, tablets, VR equipment or AR equipment. In order to facilitate understanding, the following describes a hardware structure of the electronic device provided by the embodiment of the present application.
Fig. 2 is a schematic hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 2, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a microphone 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and the like.
Alternatively, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the application, the electronic device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The internal memory 121 may include a storage program area and a storage data area. In some implementations, the electronic device includes a UFS device, and the storage data area included in the internal memory 121 may be used to store data included in a file or data required for application operation, and so on. The stored program area included in the internal memory 121 may include a program corresponding to the optimization method provided in the embodiment of the present application. Processor 110 may obtain a program from a storage program area in response to a user triggering an operation of a control for optimizing the UFS device, execute the optimization method provided by the implementation of the present application, and sort fragmented data of a storage data area.
The software system of the electronic device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The layered architecture may adopt an Android (Android) system, an apple (IOS) system, or other operating systems, which is not limited in the embodiment of the present application. The software structure of the electronic device is exemplified below by the Android system with a hierarchical architecture.
Fig. 3 is a block diagram of a software structure of an electronic device to which an embodiment of the present application is applicable. The layered architecture divides the software system of the electronic device into several layers, each of which has a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may be divided into four layers, an application layer (applications), an application framework layer (application framework), a hardware abstraction layer (hardware abstraction layer, HAL), a kernel layer (kernel), and a hardware layer in order from top to bottom.
The application layer may include a series of application packages that run applications by calling an application program interface (application programming interface, API) provided by the application framework layer. As shown in fig. 3, the application package may include applications such as settings, system User Interfaces (UIs), telephones, and videos. The system UI can comprise a display control center, a desktop, a negative screen and other interfaces. In some implementations, the control center, desktop, or negative one-screen interface may include controls for optimizing the UFS device in embodiments of the present application, which are not limited in this regard.
The application framework layer provides APIs and programming frameworks for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in fig. 3, the application framework layer may include a view system, a content provider, a telephony manager, and the like. The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. In an embodiment of the application, the view system may include controls for optimizing the UFS device. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a SMS notification icon may include a view displaying text and a view displaying a picture, as well as an interface displaying optimization suggestions and storage performance evaluations.
The HAL layer aims at abstracting hardware, and can provide a unified interface for inquiring hardware equipment for an upper-layer application or can also provide a data storage service for the upper-layer application. As shown in fig. 3, the HAL layer may include a display driving module and a UFS status detection module. The UFS state detection module is configured to detect state information of the UFS device in real time or periodically, and store the state information in a register.
For example, the status information of the UFS device may include at least one of device GC urgency level, file fragmentation level, table entry fragmentation level, single level memory cell (SINGLE LEVEL CELL, SLC) fill level, number of rereads (READ RETRY). The plurality of pieces of information in the status information may be stored in one register, or may be stored in one register, which is not limited in the embodiment of the present application.
The kernel layer is a layer between hardware and software. As shown in fig. 3, the kernel layer may include one or more of the following: the system comprises an evaluation optimization instruction execution receiving module, a data processing module, a user judgment instruction receiving module, an instruction response module, a performance evaluation operation executing module and the like.
The evaluation optimization instruction execution receiving module is used for receiving an instruction of a user so as to evaluate the UFS device. After the evaluation optimization instruction execution receiving module receives the instruction of the user, the data processing module can be instructed to acquire the state information of the UFS device. The data processing module may obtain the status information of the UFS device from the UFS status detection module, evaluate the status of the UFS device based on the status information of the UFS device, and output an optimization operation suggestion according to the evaluation result, for example, the data processing module may score the status of the UFS device based on the status information of the UFS device, and output whether to optimize the content according to the score. The user judging instruction receiving module is used for receiving whether the user executes the optimizing operation or not, and when the user executing the optimizing operation is received, the instruction responding module is instructed to execute the corresponding optimizing method. After the instruction response module executes the corresponding optimization method, the performance evaluation operation execution module is instructed to evaluate the performance of the optimized device. The performance evaluation operation execution module can compare the performance of the optimized device with the performance of the device before the optimization, evaluate the improved performance and output the optimization result.
The above instructions of the user and information about whether the user performs the optimization operation may be transferred from the application layer to the kernel layer through the application framework layer and the hardware abstraction layer, and a specific transfer process will not be described in detail herein. The optimization operation suggestions and optimization results may be transferred to the application layer via the hardware abstraction layer and the application framework layer, and the specific transfer process is not described in detail herein.
The hardware layer may include: UFS device, camera and display screen.
It should be understood that in some embodiments, layers that implement the same function may be referred to by other names, or layers that implement the functions of multiple layers may be taken as one layer, or layers that implement the functions of multiple layers may be divided into multiple layers. The embodiment of the present application is not limited thereto.
The electronic device provided by the embodiment of the application is described above with reference to fig. 2 and 3, and the fragment processing method applied to the electronic device will be described below.
The electronic equipment provided by the embodiment of the application can feed back the file fragmentation information to the user through the interface display, give the user optimization suggestion, and determine whether to optimize or not by the user. In some implementations, the embodiment of the present application may add a fragmented file option in the user operation interface, where the option may be on a desktop, a control center, a negative screen, or a deeper directory, for example, the fragmented file option may be displayed on the desktop in a hover ball form, or the fragmented file option may be displayed on the desktop in an application icon form, or the fragmented file option may be in a storage option under a setting application, where the embodiment of the present application is not limited. The electronic device can support the user to view the information related to file fragmentation through the option, and provide optimization suggestions for the user, so that the user can conveniently determine whether to perform optimization.
The following description will take an example in which the fragmented file option is in the storage option under the setting application.
Illustratively, FIG. 4 shows an interface schematic of a fragment processing provided by an embodiment of the present application. The electronic equipment is a mobile phone. As shown in the interface a of fig. 4, the electronic device displays a storage interface in response to a user setting an operation of the application to trigger a storage option. The storage interface may include available storage space, used storage space, total storage space, data types that occupy storage space, and a clean-up acceleration control that supports a user to clean up stored data. As shown in the interface a of fig. 4, the available memory space is 465.84G, the used memory space is 46.16GB, and the total memory space is 512G. The data types occupying the storage space include pictures, video, audio, documents, compression packages, installation packages, applications, systems, and fragmented files 401. The user may click on the fragmented file 401 to view information related to the file fragmentation.
The electronic device, in response to a user triggering the operation of the fragmented file 401, may display a storage performance assessment interface, which may include a score of the UFS device, status information of the UFS device, and related optimization suggestions, as shown in interface b in fig. 4. In the interface b in fig. 4, the score of the UFS device is 80, the fragmentation level of the UFS device is the status information of the UFS device, the fragmentation level of the UFS device is 2, the optimization suggestion is embodied by the optimization urgency, the current optimization urgency is the strongly recommended optimization, and if the optimization is performed, the optimization duration is 10 minutes. The storage performance evaluation interface further comprises a one-key optimization control 402 and a setting control 403, wherein the one-key optimization control 402 can be used for supporting a user to optimize, the setting control 403 can be used for supporting the user to set the one-key optimization control 402 as a hover sphere or in a control center, and the setting control 403 can also be used for supporting the user to change, delete or increase the state information displayed on the b interface in fig. 4, for example, the electronic device supports the user to delete the fragmentation level displayed on the b interface in fig. 4. In this way, the user is supported to adjust the display form of the one-key optimization control 402 and adjust the display content, which is more flexible and beneficial to improving the user experience. It will be appreciated that the content of the storage performance evaluation interface is merely an example, and embodiments of the present application are not limited in this respect.
In response to a user triggering the operation of the one-touch optimization option 402, the electronic device may display a one-touch optimization interface in which an optimization state, a completed optimization project, a score of the UFS device after completing the optimization project, and a cleaning optimization project may be displayed, as shown in interface c in fig. 4. It will be appreciated that the c interface in fig. 4 is any interface in the optimization of the electronic device, and the embodiment of the present application is not limited thereto.
In the interface c in fig. 4, the optimization state is in the optimization, the completed optimization project is defragmentation file arrangement, after defragmentation file arrangement is completed, the score of the UFS device is 85, and the cleaning optimization project is security protection optimization. The one-touch optimization interface may also include a cancel control 404 to support user cancellation of optimizations. If the user cancels the optimization, the electronic device can suspend the optimization, and when the user triggers the one-key optimization again or the electronic device detects that the device is idle, the optimization can be continued. The electronic device can display a storage performance assessment interface, as shown in interface b in fig. 4, in response to a user triggering the operation of cancel control 404.
In the process of optimizing the electronic equipment, if the user does not cancel the optimization, the electronic equipment can be always optimized until the optimization is completed. When the electronic device optimization is complete, the electronic device may display a storage performance evaluation interface. The storage performance evaluation interface comprises the score of the optimized UFS device, the size of the sorted space, the state information of the optimized UFS device and the optimized relevant optimization suggestions, as shown by the interface d in fig. 4. In the d interface in fig. 4, the updated UFS device has a score of 96, the sorted space size is 10gb, the fragmentation level of the UFS device is 0 level, the optimization forcing degree is that optimization is not needed, and the optimization duration is 1 minute. The display duration of the sorted space size is within a certain range, and the sorted space size is not always displayed, and is not included in the storage performance evaluation interface after the display duration is reached. It will be appreciated that the score of the optimized UFS device, the status information of the optimized UFS device, and the relevant optimized suggestions after optimization are always displayed in the storage performance assessment interface.
In some implementations, the electronic device can display the storage performance assessment interface when the electronic device optimization is complete. The storage performance evaluation interface comprises the score of the optimized UFS device, the performance improvement amplitude, the state information of the optimized UFS device and the optimized relevant optimization suggestions. The display duration of the performance improvement range is within a certain range, and the performance improvement range is not always displayed, and is not included in the storage performance evaluation interface after the display duration is reached. Wherein, the performance improvement can be read-write speed improvement.
In some implementations, the size of the sorted space and the magnitude of the performance improvement may be displayed simultaneously in the storage performance evaluation interface, or may be displayed sequentially, which is not limited by the embodiment of the present application. The display durations may be the same or different, which is not limited in the embodiment of the present application.
The interface shown in fig. 4 is designed based on the fragment processing method according to the present application, and the fragment processing method according to the embodiment of the present application is described below.
Illustratively, fig. 5 shows a schematic flowchart of a fragment processing method provided by an embodiment of the present application. As shown in fig. 5, the method may include the steps of:
s501, displaying a fragmented file option.
The fragmented file option is merely an example of a name, and may also be referred to as a storage space sort option or a file sort option, which is not limited in this embodiment of the present application.
The interface displayed by the electronic equipment for the user comprises a fragmented file option, so that the user is supported to view information related to the fragmented file. For example, the storage interface display fragmented file 401 in fig. 4 described above. When a user has a need to optimize the performance of the UFS device (or a need to optimize the storage space), a fragmented file option is triggered. The operation of triggering the fragmented file option by the user may be a click, double click, long press or sliding operation, which is not limited in the embodiment of the present application.
S502, the electronic equipment responds to the operation of triggering the fragmented file option by the user to acquire device state information.
The device state information is state information of the UFS device.
In some embodiments, the status information of the UFS device may include one or more of device GC urgency level, file fragmentation level, entry fragmentation level, SLC fill level, and number of rereads (READ RETRY). The status information of the UFS device may be stored in a register in the UFS device, from which the electronic device may derive. The status information may be stored in a different register or in the same register, and may be determined according to the attribute of the UFS device, which is not limited by the embodiment of the present application.
If different state information is stored in different registers, the electronic device may obtain corresponding state information in different registers.
Illustratively, table one shows the attributes of the registers.
List one
As shown in table one, the electronic device may obtain a file fragmentation level of 01h from a register with a reference numeral 31h and a name bHIDFragmentStatus, where 01h is used to indicate that the file fragmentation level is 1. As can be seen from Table one, the type of register with the designation 31h, bHIDFragmentStatus is read-only, the number of bits is 1 byte, and the default value is 00h.
The electronic device may obtain the table entry fragmentation level TBD from a register with reference numeral 21h and reference numeral DFRAGMENTEDLEVEL, where the TBD is used to represent tentative uncertainty. At this time, the electronic device may not use the table entry fragmentation level when performing UFS device status evaluation. As can be seen from Table one, the type of register with the designation 21h, DFRAGMENTEDLEVEL is read-only, the number of bits is 4 bytes, and the default value is D.
S503, the electronic equipment calculates the current score of the device based on the device state information.
The device current score is used to evaluate the current state of the UFS device, in relation to the device state information. The current device score may also be referred to as a score, which is not limited by embodiments of the present application. The device status information may include one information or may include a plurality of information, which is not limited in the embodiment of the present application. If the device state information comprises one piece of information, the calculation formula for calculating the current score of the device is simple, and the calculation speed is improved. If the device state information comprises a plurality of pieces of information, the calculated current score of the device is relatively accurate, and the accuracy of calculation is improved.
When the device state information includes a plurality of pieces of information, each piece of state information in the device state information may include a weight, and weights of different pieces of state information may be the same or different, or different weights may be set according to different scenes. The flexible line is stronger. In this way, the device current score may be related to the device state information and the weight of the device state information.
Illustratively, the device state information may include a device GC urgency level, a file fragmentation level, an entry fragmentation level, an SLC fill level, and a number of rereads (READ RETRY). a is used for representing the weight of the GC urgent level of the device, b is used for representing the weight of the file fragmentation level, c is used for representing the weight of the table item fragmentation level, d is used for representing the weight of the SLC filling level, and e is used for representing the weight of the number of rereads. The current score of the device may satisfy the following formula:
Device current score = 100-a device current GC imminent level/device GC total level-b file fragmentation current level/file fragmentation total level-c table entry fragmentation level/file fragmentation total level-d current SLC capacity fill percentage-e number of rereads/total number of commitments. Wherein, a+b+c+d+e=100, and the worst grade of the device GC, the total grade of file fragmentation and the total number of times of convention are preset constants. It will be appreciated that the current score for a device ranges from 0 minutes to 100 minutes.
Taking the device GC urgency level as an example, if the device GC urgency level is divided into four levels, the four levels are 0,1,2, and 3, respectively. 0 can be used to indicate that GC is not required, with increasing numbers increasing GC urgency. In some examples, the identification of the device GC urgency level may be bBackgroundOpStatus, and the electronic device may read the device GC urgency level through a value corresponding to the identification. When the device current GC urgency level is 1, it is necessary to subtract a 1/4 from 100 when calculating the device current score. The other state information is calculated in a similar manner and will not be described in detail herein.
In some implementations, the device current GC imminent level/device GC total level may be expressed as a device GC related score, the file fragmentation current level/file fragmentation total level may be expressed as a file fragmentation score, the entry fragmentation level/file fragmentation total level may be expressed as an entry fragmentation score, the current SLC capacity fill percentage may be expressed as an SLC remaining capacity score, and the number of rereads/commitments total may be expressed as a data reliability related score. The device current score is related to the device GC-related score, the file fragmentation score, the entry fragmentation score, the SLC residual capacity score, and the data reliability-related score.
Illustratively, FIG. 6 shows a schematic diagram of a current score for a device. As shown in fig. 6, the device GC-related score is weighted a, the file fragmentation score is weighted b, the table entry fragmentation score is weighted c, the SLC residual capacity score is weighted d, and the data reliability-related score is weighted e. Device current score = 100-a device GC correlation score-b file fragmentation score-c table entry fragmentation score-d SLC residual capacity score-e data reliability correlation score.
S504, the electronic equipment determines optimization suggestions based on the current score of the device.
The electronic device may determine an optimization suggestion based on the current score of the device, where the optimization suggestion may include information such as whether to suggest an optimization, a time required for the optimization, and an expected performance improvement after the optimization. The optimization suggestions may also include other information such as fragmentation level, which is not limited by the embodiments of the present application.
In some implementations, the electronic device can provide suggestions to the user as to whether to optimize based on the current score of the device. For example, when the device current score is in the range of [95,100], the electronic device may set register bBackgroundOpStatus to 0x00, when the electronic device detects register bBackgroundOpStatus =0x00, it may indicate that the current device state is good, and the electronic device may suggest that the user does not need optimization. When the device current score is within [90, 95), the electronic device may set register bBackgroundOpStatus to 0x01, and when the electronic device detects register bBackgroundOpStatus =0x01, it may indicate that the current device performance is degraded, but the degradation is smaller, and the electronic device may suggest user optimization. When the device current score is within [80, 90), the electronic device may set register bBackgroundOpStatus to 0x02, when the electronic device detects register bBackgroundOpStatus =0x02, it may be stated that the current device performance drops significantly, and the electronic device may strongly suggest user optimization. When the device current score is between [0,80), the electronic device may set register bBackgroundOpStatus to 0x03, when the electronic device detects register bBackgroundOpStatus =0x03, it may indicate that the current device performance is severely degraded, the electronic device may strongly suggest user optimization, and prompt the user that use has been severely affected.
In some implementations, the electronic device can determine optimized content based on the current score of the device and can estimate a time required for optimization based on the optimized content. It will be appreciated that the desired optimization is of a content, and that at a particular level the desired optimization time is known or can be estimated, and that the electronic device can calculate the desired optimization time based on the level of the desired optimization content.
For example, according to the current score of the device, the electronic device determines that the optimized content is defragmentation file arrangement and security protection optimization, the defragmentation file arrangement needs 8 minutes for optimization, and the security protection optimization needs 2 minutes for optimization, and then the electronic device may determine that the optimization needs 8+2=10 minutes.
In some implementations, the predicted performance improvement after optimization may include: it is expected how much space is sorted out, how much read-write speed is expected to be increased, how much device score is expected to be increased, etc., which is not limited by the embodiment of the application.
S505, the electronic device may display the device current score, the optimization suggestion, and the one-touch optimization control.
The electronic equipment can display the current score of the device through a human-computer interaction interface so as to facilitate the user to know the current state of the device; displaying optimization suggestions through a human-computer interaction interface so as to facilitate a user to know whether the device needs optimization and the effect of the optimization; and a one-key optimization control is displayed through the human-computer interaction interface, so that an optimization inlet is provided for a user, the device is optimized in time when the user actively triggers the optimization, the performance of the device is improved, and the use requirement of the user is met.
Illustratively, in the example shown in fig. 4 above, in the b interface in fig. 4, the device currently scores 80 points, and the optimization suggestions include suggestions that suggest user optimization, fragmentation level, optimization forcefulness, and optimization duration.
The electronic equipment displays a one-key optimization control, which can support the user to select optimization and can also support the user to not optimize. If the electronic device detects the operation of the user to trigger the return, the fragmented file option may be displayed, that is, S501 is executed. If the electronic device detects that the user triggers the operation of one-touch optimization, the optimization may be performed, that is, S506 is performed.
And S506, the electronic equipment responds to the operation of triggering one-key optimization by a user, performs optimization, and displays the state of the optimization process and the cancel control.
The operation of triggering the one-key optimization by the user may be clicking, double clicking, sliding or long pressing, which is not limited in the embodiment of the present application. The optimization process is used to represent one or more processes that perform an optimization, and is named as an example, and embodiments of the present application are not limited in this regard.
Illustratively, the initial value of register fWriteBoosterBufferFlushEn is 0x00, indicating that the user has not triggered one-touch optimization. When the electronic device detects that the user triggers the one-touch optimization operation, the electronic device may update the value of the register fWriteBoosterBufferFlushEn to 0x01, indicating that the user triggers the one-touch optimization. When the value of the register fWriteBoosterBufferFlushEn is 0x01, the electronic device executes an optimization method, and the optimization method may be related to the current score of the device and the device state information.
In the process of performing optimization, the electronic device may read the value of the register bWriteBoosterBufferFlushStatus, determine the state of the optimization process according to the value of the register bWriteBoosterBufferFlushStatus, and display the state of the optimization process. Different optimization processes may correspond to different registers, and the electronic device may display its corresponding states for the different optimization processes.
Illustratively, the initial value of register bWriteBoosterBufferFlushStatus is 0x00, indicating no optimization process; when the value of register bWriteBoosterBufferFlushStatus is 0x01, this indicates that an optimization process is in progress; when the value of register bWriteBoosterBufferFlushStatus is 0x02, it indicates that the optimization process has terminated in advance; when the value of register bWriteBoosterBufferFlushStatus is 0x03, it indicates that the optimization process has been completed successfully; when the value of register bWriteBoosterBufferFlushStatus is 0x04, this indicates that the optimization process is not complete due to some error.
In the example shown in the interface c in fig. 4, the electronic device reads the value of the register of the process corresponding to the defragmentation file arrangement to be 0x03, which indicates that the defragmentation file arrangement is optimized, reads the value of the register of the process corresponding to the security protection optimization to be 0x01, and indicates that the security protection optimization is being cleaned.
When the electronic equipment displays the state of the optimization process, a cancel control can be provided so as to support a user to cancel the optimization at any time, and the flexibility is higher. If the electronic device detects the operation of the user to trigger cancellation, a fragmented file option may be displayed, that is, S501 is executed. In some embodiments, if the electronic device detects a user-triggered cancel operation, the device's current score, optimization suggestion, and one-touch optimization control may be displayed.
S507, after the optimization of the electronic equipment is completed, updated device state information is obtained, and the score of the optimized device is calculated and displayed.
After the electronic device runs the optimization process successfully, updated device state information can be obtained again from the register of the UFS device, the score of the optimized device is calculated based on the formula introduced in S503, and the score is displayed on the interface, so that the user can know the performance improvement caused by the optimization. The electronic device may also display the size of the sorted space, the amplitude of the increase of the read-write speed, or the fragmentation level after optimization, which is not limited in the embodiment of the present application.
For example, in the example shown in fig. 4, after the electronic device is optimized, the d interface in fig. 4 may be displayed, and the score after optimization, the size of the sorted space, the level of the broken flowers after optimization, the degree of forced cut after optimization, and the duration of re-optimization after optimization are displayed.
According to the fragment processing method provided by the embodiment of the application, the user is provided with the optimizing entrance by displaying the fragmented file option, the user is supported to optimize at any time by the one-key optimizing option, the optimization when the equipment is idle is not needed, the equipment performance is recovered in time, the time for the electronic equipment to respond to the user to open the file or open the application is shortened, and the user experience is improved. In addition, the electronic equipment also displays device scores and optimization suggestions, so that a user can know the device performance conveniently, and reasonable optimization is realized. In addition, the electronic equipment also displays the optimization process and the score after optimization, so that a user can know the optimized content and the optimized effect conveniently, the user trust degree is increased, and the user experience is improved.
In order to support a user to optimize more conveniently, the embodiment of the application also provides a fragment processing method, wherein the electronic equipment responds to the operation that the user sets a fragmented file option as a suspension ball, the fragmented file option can be displayed in the form of the suspension ball, the current score of a device can be displayed in the suspension ball in real time, and the UFS device can be optimized in response to the operation that the user triggers the suspension ball.
Illustratively, FIG. 7 shows an interface schematic of a fragment processing provided by an embodiment of the present application. The electronic equipment is a mobile phone. As shown in interface a in fig. 7, the electronic device displays a main interface in which fragmented file options are displayed in the form of a hover sphere and displays the device current score 80. The electronic device performs optimization in response to the user triggering the operation of the suspension ball, and displays a one-touch optimization interface, as shown in interface b in fig. 7. The b interface in fig. 7 is the same as that shown in the c interface in fig. 4, and will not be described here. After the electronic device is optimized, a main interface may be displayed, where the devices in the suspension ball currently score 96, as shown in interface c in fig. 7.
In some implementations, the interface b in fig. 7 may also be not displayed, that is, the electronic device displays a main interface, and in response to the user triggering the operation of the suspension ball, the optimization is performed, and after the optimization is completed, the score in the suspension ball is updated. Therefore, the interface display is less, so that the information perceived by the user is less, and the UFS device can be optimized under the condition that the user perceives less.
In some implementations, the electronic device may display the b interface of fig. 4 described above in response to a user triggering operation of the hover ball. The electronic device optimizes the UFS device in response to the user triggering the one-key optimization 402, and displays the interface c in fig. 4, and when the optimization is completed, the electronic device updates the score in the suspension ball, and displays the interface b in fig. 7. Or when the optimization is completed, the electronic device displays the interface d in fig. 4, and in response to the operation of triggering the return by the user, the score in the suspension ball is updated, and the interface b in fig. 7 is displayed.
The interface shown in fig. 7 is designed based on the fragment processing method according to the present application, and the fragment processing method according to the embodiment of the present application is described below.
Illustratively, fig. 8 shows a schematic flow chart of a fragment processing method provided by an embodiment of the present application. As shown in fig. 8, the method may include the steps of:
s801, the electronic equipment detects the operation that a user sets a fragmented file option as a suspension ball.
The electronic device may include a control for setting the fragmented file option to a hover ball, which the user may trigger to open to effect setting the fragmented file option to a hover ball. The embodiment of the application does not limit the position of the control in the electronic equipment. It will be appreciated that when the user triggers the control to open, the electronic device detects operation of the user to set the fragmented file option to a hover ball.
S802, the electronic equipment responds to the operation that the user sets the fragmented file option as a suspension ball, and acquires device state information.
S803, the electronic equipment calculates the current score of the device based on the device state information.
S802 and S803 may refer to S502 and S503 in fig. 5, and are not described herein.
S804, the electronic equipment displays the suspension ball, wherein the suspension ball comprises the current score of the device.
The electronic device may display the hover sphere on the currently displayed interface including the current score of the device, e.g., the electronic device may display the hover sphere on the main interface, as shown by interface a in fig. 11 above.
S805, the electronic device detects a triggering operation of the user on the suspension ball.
The triggering operation of the suspension ball by the user may be a clicking operation, a long-pressing operation, a sliding operation, or the like, which is not limited in the embodiment of the present application. The electronic device may perform optimization in response to the user triggering the operation of the suspension ball, display the c interface in fig. 4, that is, execute S506, cancel the display of the c interface in fig. 4 after the optimization is completed, obtain updated device state information, calculate the score of the optimized device, and display the score in the suspension ball, as shown in the c interface in fig. 7.
It will be appreciated that when the electronic device executes S506, the interface c in fig. 4 may be displayed, and if the operation of the cancel control 404 triggered by the user is detected, a hover ball may be displayed on the currently displayed interface, where the hover ball includes the current score of the device, that is, S804 is executed.
According to the fragment processing method provided by the embodiment of the application, the fragmented file option can be set as the suspension ball, so that the user is supported to optimize the UFS device through the operation triggering of the suspension ball, the UFS device is more conveniently optimized, the operation of the user is reduced, and the user experience is improved.
In the above embodiment, the user may optimize through the fragmented file option. The embodiment of the application also provides a fragment processing method, wherein the electronic equipment can detect the performance of the UFS device when a user starts a specific application program, and if the performance of the UFS device is detected to be poor, the user can be prompted to perform optimization, and the storage performance evaluation interface is displayed in response to the operation of triggering and determining the optimization by the user. More data is needed when a specific application program runs, and the running of the UFS device with better performance is beneficial to reducing the probability of the operation of the card. For example, the particular application may be a gaming application or a video application, etc.
In this case, the timing of the electronic device displaying the alert information may include a variety of possible implementations. In one possible implementation, the electronic device may display the reminder information prior to displaying the interface of the particular application. In another possible implementation, the electronic device may display the reminder information when displaying the interface of the particular application.
One possible implementation of displaying the hint information will be described below in connection with fig. 9 and 10.
Illustratively, FIG. 9 shows an interface schematic of a fragment processing provided by an embodiment of the present application. The electronic equipment is a mobile phone. As shown in the interface a of fig. 9, the electronic device displays a main interface including a file application icon, a mailbox application icon, a game application icon, a calculator application icon, an alarm application icon, a gallery application icon, and a memo application icon.
When a user has a need to use a game application, a game application icon may be triggered to open the game application. The electronic device obtains device state information in response to a user triggering an operation of the game application icon, calculates a current score of the device based on the device state information, and if the current score of the device is smaller than a score threshold, for example 80, may display a bullet box on a main interface, as shown in interface b in fig. 9. In the interface b in fig. 9, the bullet box includes a prompt 901, a determination control 902 and a cancel control 903, where the prompt 901 may be "whether current fragmentation is serious and optimization is performed" for prompting optimization of the UFS device. The determine control 902 is triggered to indicate that optimization is performed and the cancel control 903 is triggered to indicate that optimization is not performed.
If the electronic device detects a user triggering the operation of cancel control 903, an interface of the gaming application may be displayed. If the electronic device detects that the user triggers the operation of the determination control 902, a storage performance evaluation interface may be displayed, as shown in interface c in fig. 9, where the electronic device supports the user to optimize through the one-touch optimization control in the storage performance evaluation interface. The electronic device detects that the user triggers the one-key optimization control, and may display the interface c in fig. 4. If the electronic device detects that the user triggers the operation of cancel control 404, an interface of the gaming application may be displayed.
The interface shown in fig. 9 is designed based on the fragment processing method according to the present application, and the fragment processing method according to the embodiment of the present application is described below.
Illustratively, fig. 10 shows a schematic flowchart of a fragment processing method provided by an embodiment of the present application. As shown in fig. 10, the method may include the steps of:
S1001, the electronic device detects an operation of opening a specific application by a user.
The specific application may be the above game application or the video application, which is not limited in the embodiment of the present application.
The operation of opening a specific application by a user may be used as a time for triggering the electronic device to obtain device state information, and in some implementations, the user triggers one or more functions in the specific application and may also be used as a time for triggering the electronic device to obtain device state information.
S1002, the electronic equipment responds to the operation of opening a specific application by a user to acquire device state information.
The specific implementation of the electronic device to obtain the device state information may refer to S502 in fig. 5, which is not described herein.
S1003, the electronic equipment calculates the current score of the device based on the device state information.
This step may refer to S503 in fig. 5, and will not be described here.
S1004, the electronic equipment judges whether the current score of the device is smaller than or equal to a score threshold.
The score threshold is used for representing the critical value of the device performance, and the value smaller than or equal to the score threshold can represent that the device performance needs or needs to be optimized urgently, and the value larger than the score threshold can represent that the device performance is good and optimization is not needed. The specific values of the score threshold are not limited in the embodiment of the application.
If the current score of the device is less than or equal to the score threshold, the electronic device displays a frame on the interface for displaying the specific application, where the frame may be as shown in the interface b in fig. 9.
If the electronic device detects that the user triggers the operation of the determination control 902 in the frame, the electronic device may execute S504 to S507 in response to the user triggering the operation of the determination control 902 in the frame, which will not be described herein.
S1006, the electronic device may display an interface of the specific application in any of the following cases:
the current score of the device is greater than the score threshold;
When the electronic equipment displays the bullet frame, detecting that a user triggers the operation of the cancel control 903;
When the electronic equipment displays the interface b in the figure 4, responding to the operation of user triggering and returning;
When the electronic equipment displays the interface c in the figure 4, responding to the operation of user triggering cancellation; or alternatively
When the electronic device displays the d interface in fig. 4, the electronic device responds to the operation of the user triggering the return.
According to the fragment processing method provided by the embodiment of the application, the performance of the UFS device is evaluated in response to the operation of opening the specific application by the user, and if optimization is required, prompt information is displayed before the interface of the specific application is displayed, so that the user can optimize the UFS device, and the method is beneficial to running the specific application program under the condition that the performance of the UFS device is better, and the probability of the running of the blocking is reduced.
Another possible implementation of displaying hints information will be described below in connection with fig. 11 and 12.
Illustratively, FIG. 11 shows an interface schematic of another fragment processing provided by an embodiment of the present application. The electronic equipment is a mobile phone. As shown in the interface a of fig. 11, the electronic device displays a main interface including a file application icon, a mailbox application icon, a game application icon, a calculator application icon, a phone application icon, a gallery application icon, and a memo application icon.
When a user has a need to use a game application, a game application icon may be triggered to open the game application. The electronic device may display a game interface in response to a user triggering an operation of the game application icon, obtain device state information, and calculate a device current score based on the device state information, and if the device current score is less than a score threshold, for example 80, may display a bullet box on the game interface, as shown in interface b in fig. 11. In the interface b in fig. 11, the bullet box includes a prompt 1101, a determination control 1102, and a cancel control 1103, where the prompt 1101 may be "whether the current device performance is poor and optimization is performed" for prompting optimization of the UFS device. The determine control 1102 is triggered to indicate that optimization is performed and the cancel control 1103 is triggered to indicate that optimization is not performed.
The interface shown in fig. 11 is designed based on the fragment processing method according to the present application, and the fragment processing method according to the embodiment of the present application is described below.
Illustratively, fig. 12 shows a schematic flowchart of a method for processing fragments according to an embodiment of the present application. As shown in fig. 12, the method may include the steps of:
s1201, the electronic device detects an operation of opening a specific application by the user.
S1202, the electronic equipment responds to the operation of opening a specific application by a user to acquire device state information.
S1203, the electronic apparatus calculates a current score of the device based on the device state information.
S1204, the electronic equipment judges whether the current score of the device is smaller than or equal to a score threshold.
S1201 to S1204 may refer to S1001 to S1004 in fig. 10 described above, and are not described here again.
And S1205, if the current score of the device is smaller than or equal to the score threshold, the electronic equipment displays a bullet frame on an interface for displaying the specific application, wherein the bullet frame can be shown as the interface b in the above-mentioned figure 11.
If the electronic device detects that the user triggers the operation of the determination control 1102 in the frame, the electronic device may execute S504 to S507 in response to the user triggering the operation of the determination control 1102 in the frame, which is not described herein.
S1206, the electronic device may display an interface of the specific application in any of the following cases:
the current score of the device is greater than the score threshold;
when the electronic device displays a bullet box on a specific application interface, detecting that a user triggers the operation of the cancel control 1103;
When the electronic equipment displays the interface b in the figure 4, responding to the operation of user triggering and returning;
When the electronic equipment displays the interface c in the figure 4, responding to the operation of user triggering cancellation; or alternatively
When the electronic device displays the d interface in fig. 4, the electronic device responds to the operation of the user triggering the return.
According to the fragment processing method provided by the embodiment of the application, the performance of the UFS device is evaluated in response to the operation of opening the specific application by the user, and if optimization is required, prompt information is displayed on the interface of the specific application so as to facilitate the user to optimize the UFS device, thus being beneficial to running the specific application program under the condition that the performance of the UFS device is better and reducing the probability of running a cartoon.
The software architecture of the electronic device provided by the embodiment of the application may be as shown in fig. 3, and the electronic device may include a UFS status detection module, an evaluation optimization instruction execution receiving module, a data processing module, a user judgment instruction receiving module, an instruction response module, and a performance evaluation operation execution module. The above-mentioned embodiments are all applicable to the electronic device.
Fig. 13 is a block diagram illustrating a fragment processing method according to an embodiment of the present application. As shown in fig. 13, the method includes the steps of:
S1301, the UFS state detection module detects device state information and stores the device state information in a register.
The UFS status detection module may detect device status information in real-time or periodically and store the device status information in a register.
The execution sequence of S1301 and other steps is not limited in the embodiment of the present application.
S1302, the evaluation optimization instruction execution receiving module detects a triggering operation of a user.
The user's trigger operation may refer to one or more of the following: when the electronic equipment displays the interface b in the figure 4, the user triggers the operation of the one-key optimization control; when the electronic equipment displays the interface a in the figure 7, the user triggers the operation of the suspending ball; when the electronic device displays the interface b in fig. 9, the user triggers the operation of the determination control 902; or the electronic device displays the b interface of fig. 11, the user triggers the operation of the determination control 1102.
S1303, in response to a triggering operation of a user, the evaluation optimization instruction execution receiving module transmits indication information for acquiring device state information to the data processing module, and correspondingly, the data processing module receives the indication information for acquiring the device state information.
Acquiring indication information of device state information for representing: the evaluation optimization instruction execution receiving module instructs the data processing module to acquire device state information.
S1304, the data processing module acquires the device state information from the register based on the indication information of the acquired device state information.
The device status information may refer to S502, and will not be described herein.
S1305, the data processing module calculates the current score of the device based on the device state information.
This step is specifically referred to S503, and will not be described herein.
S1306, the data processing module outputs optimization suggestions based on the current score of the device.
This step may refer to S504, and is not described herein. The optimization suggestion is transmitted to the application layer of the electronic device, where the module may display the optimization suggestion, the device current score, and the one-touch optimization control on an interface, e.g., the electronic device may display interface b in fig. 4 described above. The embodiments of the present application are not limited to modules in the application layer.
S1307, when the user judging instruction receiving module detects the operation of triggering one-key optimization by the user, the user judging instruction receiving module transmits information of triggering one-key optimization by the user to the instruction response module, and correspondingly, the instruction response module receives the information of triggering one-key optimization by the user.
The user judging instruction receiving module is used for receiving an instruction whether the user triggers one-key optimization or not. When the user triggers the one-key optimization control, the user judging instruction receiving module can detect the operation of triggering the one-key optimization by the user. When the user judgment instruction receiving module detects that the user triggers the one-key optimization operation, the user judgment instruction receiving module can inform the instruction response module that the user triggers the one-key optimization.
S1308, the instruction response module performs optimization based on the information of triggering one-key optimization by the user.
This step may refer to S506 above, and will not be described here again. The modules in the application layer of the electronic device may detect the optimization process and the state of the process and display it on the interface, as shown by the c-interface in fig. 4 above.
After the optimization of the instruction response module is completed, S1309 may transmit an indication of completion of the optimization to the performance evaluation operation execution module, and correspondingly, the performance evaluation operation execution module receives the indication of completion of the optimization,
The information indicating completion of the optimization is used for indicating completion of the optimization.
S1310, the performance evaluation operation execution module acquires updated device state information from the register based on the indication information of the completion of the optimization.
S1311, the performance evaluation operation execution module calculates a score after device optimization based on the updated device state information.
S1310 and S1311 may refer to S507 described above, and are not described herein.
According to the fragment processing method provided by the embodiment of the application, the UFS device is optimized through each module, and the device performance is improved.
The names of the modules according to the embodiments of the present application may be defined as other names, so that the functions of each module may be achieved, and the names of the modules are not specifically limited.
The optimization process is described above in connection with the software architecture of the device, and the fragment processing method according to the embodiment of the present application is described in detail below in connection with the step flow.
Fig. 14 shows a schematic flow chart of a fragment processing method according to an embodiment of the present application. As shown in fig. 14, the method may include the steps of:
And S1401, responding to the operation of opening the first application by a user, and displaying a first interface, wherein the first interface comprises prompt information and a first control, and the prompt information is used for prompting the optimization of fragments stored in the data in the electronic equipment.
The first application may be used to represent a particular application in fig. 10 or fig. 12 described above. The first application may be the game application shown in fig. 9 or 11 described above. In some implementations, the first interface may be the main interface shown in the b interface in fig. 9, the prompt information may be the prompt information 901 shown in the b interface in fig. 9, and the first control may be the determination control 902 shown in the b interface in fig. 9. In other implementations, the first interface may be a game interface shown in interface b in fig. 11, the hint information may be hint information 1101 shown in interface b in fig. 11, and the first control may be a determination control 1102 shown in interface b in fig. 11.
S1402, responding to the operation of triggering the first control by the user, and displaying a second interface, wherein the second interface comprises the second control.
In the example shown in fig. 9, the second interface is the c interface in fig. 9, and the second control is a one-touch optimization control.
S1403, responding to the operation of triggering the second control by the user, and performing fragment processing.
The fragmentation processing may be understood as optimizing the UFS device, and reference may be made to S506 above, which is not described herein.
In the process of performing the fragment processing on the electronic device, the running process and/or the state of the process may be displayed through an interface, or may not be displayed. If the running process and/or the state of the process are displayed, the user can know the fragmentation process conveniently. If the running process and/or the state of the process are not displayed, the power consumption is saved.
According to the fragment processing method provided by the embodiment of the application, when the user opens the first application, the user can be prompted to perform fragment processing, and when the user triggers the second control, the fragment processing is performed, so that the performance of the electronic equipment can be improved, the first application can be operated under the condition of better performance, and the probability of the operation of the blocking can be reduced.
Optionally, the second interface further comprises first information for indicating one or more of: the method comprises the steps of (1) storing data by a first device in electronic equipment, wherein the state of the first device is used for reflecting the performance of the first device; the estimated time length required by the electronic equipment for fragment processing; the urgency of the electronic device to perform fragment processing; the degree of fragmentation of the data store in the electronic device; or the electronic equipment predicts the space which can be tidied after carrying out the fragment processing; the electronic device predicts a read-write speed that can be increased after performing the fragmentation processing.
The first device may be the UFS device described above. The second interface may be as shown in interface b of fig. 4 above. In the interface b in fig. 4, the score is used to indicate the state of the first device in the electronic apparatus, and the higher the score, the better the state of the first device, and the better the performance. The estimated time period required for the electronic device to perform the fragment processing is 10 minutes. The optimized urgency is used to represent how urgent the electronic device is to perform fragment processing, and in the interface b in fig. 4, the optimized urgency is a strongly recommended optimization. The fragmentation level is used to indicate the degree of fragmentation of the data store in the electronic device, the higher the fragmentation level, the higher the degree of fragmentation, and the poorer the performance of the first device.
The first information may also indicate a space that the electronic device expects to sort out after performing the fragmentation processing and a read-write speed that the electronic device expects to promote after performing the fragmentation processing, and the interface b in fig. 4 is not shown.
Thus, the second interface also includes first information to facilitate user awareness of the information related to the shards.
Optionally, when the first information is used to indicate the state of the first device, the first information includes a first value, the first value being inversely related to one or more of the following information: garbage collection urgent level, file fragmentation level, table item fragmentation level, single-layer storage unit filling level, or rereading times; the garbage collection urgent level is used for indicating the urgent degree of garbage collection treatment on fragments, the file fragmentation level is used for indicating the fragmentation degree of the file, the table entry fragmentation level is used for indicating the fragmentation degree of the data table, the single-layer storage unit filling level is used for indicating the use degree of the single-layer storage unit, and the re-reading times are used for indicating the times of successfully reading the data. In this way, it is advantageous to calculate information indicative of the state of the first device.
The first value is the current score of the device. In some examples, the first value is inversely related to a garbage collection urgency level, a file fragmentation level, and an entry fragmentation level. In other examples, the first value is inversely related to a file fragmentation level, an entry fragmentation level, and a single level storage unit fill level. In still other examples, the first value is inversely related to garbage collection urgency level, file fragmentation level, entry fragmentation level, single level storage unit fill level, and number of rereads. In this way, more parameters are considered when calculating the first value, which is beneficial to improving the accuracy of the first value.
Optionally, the first value and garbage collection urgency level, file fragmentation level, entry fragmentation level, single-level storage unit filling level, or number of rereads satisfy the following formula: first numerical value=100-a. Garbage collection urgent level/garbage collection total level-b. File fragmentation level/file fragmentation total level-c. Table entry fragmentation level/table entry fragmentation total level-d. Single-layer memory cell filling level/single-layer memory cell filling total level-e. Number of rereadings/total number of rereadings; wherein a+b+c+d+e=100, and the total garbage collection level, the total file fragmentation level, the total table entry fragmentation level, the total single-layer storage unit filling level, and the total number of rereads are all constants. In this way, it is advantageous to obtain the first value.
Optionally, the electronic device includes a first register; when the first information is used for indicating the urgent degree of the fragmentation processing of the electronic equipment, the first information is used for indicating that the data storage is good and the optimization is not needed when the value of the first register is the first value; when the value of the first register is a second value, the first information is used for indicating recommendation to optimize; when the value of the first register is a third value, the first information is used for indicating that the optimization is strongly recommended, and the data storage performance is reduced; or when the value of the first register is the fourth value, the first information is used for indicating that the optimization is strongly recommended, and the data storage performance is severely reduced.
The first register may be bBackgroundOpStatus described above, the first value may be 0x00, the second value may be 0x01, the third value may be 0x02, and the fourth value may be 0x03.
Thus, the user can intuitively know whether the fragmentation processing is needed.
Optionally, the electronic device includes a second register, a value of the second register being a fifth value; responding to the operation of triggering the second control by the user, performing fragment processing, including: responding to the operation of triggering the second control by the user, and updating the value of the second register to be a sixth value; if the value of the second register is the sixth value, the fragmentation processing is performed.
The second register may be fWriteBoosterBufferFlushEn as described above, and in some examples, the fifth value may be 0x00 and the sixth value may be 0x01. In other examples, the fifth value may be 0x01 and the sixth value may be 0x00, which is not limited in this embodiment of the present application.
In this way, fragment processing is facilitated.
Optionally, the method further comprises: and when the fragment processing is performed, displaying a third interface, wherein the third interface comprises second information, and the second information is used for indicating one or more of the following: the method comprises the steps of (1) storing data by a first device in electronic equipment, wherein the state of the first device is used for reflecting the performance of the first device; the electronic equipment performs a process operated by fragment processing; or the processing state of the process, which is in the process, terminated in advance, completed successfully or not completed due to error.
The third interface may be as shown in the c interface of fig. 4 above. In the c interface in fig. 4, the score is used to represent the state of the first device, and the defragmentation file arrangement and the security protection optimization are used to represent the progress of the electronic device running for defragmentation. The processing state of the defragmentation file sort process is complete, which is used for indicating successful completion, and the state of the security protection optimization process is cleaning, which is used for indicating that the process is in progress.
Thus, the user can know the information related to the fragment processing.
Optionally, the electronic device includes a third register, where the second information is used to indicate a processing state of the process, and when the value of the third register is a seventh value, the second information is used to indicate that the process is in process; when the value of the third register is an eighth value, the second information is used for indicating that the process is terminated in advance; when the value of the third register is a ninth value, the second information is used for indicating that the process is successfully completed; or when the value of the third register is a tenth value, the second information is used for indicating that the process is not completed due to the occurrence of an error.
The third register may be bWriteBoosterBufferFlushStatus described above, the seventh value may be 0x01, the eighth value may be 0x02, the ninth value may be 0x03, and the tenth value may be 0x04. When the fragmentation process is completed, the value of the third register may be 0x00, which is used to indicate a non-running process. A process that is not running may be understood as a process that is not optimized.
The process is in process and can be understood as an optimization process is in progress. The process is terminated in advance, which can be understood as the optimization process has been terminated in advance. Successful completion of the process may be understood as an optimization process that has been completed successfully. The process is not completed due to errors, and the optimization process is not completed due to some errors.
In this way, it is advantageous to realize the processing state of the display process.
Optionally, the third interface further comprises a third control; the method further comprises the steps of: and responding to the operation of triggering the third control by the user, and displaying a second interface. The third control may be the cancel control 404 included in the c-interface of fig. 4 described above. In this way, it is advantageous to support cancellation of the fragmentation processing at any time.
Optionally, the method further comprises: in the case where the fragment processing is completed, displaying a fourth interface, the fourth interface including third information, the third information including one or more of the following information: the method comprises the steps that after fragmentation processing, a first device in the electronic equipment is in a state, wherein the first device is used for storing data, and the state of the first device is used for reflecting the performance of the first device; a storage space which is processed by the fragments; the reading and writing speed is improved after the chip treatment; the time required by the fragment treatment is carried out again after the fragment treatment; the urgent degree of the chip treatment is carried out again after the chip treatment; or the fragmentation degree of the data storage after fragmentation processing.
The fourth interface may be the d interface described above in fig. 4. In the d-interface in fig. 4, the score is used to represent the state of the first device in the electronic apparatus after the fragmentation process. The storage space after the fragmentation treatment is 10GB. The read-write speed which is raised after the fragmentation processing is not shown. The time required for the chip treatment again after the chip treatment was 1 minute. The current storage device performs well and does not require optimization to indicate how urgent the fragmentation process is to be performed again after the fragmentation process. The level 0 of the fragmentation level is used for representing the fragmentation degree of the data storage after the fragmentation processing.
Thus, the user can know the information related to the fragments after the fragment processing, and further determine the fragment processing effect.
Optionally, the fourth interface further comprises a fourth control; the method further comprises the following steps: and responding to the operation of triggering the fourth control by the user, and performing fragment processing. The fourth control may be a one-touch optimization control included in the d interface of fig. 4 described above. Thus, the method is favorable for supporting the continuous multiple optimization of the user, and fragments can be processed more thoroughly.
Optionally, in response to a user opening the first application, displaying a first interface, including: displaying a fifth interface, wherein the fifth interface is different from the first interface in that no prompt information and no first control are provided; and responding to the operation of opening the first application by the user, displaying prompt information on the fifth interface, and obtaining the first interface.
The fifth interface may be the interface a in fig. 9, the first application may be a game application, and the first interface may be the interface b in fig. 9.
In this way, the prompt information is displayed before the interface of the first application is opened, so that the data required by the interface of the first application can not be acquired, and the response speed is improved.
Optionally, before displaying the first interface in response to the operation of opening the first application by the user, the method further comprises: displaying a sixth interface, wherein the sixth interface comprises an icon of the first application; responsive to a user opening a first application, displaying a first interface comprising: and responding to icon operation of the first application triggered by the user, and displaying a first interface.
The sixth interface may be the interface a in fig. 11, the first application may be a game application, and the first interface may be the interface b in fig. 11.
Therefore, the prompt information is displayed when the interface of the first application is displayed, and the user is prompted to carry out fragment processing under the condition that the user requirement is met.
The embodiment of the application also provides an optimization method, which can comprise the following steps: displaying a seventh interface, the seventh interface including the first option; responding to the operation of triggering the first option by the user, and displaying a second interface, wherein the second interface comprises a second control; responding to the operation of triggering the second control by the user, performing fragment processing, and displaying a third interface; responding to a first operation of a user on the electronic equipment, displaying a multi-task management interface, wherein the multi-task management interface comprises a thumbnail corresponding to a third interface; wherein the third interface includes second information indicating one or more of: the method comprises the steps of (1) storing data by a first device in electronic equipment, wherein the state of the first device is used for reflecting the performance of the first device; the electronic equipment performs a process operated by fragment processing; or the processing state of the process, which is in the process, terminated in advance, completed successfully or not completed due to error.
The seventh interface may be the interface a in fig. 4, the first option may be the fragmented file option, the second interface may be the interface b in fig. 4, and the third interface may be the interface c in fig. 4. The multitasking interface is not shown.
In this way, the first option is added as an inlet for displaying the second interface, the user is supported to trigger the first option to view the second interface, and the user is responded to trigger the operation of the second control to perform fragment processing, so that the optimization can be performed without waiting for the electronic equipment to be idle, the fragment processing is facilitated in time, the time for the electronic equipment to respond to the user to open the file or open the application is shortened, and the user experience is improved.
The embodiment of the application also provides an optimization method, which can comprise the following steps: displaying an eighth interface, wherein the eighth interface comprises a first suspension ball, the first suspension ball comprises a first numerical value, the first numerical value is used for indicating the state of a first device in the electronic equipment, the first device is used for storing data, and the state of the first device is used for reflecting the performance of the first device; and responding to the operation of triggering the first suspension ball by the user, and performing fragment processing.
The eighth interface includes a first suspension ball, and may be as shown in the interface a in fig. 7, and the first value may be 80. It will be appreciated that the first value in the first suspending sphere may be updated after the fragmentation process is completed. Therefore, the control for fragment processing is represented by the suspension ball, the operation is convenient, and the user experience is improved.
Optionally, in response to a user triggering an operation of the first suspension ball, performing fragment processing includes: in response to a user triggering operation of the first hover ball, displaying a third interface including second information indicating one or more of: a state of the first device; the electronic equipment performs a process operated by fragment processing; or the processing state of the process, which is in the process, terminated in advance, completed successfully or not completed due to error.
The third interface may be as shown in interface b of fig. 7 above. Thus, the user can know the information related to the fragment processing.
Optionally, in response to the user triggering the operation of the first suspension ball, displaying a third interface, including: responding to the operation of triggering the first suspension ball by a user, and displaying a second interface, wherein the second interface comprises a second control and first information; and responding to the operation of triggering the second control by the user, and displaying a third interface. Wherein the first information is used to indicate one or more of: the method comprises the steps of (1) storing data by a first device in electronic equipment, wherein the state of the first device is used for reflecting the performance of the first device; the estimated time length required by the electronic equipment for fragment processing; the urgency of the electronic device to perform fragment processing; the degree of fragmentation of the data store in the electronic device; or the electronic equipment predicts the space which can be tidied after carrying out the fragment processing; the electronic device predicts a read-write speed that can be increased after performing the fragmentation processing.
Thus, the second interface includes the first information to facilitate the user's knowledge of the information associated with the shard.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the embodiments of the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region, and provide a corresponding operation entry for the user to select authorization or rejection.
The fragment processing method according to the embodiment of the present application has been described above, and the device for performing the fragment processing method according to the embodiment of the present application is described below. It will be appreciated by those skilled in the art that the methods and apparatus may be combined and referenced with each other, and that the related apparatus provided by the embodiments of the present application may perform the steps of the above-described fragment processing method.
In order to implement the above functions, the device for implementing the fragment processing method includes a hardware structure and/or a software module for executing the respective functions. Those of skill in the art will readily appreciate that the present application may be implemented in hardware or a combination of hardware and computer software, as the method steps of the examples described in connection with the embodiments disclosed herein. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. 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.
According to the embodiment of the application, the functional modules of the device for realizing the fragment processing method can be divided according to the method example, for example, each functional module can be divided corresponding to each function, and two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
Fig. 15 is a schematic structural diagram of a chip according to an embodiment of the present application. Chip 150 includes one or more (including two) processors 1501, communication lines 1502, communication interfaces 1503, and memory 1504.
In some implementations, the memory 1504 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
The method performed by the electronic device described in the above embodiments of the present application may be applied to the processor 1501 or implemented by the processor 1501. The processor 1501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps performed by the electronic device in the above method may be performed by integrated logic circuits of hardware in the processor 1501 or by instructions in software. The processor 1501 may be a general purpose processor (e.g., a microprocessor or a conventional 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, discrete gates, transistor logic, or discrete hardware components, and the processor 1501 may implement or perform the methods, steps, and logic blocks performed by the disclosed electronic device in embodiments of the application.
The steps performed by the electronic device disclosed in connection with the embodiments of the present application may be directly embodied as a hardware decoding processor or may be performed by a combination of hardware and software modules in the decoding processor. The software modules may be located in any well-known storage medium such as ram, rom, or EEPROM (ELECTRICALLY ERASABLE PROGRAMMABLE READ ONLY MEMORY, EEPROM). The storage medium is located in the memory 1504, and the processor 1501 reads the information in the memory 1504, and in combination with the hardware, performs the steps performed by the electronic device.
The processor 1501, the memory 1504 and the communication interface 1503 may communicate with each other via a communication line 1502.
In the above embodiments, the instructions stored by the memory for execution by the processor may be implemented in the form of a computer program product. The computer program product may be written in the memory in advance, or may be downloaded in the form of software and installed in the memory.
Embodiments of the present application also provide a computer program product comprising one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL), or wireless (e.g., infrared, wireless, microwave, etc.), or semiconductor media (e.g., solid state disk (solid state STATE DISK, SSD)), the computer-readable storage medium may be any available medium that can be stored by the computer or a data storage device such as a server, data center, etc., comprising an integration of one or more available media.
The embodiment of the application also provides a computer readable storage medium. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer readable media can include computer storage media and communication media and can include any medium that can transfer a computer program from one place to another. The storage media may be any target media that is accessible by a computer.
As one possible design, the computer-readable medium may include compact disk read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disk storage; the computer readable medium may include disk storage or other disk storage devices. Moreover, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, digital versatile disc (DIGITAL VERSATILE DISC, DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (23)

1. A fragment processing method, applied to an electronic device, comprising:
Responding to the operation of opening a first application by a user, displaying a first interface, wherein the first interface comprises prompt information and a first control, and the prompt information is used for prompting the optimization of fragments stored in data in the electronic equipment;
Responding to the operation of triggering the first control by a user, and displaying a second interface, wherein the second interface comprises first information and the second control; the first information is used for indicating the state of the first device, and the first information comprises a first numerical value which is inversely related to one or more of the following information: garbage collection urgent level, file fragmentation level, table item fragmentation level, single-layer storage unit filling level, or rereading times; the first device is used for storing data, and the state of the first device is used for reflecting the performance of the first device; the garbage collection urgent level is used for indicating the urgent degree of garbage collection treatment on fragments, the file fragmentation level is used for indicating the fragmentation degree of the file, the table entry fragmentation level is used for indicating the fragmentation degree of the data table, the single-layer storage unit filling level is used for indicating the use degree of the single-layer storage unit, and the re-reading times are used for indicating the times of successfully reading data; the first value and the garbage collection urgency level, the file fragmentation level, the table item fragmentation level, the single-layer storage unit filling level, or the number of rereads satisfy the following formula: the first value=100- The garbage recovery urgent grade/garbage recovery total grade-/>The file fragmentation level/total file fragmentation level/>The table item fragmentation level/table item fragmentation total level/>The single-layer memory cell filling level/single-layer memory cell filling total level/>The number of re-reads/total number of re-reads; wherein a is used for representing the weight of the urgent grade of device recovery, b is used for representing the weight of the file fragmentation grade, c is used for representing the weight of the table item fragmentation grade, d is used for representing the weight of the filling grade of a single-layer storage unit, e is used for representing the weight of the number of rereading, the weights under different scenes are different, a+b+c+d+e=100, and the total garbage recovery grade, the total file fragmentation grade, the total table item fragmentation grade, the total filling grade of the single-layer storage unit and the total number of rereading are all constant;
And responding to the operation of triggering the second control by the user, and performing fragment processing.
2. The method of claim 1, wherein the first information is further used to indicate one or more of:
the estimated time length required by the electronic equipment for fragment processing;
the urgency degree of the electronic equipment for chip processing;
the fragmentation degree of the data storage in the electronic equipment; or alternatively
The electronic equipment predicts a tidying space after carrying out fragment processing;
The electronic device predicts a read-write speed which can be improved after the chip processing.
3. The method of claim 2, wherein the electronic device comprises a first register; when the first information is used for indicating the urgent degree of the fragmentation processing of the electronic equipment, and the value of the first register is a first value, the first information is used for indicating that the data storage is good, and optimization is not needed;
when the value of the first register is a second value, the first information is used for indicating recommendation for optimization;
When the value of the first register is a third value, the first information is used for indicating that the optimization is strongly recommended, and the data storage performance is reduced; or alternatively
When the value of the first register is the fourth value, the first information is used for indicating that optimization is strongly recommended, and the data storage performance is seriously reduced.
4. The method according to claim 1 or 2, wherein the electronic device comprises a second register, the value of the second register being a fifth value;
and responding to the operation of triggering the second control by the user, performing fragment processing, wherein the fragment processing comprises the following steps:
updating the value of the second register to a sixth value in response to a user triggering operation of the second control;
and performing fragmentation processing when the value of the second register is the sixth value.
5. The method according to claim 1 or 2, characterized in that the method further comprises:
And when the fragment processing is performed, displaying a third interface, wherein the third interface comprises second information, and the second information is used for indicating one or more of the following items:
the state of a first device in the electronic apparatus;
the electronic equipment performs a process operated by fragment processing; or alternatively
The processing state of the process is in the process of being processed, terminated in advance, completed successfully or not completed due to errors.
6. The method according to claim 5, wherein the electronic device includes a third register, and wherein when the second information is used to indicate a processing state of the process, the value of the third register is a seventh value, the second information is used to indicate that the process is in process;
when the value of the third register is an eighth value, the second information is used for indicating that the process is terminated in advance;
when the value of the third register is a ninth value, the second information is used for indicating that the process is successfully completed; or alternatively
And when the value of the third register is a tenth value, the second information is used for indicating that the process is not completed due to error.
7. The method of claim 5, wherein the third interface further comprises a third control; the method further comprises the steps of:
and responding to the operation of triggering the third control by the user, and displaying the second interface.
8. The method according to claim 1 or 2, characterized in that the method further comprises:
in the case where the fragment processing is completed, displaying a fourth interface, the fourth interface including third information including one or more of the following information:
the state of a first device in the electronic equipment after the chip processing;
A storage space which is processed by the fragments;
The reading and writing speed is improved after the chip treatment;
the time required by the fragment treatment is carried out again after the fragment treatment;
the urgent degree of the chip treatment is carried out again after the chip treatment; or alternatively
Fragmentation degree of the data storage after fragmentation processing.
9. The method of claim 8, wherein the fourth interface further comprises a fourth control; the method further comprises the steps of:
and responding to the operation of triggering the fourth control by the user, and performing fragment processing.
10. The method according to claim 1 or 2, wherein displaying the first interface in response to the user opening the first application comprises:
Displaying a fifth interface, wherein the fifth interface is different from the first interface in that the prompt information and the first control are not available;
And responding to the operation of opening the first application by a user, displaying the prompt information on the fifth interface, and obtaining the first interface.
11. The method according to claim 1 or 2, wherein before the displaying of the first interface in response to the operation of opening the first application by the user, the method further comprises:
displaying a sixth interface, wherein the sixth interface comprises an icon of the first application;
The method for displaying the first interface in response to the operation of opening the first application by the user comprises the following steps:
and responding to the icon operation of the first application triggered by the user, and displaying the first interface.
12. A fragment processing method, applied to an electronic device, comprising:
displaying a seventh interface, the seventh interface comprising the first option;
Responding to the operation of triggering the first option by a user, and displaying a second interface, wherein the second interface comprises first information and a second control; the first information is used for indicating the state of the first device, and the first information comprises a first numerical value which is inversely related to one or more of the following information: garbage collection urgent level, file fragmentation level, table item fragmentation level, single-layer storage unit filling level, or rereading times; the first device is used for storing data, and the state of the first device is used for reflecting the performance of the first device; the garbage collection urgent level is used for indicating the urgent degree of garbage collection treatment on fragments, the file fragmentation level is used for indicating the fragmentation degree of the file, the table entry fragmentation level is used for indicating the fragmentation degree of the data table, the single-layer storage unit filling level is used for indicating the use degree of the single-layer storage unit, and the re-reading times are used for indicating the times of successfully reading data; the first value and the garbage collection urgency level, the file fragmentation level, the table item fragmentation level, the single-layer storage unit filling level, or the number of rereads satisfy the following formula: the first value=100- The garbage collection urgent grade/garbage collection total grade/>The file fragmentation level/total file fragmentation level/>The table item fragmentation level/table item fragmentation total level/>The single-layer memory cell filling level/single-layer memory cell filling total level/>The number of re-reads/total number of re-reads; wherein a is used for representing the weight of the urgent grade of device recovery, b is used for representing the weight of the file fragmentation grade, c is used for representing the weight of the table item fragmentation grade, d is used for representing the weight of the filling grade of a single-layer storage unit, e is used for representing the weight of the number of rereading, the weights under different scenes are different, a+b+c+d+e=100, and the total garbage recovery grade, the total file fragmentation grade, the total table item fragmentation grade, the total filling grade of the single-layer storage unit and the total number of rereading are all constant;
responding to the operation of triggering the second control by the user, performing fragment processing, and displaying a third interface;
responding to a first operation of a user on the electronic equipment, displaying a multi-task management interface, wherein the multi-task management interface comprises a thumbnail corresponding to the third interface;
Wherein the third interface includes second information indicating one or more of:
The method comprises the steps that the state of a first device in the electronic equipment is used for storing data, and the state of the first device is used for reflecting the performance of the first device;
the electronic equipment performs a process operated by fragment processing; or alternatively
The processing state of the process is in the process of being processed, terminated in advance, completed successfully or not completed due to errors.
13. The method of claim 12, wherein the second interface further comprises first information indicating one or more of:
A state of the first device;
the estimated time length required by the electronic equipment for fragment processing;
the urgency degree of the electronic equipment for chip processing;
the fragmentation degree of the data storage in the electronic equipment; or alternatively
The electronic equipment predicts a tidying space after carrying out fragment processing;
The electronic device predicts a read-write speed which can be improved after the chip processing.
14. The method of claim 13, wherein the electronic device comprises a first register; when the first information is used for indicating the urgent degree of the fragmentation processing of the electronic equipment, and the value of the first register is a first value, the first information is used for indicating that the data storage is good, and optimization is not needed;
when the value of the first register is a second value, the first information is used for indicating recommendation for optimization;
When the value of the first register is a third value, the first information is used for indicating that the optimization is strongly recommended, and the data storage performance is reduced; or alternatively
When the value of the first register is the fourth value, the first information is used for indicating that optimization is strongly recommended, and the data storage performance is seriously reduced.
15. The method according to any one of claims 12 to 14, wherein the electronic device comprises a second register, the value of the second register being a fifth value;
and responding to the operation of triggering the second control by the user, performing fragment processing, wherein the fragment processing comprises the following steps:
updating the value of the second register to a sixth value in response to a user triggering operation of the second control;
and performing fragmentation processing when the value of the second register is the sixth value.
16. The method according to any one of claims 12 to 14, wherein the electronic device comprises a third register, the second information being used to indicate that the process is in process when the value of the third register is a seventh value, in case the second information is used to indicate the processing state of the process;
when the value of the third register is an eighth value, the second information is used for indicating that the process is terminated in advance;
when the value of the third register is a ninth value, the second information is used for indicating that the process is successfully completed; or alternatively
And when the value of the third register is a tenth value, the second information is used for indicating that the process is not completed due to error.
17. The method according to any one of claims 12 to 14, further comprising:
in the case where the fragment processing is completed, displaying a fourth interface, the fourth interface including third information including one or more of the following information:
the state of the first device after the fragmentation treatment;
A storage space which is processed by the fragments;
The reading and writing speed is improved after the chip treatment;
the time required by the fragment treatment is carried out again after the fragment treatment;
the urgent degree of the chip treatment is carried out again after the chip treatment; or alternatively
Fragmentation degree of the data storage after fragmentation processing.
18. A fragment processing method, applied to an electronic device, comprising:
Displaying an eighth interface, wherein the eighth interface comprises a first suspension ball, the first suspension ball comprises a first numerical value, the first numerical value is used for indicating the state of a first device in the electronic equipment, the first device is used for storing data, the state of the first device is used for reflecting the performance of the first device, and the first numerical value is inversely related to one or more of the following information: garbage collection urgent level, file fragmentation level, table item fragmentation level, single-layer storage unit filling level, or rereading times; the garbage collection urgent level is used for indicating the urgent degree of garbage collection treatment on fragments, the file fragmentation level is used for indicating the fragmentation degree of the file, the table entry fragmentation level is used for indicating the fragmentation degree of a data table, the single-layer storage unit filling level is used for indicating the use degree of the single-layer storage unit, and the re-reading times are used for indicating the times of successfully reading data; the first value and the garbage collection urgency level, the file fragmentation level, the table item fragmentation level, the single-layer storage unit filling level, or the number of rereads satisfy the following formula: the first value=100- The garbage collection urgent grade/garbage collection total grade/>The file fragmentation level/total file fragmentation level/>The table item fragmentation level/table item fragmentation total level/>The single-layer memory cell filling level/single-layer memory cell filling total level/>The number of re-reads/total number of re-reads; wherein a is used for representing the weight of the urgent grade of device recovery, b is used for representing the weight of the file fragmentation grade, c is used for representing the weight of the table item fragmentation grade, d is used for representing the weight of the filling grade of a single-layer storage unit, e is used for representing the weight of the number of rereading, the weights under different scenes are different, a+b+c+d+e=100, and the total garbage recovery grade, the total file fragmentation grade, the total table item fragmentation grade, the total filling grade of the single-layer storage unit and the total number of rereading are all constant;
And responding to the operation of triggering the first suspension ball by a user, and performing fragment processing.
19. The method of claim 18, wherein the performing fragment processing in response to a user triggering operation of the first hover sphere comprises:
In response to a user triggering operation of the first hover ball, displaying a third interface including second information indicating one or more of:
A state of the first device;
the electronic equipment performs a process operated by fragment processing; or alternatively
The processing state of the process is in the process of being processed, terminated in advance, completed successfully or not completed due to errors.
20. The method of claim 19, wherein displaying a third interface in response to a user triggering operation of the first hover ball comprises:
responding to the operation of triggering the first suspension ball by a user, and displaying a second interface, wherein the second interface comprises a second control and first information;
Responding to the operation of triggering the second control by a user, and displaying the third interface;
Wherein the first information is used to indicate one or more of:
A state of the first device;
the estimated time length required by the electronic equipment for fragment processing;
the urgency degree of the electronic equipment for chip processing;
the fragmentation degree of the data storage in the electronic equipment; or alternatively
The electronic equipment predicts a tidying space after carrying out fragment processing;
The electronic device predicts a read-write speed which can be improved after the chip processing.
21. An electronic device, comprising: a processor and a memory;
The memory stores computer-executable instructions;
The processor executing computer-executable instructions stored in the memory, causing the electronic device to perform the method of any one of claims 1-11, or to perform the method of any one of claims 12-17, or to perform the method of any one of claims 18-20.
22. A chip system, comprising: a processor for reading instructions stored in a memory, which when executed by the processor causes the chip system to implement the method of any one of claims 1-11, or to implement the method of any one of claims 12-17, or to implement the method of any one of claims 18-20.
23. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method of any one of claims 1-11, or implements the method of any one of claims 12-17, or implements the method of any one of claims 18-20.
CN202311619810.0A 2023-11-30 2023-11-30 Fragment processing method and related device Active CN117331472B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311619810.0A CN117331472B (en) 2023-11-30 2023-11-30 Fragment processing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311619810.0A CN117331472B (en) 2023-11-30 2023-11-30 Fragment processing method and related device

Publications (2)

Publication Number Publication Date
CN117331472A CN117331472A (en) 2024-01-02
CN117331472B true CN117331472B (en) 2024-05-07

Family

ID=89293764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311619810.0A Active CN117331472B (en) 2023-11-30 2023-11-30 Fragment processing method and related device

Country Status (1)

Country Link
CN (1) CN117331472B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605614A (en) * 2013-11-29 2014-02-26 贝壳网际(北京)安全技术有限公司 Method and device for cleaning up memory of mobile terminal
CN104503887A (en) * 2014-12-15 2015-04-08 北京奇虎科技有限公司 Method and device for showing state of computing equipment
CN107894958A (en) * 2017-11-22 2018-04-10 努比亚技术有限公司 Junk message cleanup method, terminal, server and computer-readable recording medium
CN111182135A (en) * 2019-12-11 2020-05-19 青岛海信移动通信技术股份有限公司 Mobile terminal and method for optimizing running state of mobile terminal
CN114356159A (en) * 2021-12-21 2022-04-15 深圳传音控股股份有限公司 Display method, intelligent terminal and storage medium
CN114356794A (en) * 2021-12-21 2022-04-15 深圳传音控股股份有限公司 Information prompting method, intelligent terminal and storage medium
CN115333941A (en) * 2022-01-28 2022-11-11 花瓣云科技有限公司 Method for acquiring application running condition and related equipment
CN116701298A (en) * 2022-11-22 2023-09-05 荣耀终端有限公司 File system management method and electronic equipment
CN116700601A (en) * 2022-11-28 2023-09-05 荣耀终端有限公司 Memory optimization method, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9239670B2 (en) * 2013-03-15 2016-01-19 International Business Machines Corporation Graphical interface data fragment operations for data visualization

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605614A (en) * 2013-11-29 2014-02-26 贝壳网际(北京)安全技术有限公司 Method and device for cleaning up memory of mobile terminal
CN104503887A (en) * 2014-12-15 2015-04-08 北京奇虎科技有限公司 Method and device for showing state of computing equipment
CN107894958A (en) * 2017-11-22 2018-04-10 努比亚技术有限公司 Junk message cleanup method, terminal, server and computer-readable recording medium
CN111182135A (en) * 2019-12-11 2020-05-19 青岛海信移动通信技术股份有限公司 Mobile terminal and method for optimizing running state of mobile terminal
CN114356159A (en) * 2021-12-21 2022-04-15 深圳传音控股股份有限公司 Display method, intelligent terminal and storage medium
CN114356794A (en) * 2021-12-21 2022-04-15 深圳传音控股股份有限公司 Information prompting method, intelligent terminal and storage medium
CN115333941A (en) * 2022-01-28 2022-11-11 花瓣云科技有限公司 Method for acquiring application running condition and related equipment
CN116701298A (en) * 2022-11-22 2023-09-05 荣耀终端有限公司 File system management method and electronic equipment
CN116700601A (en) * 2022-11-28 2023-09-05 荣耀终端有限公司 Memory optimization method, equipment and storage medium

Also Published As

Publication number Publication date
CN117331472A (en) 2024-01-02

Similar Documents

Publication Publication Date Title
US10599336B2 (en) Method of displaying content and electronic device adapted to the same
CN105389076B (en) Method for providing notification through electronic device and electronic device
CN115097981B (en) Method for processing content and electronic device thereof
US20150130705A1 (en) Method for determining location of content and an electronic device
CN104869305B (en) Method and apparatus for processing image data
US20190166247A1 (en) Method for performing function and electronic device supporting the same
KR20170017289A (en) Apparatus and method for tranceiving a content
EP3104304B1 (en) Electronic apparatus and method of extracting still images
KR20200015000A (en) Method for memory leak detection and electronic device thereof
US20170094219A1 (en) Method and electronic device for providing video of a specified playback time
CN114077529B (en) Log uploading method and device, electronic equipment and computer readable storage medium
KR20170051950A (en) Electronic device and method for controlling display thereof
CN113495744B (en) Version upgrading method and related device
CN110084035B (en) Electronic device and method for suggesting a response guide when a rejection occurs
EP3026670A1 (en) Method and electronic device for storing audio data
KR20160031217A (en) Method for controlling and an electronic device thereof
CN116916093B (en) Method for identifying clamping, electronic equipment and storage medium
KR20160001359A (en) Method for managing data and an electronic device thereof
KR20150117968A (en) Apparatas and method for changing a function according to input direction in an electronic device
CN115017534A (en) File processing authority control method and device and storage medium
CN117331472B (en) Fragment processing method and related device
CN115981573B (en) Data management method, electronic device and computer readable and writable storage medium
EP3819763B1 (en) Electronic device and operating method thereof
CN114489469B (en) Data reading method, electronic equipment and storage medium
KR20170044469A (en) Method for recording a screen and an electronic device thereof

Legal Events

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