CN114327253A - Data migration method and device, electronic equipment and storage medium - Google Patents

Data migration method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114327253A
CN114327253A CN202111209903.7A CN202111209903A CN114327253A CN 114327253 A CN114327253 A CN 114327253A CN 202111209903 A CN202111209903 A CN 202111209903A CN 114327253 A CN114327253 A CN 114327253A
Authority
CN
China
Prior art keywords
parameter
application
electronic device
read
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111209903.7A
Other languages
Chinese (zh)
Other versions
CN114327253B (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.)
Hangzhou Douku Software Technology Co Ltd
Original Assignee
Hangzhou Douku Software Technology 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 Hangzhou Douku Software Technology Co Ltd filed Critical Hangzhou Douku Software Technology Co Ltd
Priority to CN202111209903.7A priority Critical patent/CN114327253B/en
Publication of CN114327253A publication Critical patent/CN114327253A/en
Application granted granted Critical
Publication of CN114327253B publication Critical patent/CN114327253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The application discloses a data migration method, a data migration device, a terminal and a storage medium. The method comprises the following steps: acquiring a first parameter; the first parameter represents the load of reading and writing operations on a memory in the first electronic equipment; configuring a second parameter according to the first parameter; the second parameter is characterized by the read-write data volume in unit time configured by the first application; the first application is used for performing data migration between different electronic devices; controlling the first application to read and write data to the memory based on the second parameter in the process of executing the first operation; the first operation is to migrate each of at least one second application on the first electronic device onto a second electronic device.

Description

Data migration method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data transmission method and apparatus, an electronic device, and a storage medium.
Background
In the related art, software and data thereof installed on an electronic device may be transferred to other storage spaces or other electronic devices, and during the process of transferring the software and the data thereof, a large amount of read-write operations may be generated, which increases the load of a memory of the electronic device, affects the stability of the system, and may cause a crash during the process of transferring the software and the data thereof, so that the transfer of the software and the data thereof cannot be completed.
Disclosure of Invention
In view of this, embodiments of the present application provide a data transmission method, an apparatus, an electronic device, and a storage medium, so as to solve at least the problems that in the related art, in the data migration process, the stability of the system is affected and the data migration efficiency is reduced.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a data migration method, which comprises the following steps:
acquiring a first parameter; the first parameter represents the load of reading and writing operations on a memory in the first electronic equipment;
configuring a second parameter according to the first parameter; the second parameter is characterized by the read-write data volume in unit time configured by the first application; the first application is used for performing data migration between different electronic devices;
controlling the first application to read and write data to the memory based on the second parameter in the process of executing the first operation; the first operation is to migrate each of at least one second application on the first electronic device onto a second electronic device.
In the foregoing solution, the configuring a second parameter according to the first parameter includes:
and under the condition that the first parameter is smaller than a first set value, configuring the second parameter according to the first parameter.
In the foregoing solution, the configuring the second parameter according to the first parameter includes:
configuring the second parameter to be a set first value when the first parameter is smaller than a second set value;
determining the second parameter according to a set first adjustment coefficient corresponding to the first parameter and the first numerical value under the condition that the first parameter is larger than the second set value; wherein the content of the first and second substances,
the second set value is less than the first set value.
In the above scheme, the method further comprises:
and prohibiting the first application from executing the first operation under the condition that the first parameter is greater than or equal to the first set value.
In the foregoing solution, when the first parameter is greater than or equal to a first set value, after the first application is prohibited from executing the first operation, the method further includes:
determining at least one third application; the third application represents the application with the occupancy rate of the read-write resource larger than a third set value;
generating first prompt information; the first prompt message is used for prompting to close at least one third application in the at least one third application.
In the foregoing solution, when the controlling the first application performs the first operation based on the second parameter, the method further includes:
prohibiting starting of the second application; alternatively, the first and second electrodes may be,
marking the second application-related data that is not transmitted on the first electronic device or the second application-related data that is not decompressed on the second electronic device as invalid data.
In the foregoing solution, the controlling the first application to execute the first operation based on the second parameter includes:
determining a migration sequence corresponding to the at least one second application according to a third parameter of the second application;
controlling the first application to execute a first operation based on the second parameter based on the determined migration sequence; wherein the content of the first and second substances,
the third parameter characterizes a frequency of use of the at least one second application on the first electronic device.
In the foregoing solution, when the controlling the first application performs the first operation based on the second parameter, the method further includes:
acquiring the first parameter again;
controlling the first application to stop executing the first operation under the condition that the obtained first parameter is larger than or equal to a first set value;
and increasing a set step value for the second parameter under the condition that the re-acquired first parameter is smaller than the first set value.
An embodiment of the present application further provides a data migration apparatus, including:
an acquisition unit configured to acquire a first parameter; the first parameter represents the load of reading and writing operations on a memory in the first electronic equipment;
the configuration unit is used for configuring a second parameter according to the first parameter; the second parameter is characterized by the read-write data volume in unit time configured by the first application; the first application is used for performing data migration between different electronic devices;
the control unit is used for controlling the first application to read and write data to the memory based on the second parameter in the process of executing the first operation; the first operation is to migrate each of at least one second application on the first electronic device onto a second electronic device.
An embodiment of the present application further provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of any of the above methods when running the computer program.
Embodiments of the present application also provide a storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of any one of the above methods.
In the embodiment of the application, the read-write data volume in the first unit time is configured by the load of the read-write operation on the memory in the electronic device, so that the load of the read-write operation on the memory can be controlled in the process of running the first application for data migration, the load of a system is prevented from being too high, and the stability of the system can be ensured.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a data migration method according to an embodiment of the present application;
fig. 2 is a schematic flow chart illustrating an implementation of a data migration method according to another embodiment of the present application;
fig. 3 is a schematic flow chart illustrating an implementation of a data migration method according to another embodiment of the present application;
fig. 4 is a schematic flow chart illustrating an implementation of a data migration method according to another embodiment of the present application;
fig. 5 is a schematic flow chart illustrating an implementation of a data migration method according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of a data migration apparatus according to an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware component structure of a terminal according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and specific embodiments.
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The technical means described in the embodiments of the present application may be arbitrarily combined without conflict.
In addition, in the embodiments of the present application, "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a specific order or a sequential order.
In addition, the term "at least one" herein means any combination of at least two of any one or more of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
An embodiment of the present application provides a data migration method, and fig. 1 is a schematic flow chart of the data migration method according to the embodiment of the present application. As shown in fig. 1, the method includes:
s101: acquiring a first parameter; the first parameter represents the load of reading and writing operations of a memory in the first electronic device.
Here, when the application is running on the electronic device, the memory can store the application program and the data, and therefore, the memory in the first electronic device can be read and written many times, wherein a certain storage unit of the memory into which the data is put is a write operation, the data in the certain storage unit of the memory is removed to be a read operation, the processing of the data is completed by reading and writing the relevant data in the memory, when a large number of read and write operations exist in the application running process, the load of the read and write operations on the memory is increased, and a large degradation risk exists for the system performance and stability, therefore, by acquiring the first parameter, the load condition of the electronic device under the current condition can be determined, and whether the running of the application with a large number of read and write operations can be supported and run at present can be further determined, wherein the first parameter can be in the form of a ratio, for example, the ratio of the current read-write operation of the system to the maximum available read-write operation of the system is evaluated, when the ratio of the first parameter is larger, the load representing the current memory is larger, and when the ratio of the first parameter is smaller, the load representing the current memory is smaller.
S102: configuring a second parameter according to the first parameter; the second parameter is characterized by the read-write data volume in unit time configured by the first application; the first application is used to perform data migration between different electronic devices.
The first application is used for executing data migration between different electronic devices, wherein the first application reads an application needing to be moved on a user data partition on a memory and data of the application to be compressed to generate a plurality of data compression packets, the generated data compression packets are migrated to a second electronic device, in addition, in order to improve the efficiency of the data migration of the first application, a plurality of threads are also adopted to be simultaneously carried out, further, in the process of carrying out the data migration of the first application, a large number of concurrent read-write operations are generated, the load of the memory is increased, the read-write operation triggered by the first application can be regulated and controlled through a second parameter, wherein the second parameter represents the read-write data volume configured by the first application in unit time, and the first application can carry out the read-write operation on the memory according to the configured second parameter. Therefore, in order to ensure the stability of the system, a reasonable second parameter is configured for the first application according to the first parameter, so that the data migration can be realized through the first application under the condition of ensuring the stability of the system.
In an embodiment, the configuring the second parameter according to the first parameter includes:
and under the condition that the first parameter is smaller than a first set value, configuring the second parameter according to the first parameter.
Here, in order to divide the load amount of the read-write operation on the memory into different load intervals, when the first parameter is smaller than the first set value, it indicates that the current system load does not exceed the security load, and a second parameter that is reasonable for the first application may be configured according to the storage state of the first electronic device, and the first application may be run on the first electronic device to perform data migration.
In an embodiment, as shown in fig. 2, the configuring the second parameter according to the first parameter includes:
s201: and configuring the second parameter to be a set first value under the condition that the first parameter is smaller than a second set value.
Here, in order to more accurately configure the second parameter by using the first parameter, a second setting value is further set, where the second setting value is smaller than the first setting value, so that the load condition corresponding to the first parameter can be further determined according to the first setting value, and when the first parameter is smaller than the second setting value, it indicates that the load amount of the current read/write operation performed on the memory is low, and no special adjustment is required to be performed on the second parameter, the second parameter may be configured as a set first value, where the first value refers to the read/write data amount per unit time of the initial configuration of the second application, and in an actual application, the first setting value may be obtained by converting the read/write data amount per unit time of the memory device.
S202: determining the second parameter according to a set first adjustment coefficient corresponding to the first parameter and the first numerical value under the condition that the first parameter is larger than the second set value; wherein the content of the first and second substances,
the second set value is less than the first set value.
Here, when the second parameter is greater than the second set value, indicating that the load amount of the current read-write operation performed on the memory is at a level with a medium bias, the second parameter may be determined by using a first adjustment coefficient and a first value, where the first adjustment coefficient satisfies, in terms of value: 0 < first adjustment factor < 1, the finally configured second parameter is smaller than the first value, so that the influence of the first application on the system load can be properly reduced.
In practical application, corresponding first adjustment coefficients can be set for the first parameters in different interval ranges, so that the second parameters can be regulated and controlled more accurately. Illustratively, the first setting value may be Vio _ high, the second setting value may be Vio _ low, and in a value range formed between the first setting value Vio _ high and the second setting value Vio _ low, Vio _ med is further set, wherein Vio _ low < Vio _ med < Vio _ high, when the first parameter is greater than the second setting value Vio _ low, the magnitude relationship between the first parameter and Vio _ med may be further determined, and then a first adjustment coefficient corresponding to the first parameter may be determined, for example, when Vio _ low < the first parameter is less than or equal to Vio _ med, which indicates that the load amount of the current read/write operation performed on the memory is low, the second parameter may be determined according to the first adjustment coefficient, Ciops _ low, corresponding to the first value and the first setting value, wherein 0 < Ciops _ wo < 1, and when Vio _ med < the first load amount, which indicates that the current read/write operation is performed on the memory is higher, the second parameter can be determined according to the first adjustment coefficient Ciops _ medium corresponding to the first value and the first parameter set value, wherein 0 < Ciops _ medium < Ciops _ lowio < 1, so that the influence of the first application on the system load can be greatly limited. In practical application, because the read-write resource is limited, when there are other applications with high occupation rate of the read-write resource, the duration of the first operation executed by the first application is increased, so that the user can be sent to close the other applications with high occupation rate of the read-write resource.
In an embodiment, the method further comprises:
and prohibiting the first application from executing the first operation under the condition that the first parameter is greater than or equal to the first set value.
Here, when the first parameter is greater than or equal to the first set value, it indicates that the load amount of the current read/write operation performed on the memory is large, and continuing to control the first application to perform the first operation may cause the load pressure of the memory to be too large, which may cause a problem in the performance and stability of the system, and easily increase the probability that the first electronic device may be stuck or may not operate. In practical applications, a prompt message may be generated to the user, and the generated prompt message is used to inform the user to try to execute the first operation again later.
In an embodiment, as shown in fig. 3, after prohibiting the first application from performing the first operation if the first parameter is greater than or equal to a first set value, the method further includes:
s301: determining at least one third application; and the third application represents the application with the occupancy rate of the read-write resources larger than a third set value.
Here, the prohibition of the first operation executed by the first application is that the load of the current read-write operation on the memory is too high, and when the load of the read-write operation on the memory is reduced, there is a possibility that the first operation executed by the first application is controlled, so that the third application can be determined according to the occupation condition of the read-write resource, and in the actual application, the application with the occupancy rate of the read-write resource greater than a third set value is determined as the third application, where the third set value can be configured according to the actual requirement.
S302: generating first prompt information; the first prompt message is used for prompting to close at least one third application in the at least one third application.
Here, first prompt information is generated according to the determined at least one third application, where the first prompt information is used to prompt the user to close the at least one third application, and since the third application is an application with high occupation of read-write resources, after one of the third applications is closed, more available read-write resources can be released, so that there is a possibility that the first application is controlled to execute the first operation. In practical applications, when it is detected that one of the third applications is closed, the first parameter may be detected again, and the configuration of the second parameter is performed according to the first parameter, so that the load of performing read-write operation on the memory can be monitored in real time, and data migration is completed in real time.
S103: controlling the first application to read and write data to the memory based on the second parameter in the process of executing the first operation; the first operation is to migrate each of at least one second application on the first electronic device onto a second electronic device.
Here, when a user needs to migrate data on the first electronic device to the second electronic device, at least one second application that needs to be migrated may be selected from the first application, where the second application may be a system application or a third-party application installed on the first electronic device, and when the second application on the first electronic device is migrated to the second electronic device, the first application needs to perform data reading and writing on a corresponding storage space in the memory to obtain related data that needs to be migrated, specifically, the first application on the first electronic device may perform data reading and writing on the memory based on the configured second parameter, where in a unit time, an amount of data read and written is the second parameter. In practical application, the data read by the first application may include an installation package of the second application and application data of the second application, the read related data of the second application is compressed to generate a data compression package, the generated data compression package is written into the user data partition through a write operation, the data compression package on the user data partition is read when data migration is performed, and the read data compression package is migrated to the second electronic device, so that data migration of the second application is completed.
In practical application, when the second application is in a running state before data migration, the second electronic device starts running the second application by loading the installation package of the second application immediately after receiving data related to the second application.
In practical applications, the read-write resources of the system are limited in a period of time, wherein when an application frequently initiating a read-write operation exists in a period of time, other application processes cannot rapidly perform the read-write operation on the memory, further reducing the efficiency of data processing, in order to further better manage the limited read and write resources, the corresponding weight values may be assigned to different applications, the proportion of the read-write resources occupied by different applications is determined according to the proportion of the weight to the weight of the same level object, illustratively, the weight assigned to the first application is 100, while another application a is assigned a weight value of 300, then application a may occupy 75% of the read and write resources, and therefore, before controlling the first application to execute the first operation, different weight values may be assigned to the first application and other applications, so that the first application and other applications can both work normally at the same time. In the process of executing the first operation by the first application, when it is detected that there is an application occupying a large amount of read-write resources, the applications may be closed, or the weight values of the applications may be appropriately reduced.
In an embodiment, when the controlling the first application performs the first operation based on the second parameter, the method further comprises:
prohibiting starting of the second application; alternatively, the first and second electrodes may be,
marking the second application-related data that is not transmitted on the first electronic device or the second application-related data that is not decompressed on the second electronic device as invalid data.
Here, when controlling the first application to perform the first operation, it is necessary to ensure that data is not changed temporarily, thereby ensuring the integrity of the data during the data migration.
In one approach, the second application-related data integrity may be ensured by prohibiting the launching of the second application, in particular during the beginning of the transmission of the second application-related data to the second electronic device. In practical applications, in the case where the second application is a third-party application installed on the first electronic device, the start of the second application may be prohibited. When the second application is a system application, it may be ensured that the data related to the second application is not changed by the lock mechanism, for example, the write operation to the data related to the second application is prohibited by the lock mechanism. In practical application, when a user tries to start the second application, a prompt message that data related to the second application is subjected to data migration is sent to the user, and the user is advised to start the second application later through the prompt message.
In another mode, when the start of the second application is not prohibited, or when the user still selects to start the second application after receiving the prompt message, in order to prevent the data related to the second application from being lost, the data related to the second application that is not transmitted on the first electronic device or the data related to the second application that is not decompressed on the second electronic device may be marked as invalid data, and in an actual application, the second electronic device may be further notified to discard the data related to the second application that is marked as invalid, so that the storage space of the second electronic device is avoided from being occupied, and meanwhile, the situation that the data related to the second application is lost is avoided. When the existence of invalid data is detected, the first electronic device needs to regenerate a data compression packet of data related to the second application, and relocate the invalid data to the second electronic device.
In an embodiment, as shown in fig. 4, the controlling the first application to perform a first operation based on the second parameter includes:
s401: and determining a migration sequence corresponding to the at least one second application according to a third parameter of the second application.
Here, the third parameter is used to describe the frequency of use of the second application on the first electronic device, and it can be determined whether the second application is a commonly used application. When the user selects to perform data migration on the plurality of second applications, the migration sequence of each second application may be determined according to the third parameter of the second application. In practical applications, in the process of starting to transmit data related to a second application to a second electronic device, the start of the second application is prohibited, in order to enable the second application to resume starting, and particularly, for a second application with a high use frequency to resume running as soon as possible, when determining a migration sequence corresponding to at least one second application, the second application corresponding to a highest second parameter may be preferentially and individually transmitted according to the magnitude sorting of the second parameter, and the smaller the second parameter, the later the migration sequence of the corresponding second application is correspondingly.
S402: controlling the first application to execute a first operation based on the second parameter based on the determined migration sequence; wherein the content of the first and second substances,
the third parameter characterizes a frequency of use of the at least one second application on the first electronic device.
Here, by controlling the first application to perform the first operation based on the second parameter according to the migration order determined by the first parameter, data migration can be performed on the second application in an orderly manner, and the start of the second application can be resumed as soon as possible. In practical applications, data related to a second application with a front migration order may be transmitted separately, and data related to a plurality of second applications with a rear migration order may be transmitted simultaneously.
In an embodiment, as shown in fig. 5, when the controlling the first application performs the first operation based on the second parameter, the method further includes:
s501: the first parameter is acquired again.
Here, after the first application performs the first operation based on the second parameter, it is necessary to continuously detect the load amount of the read/write operation performed on the memory, and acquire the first parameter again.
S502: and controlling the first application to stop executing the first operation when the first parameter acquired again is larger than or equal to a first set value.
Here, when the first parameter is greater than or equal to the first set value, it is characterized that the first application running based on the current second parameter still has a large influence on the load of the system, and the first application needs to be controlled to stop executing the first operation, so as to avoid the stability of the system from collapsing.
In practical applications, after the first application is controlled to stop executing the first operation, the first parameter needs to be continuously monitored, so that the first application is recovered to execute the first operation according to the load of the read-write operation on the memory. Specifically, when the first parameter starts to fall back and (Vio _ high +2Vio _ med)/3< first parameter < (3Vio _ high + Vio _ med)/4, the second parameter may be determined based on the first value and the first adjustment coefficient Ciops _ medium when there is a first set value Vio _ high, a second set value Vio _ low, and a set load amount Vio _ med. If the Vio _ med is less than or equal to the first parameter < (2Vio _ high + Vio _ med)/3, after a certain time interval, the set step value Vstep1 is added for the second parameter, and the second parameter is increased. If Vio _ low < the first parameter ≦ Vio _ med, the set step value Vstep2 is increased for the second parameter, increasing the second parameter. If the first parameter < Vio _ low, the second parameter is increased by the set step value Vstep3, where Vstep1 < Vstep2 < Vstep3, (Vio _ high +2Vio _ med)/3, (3Vio _ high + Vio _ med)/4, (2Vio _ high + Vio _ med)/3, may be other different set values.
S503: and increasing a set step value for the second parameter under the condition that the re-acquired first parameter is smaller than the first set value.
Here, if the first parameter obtained again is smaller than the first set value, it indicates that the current load amount of the read/write operation on the memory is in a medium bias, and therefore, the second parameter to which the set step value is added may be further increased.
In practical application, the interval range smaller than the first set value may be divided into different value intervals, and the corresponding set step value is determined according to the value interval corresponding to the first parameter, for example, the first set value is denoted as Vio _ high, the second set value is denoted as Vio _ low, and the set load amount Vio _ med exists when the first parameter is smaller than Vio _ low. The load amount of the current read-write operation on the memory is low, the second parameter can be increased, the first application can obtain more read-write resources, and the set step value Vstep3 can be increased for the second parameter. When the Vio _ low < the first parameter < ═ Vio _ med, which indicates that the load of the current read-write operation on the memory is low, some read-write resources are available for the first application, and the set step value Vstep2 can be added to the second parameter. When Vio _ med < first parameter < Vio _ high, indicating that the load amount of the current read and write operations to the memory is high, the set step value Vstep1 may be increased for the second parameter, where the set step value Vstep1 < Vstep2 < Vstep 3.
In practical applications, when Vio _ med < first parameter < Vio _ high, the load amount of the memory performing the read/write operation is at a high level, and the second parameter is further increased by the set step value Vstep3, so it is necessary to continuously monitor the current first parameter and timely adjust the second parameter according to the first parameter, for example, when detecting that the first parameter is ≧ (2Vio _ high + Vio _ med)/3, the second parameter is stopped being continuously increased. If the first parameter continues to rise from (2Vio _ high + Vio _ med)/3 and the first parameter reaches a value close to Vio _ high, for example, if the first parameter is (3Vio _ high + Vio _ med)/4, the set step value Vstep4 may be decreased for the second parameter to avoid the first parameter exceeding Vio _ high, so as to well balance the load condition of the system during the first operation of the first application and avoid the stability of the system from being damaged.
In the embodiment of the invention, the first parameter is monitored, and the reasonable second parameter is set for the first application according to the load of the memory in the electronic equipment for performing read-write operation, so that the stability of the system can be improved under the condition of performing a large amount of read-write operation in the data migration process, and the execution efficiency of the data migration can be improved.
In order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides a data migration apparatus, as shown in fig. 6, the apparatus includes:
an obtaining unit 601, configured to obtain a first parameter; the first parameter represents the load of reading and writing operations on a memory in the first electronic equipment;
a configuration unit 602, configured to configure a second parameter according to the first parameter; the second parameter is characterized by the read-write data volume in unit time configured by the first application; the first application is used for performing data migration between different electronic devices;
a control unit 603, configured to control the first application to perform data reading and writing on the memory based on the second parameter in a process of executing the first operation; the first operation is to migrate each of at least one second application on the first electronic device onto a second electronic device.
In an embodiment, the configuring unit 602 is further configured to configure a second parameter according to the first parameter, and further configured to:
and under the condition that the first parameter is smaller than a first set value, configuring the second parameter according to the first parameter.
In an embodiment, the configuring unit 602 is further configured to configure a second parameter according to the first parameter, and further configured to:
configuring the second parameter to be a set first value when the first parameter is smaller than a second set value;
determining the second parameter according to a set first adjustment coefficient corresponding to the first parameter and the first numerical value under the condition that the first parameter is larger than the second set value; wherein the content of the first and second substances,
the second set value is less than the first set value.
In an embodiment, the apparatus is further configured to:
and prohibiting the first application from executing the first operation under the condition that the first parameter is greater than or equal to the first set value.
In an embodiment, in a case that the first parameter is greater than or equal to a first set value, after prohibiting the first application from performing the first operation, the apparatus is further configured to:
determining at least one third application; the third application represents the application with the occupancy rate of the read-write resource larger than a third set value;
generating first prompt information; the first prompt message is used for prompting to close at least one third application in the at least one third application.
In an embodiment, the control unit 603, when controlling the first application to perform the first operation based on the second parameter, is further configured to:
prohibiting starting of the second application; alternatively, the first and second electrodes may be,
marking the second application-related data that is not transmitted on the first electronic device or the second application-related data that is not decompressed on the second electronic device as invalid data.
In an embodiment, the control unit 603, when controlling the first application to perform the first operation based on the second parameter, is further configured to:
determining a migration sequence corresponding to the at least one second application according to a third parameter of the second application;
controlling the first application to execute a first operation based on the second parameter based on the determined migration sequence; wherein the content of the first and second substances,
the third parameter characterizes a frequency of use of the at least one second application on the first electronic device.
In an embodiment, the control unit 603, when controlling the first application to perform the first operation based on the second parameter, is further configured to:
acquiring the first parameter again;
controlling the first application to stop executing the first operation under the condition that the obtained first parameter is larger than or equal to a first set value;
and increasing a set step value for the second parameter under the condition that the re-acquired first parameter is smaller than the first set value.
In actual applications, the obtaining unit 601, the configuring unit 602, and the controlling unit 603 may be implemented by a processor in the data migration apparatus. Of course, the processor needs to run the program stored in the memory to realize the functions of the above-described program modules.
It should be noted that, when the data migration apparatus provided in the embodiment of fig. 6 performs data migration, the division of each program module is merely exemplified, and in practical applications, the above processing may be distributed to different program modules according to needs, that is, the internal structure of the apparatus may be divided into different program modules to complete all or part of the above-described processing. In addition, the data migration apparatus and the data migration method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Based on the hardware implementation of the program module, and in order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides an electronic device, and fig. 7 is a schematic diagram of a hardware composition structure of the electronic device according to the embodiment of the present application, and as shown in fig. 7, the electronic device includes:
a communication interface 1 capable of information interaction with other devices such as network devices and the like;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other equipment, and is used for executing the data migration method provided by one or more technical schemes when running a computer program. And the computer program is stored on the memory 3.
In practice, of course, the various components in the electronic device are coupled together by the bus system 4. It will be appreciated that the bus system 4 is used to enable connection communication between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. For the sake of clarity, however, the various buses are labeled as bus system 4 in fig. 7.
The memory 3 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory 3 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 3 described in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed in the above embodiment of the present application may be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 2. The processor 2 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 2 may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 3, and the processor 2 reads the program in the memory 3 and in combination with its hardware performs the steps of the aforementioned method.
When the processor 2 executes the program, the corresponding processes in the methods according to the embodiments of the present application are realized, and for brevity, are not described herein again.
In an exemplary embodiment, the present application further provides a storage medium, i.e. a computer storage medium, specifically a computer readable storage medium, for example, including a memory 3 storing a computer program, which can be executed by a processor 2 to implement the steps of the foregoing method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, terminal and method may be implemented in other manners. The above-described device embodiments are only illustrative, for example, the division of the unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method of data migration, comprising:
acquiring a first parameter; the first parameter represents the load of reading and writing operations on a memory in the first electronic equipment;
configuring a second parameter according to the first parameter; the second parameter is characterized by the read-write data volume in unit time configured by the first application; the first application is used for performing data migration between different electronic devices;
controlling the first application to read and write data to the memory based on the second parameter in the process of executing the first operation; the first operation is to migrate each of at least one second application on the first electronic device onto a second electronic device.
2. The method of claim 1, wherein configuring a second parameter according to the first parameter comprises:
and under the condition that the first parameter is smaller than a first set value, configuring the second parameter according to the first parameter.
3. The method of claim 2, wherein configuring the second parameter according to the first parameter comprises:
configuring the second parameter to be a set first value when the first parameter is smaller than a second set value;
determining the second parameter according to a set first adjustment coefficient corresponding to the first parameter and the first numerical value under the condition that the first parameter is larger than the second set value; wherein the content of the first and second substances,
the second set value is less than the first set value.
4. The method of claim 2, further comprising:
and prohibiting the first application from executing the first operation under the condition that the first parameter is greater than or equal to the first set value.
5. The method according to claim 4, wherein after prohibiting the first application from performing the first operation if the first parameter is greater than or equal to a first set value, the method further comprises:
determining at least one third application; the third application represents the application with the occupancy rate of the read-write resource larger than a third set value;
generating first prompt information; the first prompt message is used for prompting to close at least one third application in the at least one third application.
6. The method of claim 1, wherein when the controlling the first application performs a first operation based on the second parameter, the method further comprises:
prohibiting starting of the second application; alternatively, the first and second electrodes may be,
marking the second application-related data that is not transmitted on the first electronic device or the second application-related data that is not decompressed on the second electronic device as invalid data.
7. The method of claim 1, wherein the controlling the first application to perform a first operation based on the second parameter comprises:
determining a migration sequence corresponding to the at least one second application according to a third parameter of the second application;
controlling the first application to execute a first operation based on the second parameter based on the determined migration sequence; wherein the content of the first and second substances,
the third parameter characterizes a frequency of use of the at least one second application on the first electronic device.
8. The method of claim 1, wherein when the controlling the first application performs a first operation based on the second parameter, the method further comprises:
acquiring the first parameter again;
controlling the first application to stop executing the first operation under the condition that the obtained first parameter is larger than or equal to a first set value;
and increasing a set step value for the second parameter under the condition that the re-acquired first parameter is smaller than the first set value.
9. A data migration apparatus, comprising:
an acquisition unit configured to acquire a first parameter; the first parameter represents the load of reading and writing operations on a memory in the first electronic equipment;
the configuration unit is used for configuring a second parameter according to the first parameter; the second parameter is characterized by the read-write data volume in unit time configured by the first application; the first application is used for performing data migration between different electronic devices;
the control unit is used for controlling the first application to read and write data to the memory based on the second parameter in the process of executing the first operation; the first operation is to migrate each of at least one second application on the first electronic device onto a second electronic device.
10. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 8 when running the computer program.
11. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, performing the steps of the method of any one of claims 1 to 8.
CN202111209903.7A 2021-10-18 2021-10-18 Data migration method, device, electronic equipment and storage medium Active CN114327253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111209903.7A CN114327253B (en) 2021-10-18 2021-10-18 Data migration method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111209903.7A CN114327253B (en) 2021-10-18 2021-10-18 Data migration method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114327253A true CN114327253A (en) 2022-04-12
CN114327253B CN114327253B (en) 2024-05-28

Family

ID=81045574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111209903.7A Active CN114327253B (en) 2021-10-18 2021-10-18 Data migration method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114327253B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140108341A1 (en) * 2011-09-23 2014-04-17 Hybrid Logic Ltd System for live-migration and automated recovery of applications in a distributed system
CN106095940A (en) * 2016-06-14 2016-11-09 齐鲁工业大学 A kind of data migration method of task based access control load
CN107122126A (en) * 2016-12-22 2017-09-01 华为技术有限公司 The moving method of data, device and system
CN107636612A (en) * 2015-03-27 2018-01-26 英特尔公司 Application container for the real-time migration of Mobile solution
CN112286461A (en) * 2020-10-29 2021-01-29 苏州浪潮智能科技有限公司 Data migration method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140108341A1 (en) * 2011-09-23 2014-04-17 Hybrid Logic Ltd System for live-migration and automated recovery of applications in a distributed system
CN107636612A (en) * 2015-03-27 2018-01-26 英特尔公司 Application container for the real-time migration of Mobile solution
CN106095940A (en) * 2016-06-14 2016-11-09 齐鲁工业大学 A kind of data migration method of task based access control load
CN107122126A (en) * 2016-12-22 2017-09-01 华为技术有限公司 The moving method of data, device and system
CN112286461A (en) * 2020-10-29 2021-01-29 苏州浪潮智能科技有限公司 Data migration method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114327253B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
US8429374B2 (en) System and method for read-while-write with NAND memory device
US20150317246A1 (en) Memory Reclamation Method and Apparatus
KR20170068373A (en) Electronic system with memory data protection mechanism and method of operation thereof
US8914592B2 (en) Data storage apparatus with nonvolatile memories and method for controlling nonvolatile memories
CN105874428B (en) Technology for the operating system transformation in multiple operating system environments
CN111324303B (en) SSD garbage recycling method, SSD garbage recycling device, computer equipment and storage medium
CN112749102B (en) Memory space garbage recycling method, device, equipment and medium
US8381003B2 (en) Memory relocation in computer for power saving
CN101853196A (en) Method and device recording exceptional data
CN111723057A (en) File pre-reading method, device, equipment and storage medium
EP3289426B1 (en) Methods and apparatuses for memory power reduction
CN111813455B (en) Low-power-consumption realization method and device of solid state disk, computer equipment and storage medium
CN111522602B (en) Method for starting communication device
CN110837444B (en) Memory fault processing method and device
JP2015118423A (en) Refresh device and electronic apparatus
WO2011139452A2 (en) Emulated electrically erasable (eee) memory and method of operation
CN114721493A (en) Chip starting method, computer equipment and readable storage medium
CN110399168A (en) Majority according to disk storage server system start method, device and equipment
CN112667442B (en) Control method, device and equipment based on nonvolatile memory device starting system
CN102148754B (en) Loading method and device for FPGA (field programmable gate array) logic editions
CN114327253A (en) Data migration method and device, electronic equipment and storage medium
CN109840224B (en) Memory system and method of operating the same
CN109491785B (en) Memory access scheduling method, device and equipment
JP2015035007A (en) Computer, control program, and dump control method
EP2581804A1 (en) Electronic apparatus using NAND flash and memory management method 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