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

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

Info

Publication number
CN114327253B
CN114327253B CN202111209903.7A CN202111209903A CN114327253B CN 114327253 B CN114327253 B CN 114327253B CN 202111209903 A CN202111209903 A CN 202111209903A CN 114327253 B CN114327253 B CN 114327253B
Authority
CN
China
Prior art keywords
parameter
application
set value
memory
read
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
CN202111209903.7A
Other languages
Chinese (zh)
Other versions
CN114327253A (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

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 characterizes the load capacity of the memory in the first electronic equipment for reading and writing operations; configuring a second parameter according to the first parameter; the second parameter is characterized by the read-write data quantity in unit time configured by the first application; the first application is used for executing data migration between different electronic devices; controlling the first application to read and write data from and 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 to a second electronic device.

Description

Data migration method, 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, a data transmission device, an electronic device, and a storage medium.
Background
In the related art, software and data installed on the electronic device can be transferred to other storage spaces or other electronic devices, and a large number of read-write operations can be generated in the process of transferring the software and the data, so that the load of a memory of the electronic device is increased, the stability of a system is affected, and crashes can be caused in the process of transferring the software and the data, so that the transfer of the software and the data cannot be completed.
Disclosure of Invention
In view of the above, embodiments of the present application provide a data transmission method, apparatus, electronic device, and storage medium, so as to at least solve the problem that in the data migration process, the stability of the system is affected and the data migration efficiency is reduced in the related art.
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 characterizes the load capacity of the memory in the first electronic equipment for reading and writing operations;
Configuring a second parameter according to the first parameter; the second parameter is characterized by the read-write data quantity in unit time configured by the first application; the first application is used for executing data migration between different electronic devices;
Controlling the first application to read and write data from and 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 to a second electronic device.
In the above solution, 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.
In the above 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 value and the first parameter when the first parameter is larger than the second set value; wherein,
The second set value is smaller 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 above solution, after prohibiting the first application from executing the first operation if the first parameter is greater than or equal to a first set value, the method further includes:
Determining at least one third application; the third application characterizes the application of which the occupancy rate of the read-write resource is 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 above aspect, when the controlling the first application performs the first operation based on the second parameter, the method further includes:
inhibit starting the second application; or alternatively
And marking the data related to the second application which is not transmitted on the first electronic device or the data related to the second application which is not decompressed on the second electronic device as invalid data.
In the above solution, the controlling the first application to perform a 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;
Based on the determined migration sequence, controlling the first application to execute a first operation based on the second parameter; wherein,
The third parameter characterizes a frequency of use of the at least one second application on the first electronic device.
In the above aspect, 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 acquired first parameter is larger than or equal to a first set value;
and increasing the set stepping value for the second parameter under the condition that the acquired first parameter is smaller than the first set value.
The embodiment of the application also provides a data migration device, which comprises:
An acquisition unit configured to acquire a first parameter; the first parameter characterizes the load capacity of the memory in the first electronic equipment for reading and writing operations;
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 quantity in unit time configured by the first application; the first application is used for executing data migration between different electronic devices;
The control unit is used for controlling the first application to read and write data from and 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 to a second electronic device.
The embodiment of the application also provides electronic equipment, which comprises: a processor and a memory for storing a computer program capable of running on the processor,
Wherein the processor is configured to execute the steps of any of the methods described above when the computer program is run.
The embodiment of the application also provides a storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of any of the methods described above.
In the embodiment of the application, the first read-write data volume in unit time is configured by carrying out read-write operation load capacity on the memory in the electronic equipment, so that the load capacity of carrying out read-write operation on the memory can be controlled in the process of running the first application to carry out data migration, the overload of a system is avoided, and the stability of the system can be ensured.
Drawings
FIG. 1 is a schematic diagram illustrating an implementation flow of a data migration method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating an implementation flow 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 diagram illustrating an implementation flow of a data migration method according to another embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a data migration apparatus according to an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware composition structure of a terminal according to an embodiment of the application.
Detailed Description
The application will be described in further detail with reference to the accompanying drawings and specific examples.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, 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 schemes described in the embodiments of the present application may be arbitrarily combined without any collision.
In addition, in the embodiments of the present application, "first", "second", etc. are used to distinguish similar objects and are not necessarily used to describe a particular order or precedence.
In addition, the term "at least one" herein means any combination of any one or more of at least two of the plurality, for example, including at least one of A, B, C, 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 in the embodiment of the present application. As shown in fig. 1, the method includes:
s101: acquiring a first parameter; the first parameter characterizes the load capacity of the read-write operation on the memory in the first electronic equipment.
The method comprises the steps that in the process of operating on the electronic equipment, a memory can store application programs and data, therefore, multiple read-write operations can be conducted on the memory in the first electronic equipment, wherein a certain storage unit in the memory is used as write operation, data of a certain storage unit in the memory is removed to be read operation, the data are processed through the read-write operation of related data in the memory, when a large number of read-write operations exist in the operating process of the application, the load capacity of the read-write operation of the memory is increased, and a large degradation risk exists for the performance and stability of the system, therefore, the load condition of the electronic equipment under the current condition can be determined through acquiring a first parameter, whether the operation of the application with the large number of read-write operations can be supported at present or not is further determined, the first parameter can be in the form of a ratio, and in an example, the ratio of the current read-write operation of the system to the maximum available read-write operation is evaluated, when the ratio of the first parameter is large, the load of the current memory is represented, and when the ratio of the first parameter is small, the load of the current memory is represented, and the load of the current memory is small.
S102: configuring a second parameter according to the first parameter; the second parameter is characterized by the read-write data quantity in unit time configured by the first application; the first application is for performing data migration between different electronic devices.
The first application is used for executing data migration between different electronic devices, wherein the first application can read an application needing to be moved on a user data partition on a memory and compress data of the application to generate a plurality of data compression packets, the generated data compression packets are migrated to the second electronic device, in order to improve the data migration efficiency of the first application, a plurality of threads are adopted to conduct simultaneously, a large number of concurrent read-write operations are generated in the data migration process of the first application, the load of the memory is increased, the first application triggers the read-write operations through second parameter regulation, the second parameter represents the read-write data quantity in unit time configured by the first application, and the first application can conduct the read-write operations on the memory according to the configured second parameter. Therefore, in order to ensure the stability of the system, a second reasonable parameter is configured for the first application according to the first parameter, so that 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 capacity of the memory for performing the read-write operation 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 safety load, and a second parameter reasonable for the first application may be configured according to the storage state of the first electronic device, and the first application is operated 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 as 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 through the first parameter, a second set value is further set, where the second set value is smaller than the first set value, so that a load condition corresponding to the first parameter can be further determined according to the first set value, when the first parameter is smaller than the second set value, it is indicated that the load capacity of the current read-write operation on the memory is lower, no special adjustment is needed on the second parameter, the second parameter can be configured to be a set first value, where the first value refers to the read-write data amount in a unit time of initial configuration of the second application, and in practical application, the first set value can be obtained through conversion of the read-write data amount in a unit time of the memory device.
S202: determining the second parameter according to a set first adjustment coefficient corresponding to the first value and the first parameter when the first parameter is larger than the second set value; wherein,
The second set value is smaller than the first set value.
Here, when the second parameter is greater than the second set value, it indicates that the current load amount of the read-write operation on the memory is at a medium level, and the second parameter may be determined by the first adjustment coefficient and the first numerical value, where the first adjustment coefficient numerically satisfies: if 0 < first adjustment coefficient < 1, then the second parameter of the final configuration is smaller than the first value, so that the influence of the first application on the system load can be appropriately reduced.
In practical application, the corresponding first adjustment coefficient can be set for the first parameters in different interval ranges, so that the second parameters can be regulated and controlled more accurately. For example, a first setting value may be set as a first setting value is vio_high, a second setting value is a first setting value is a second setting value, in a value range formed between the first setting value vio_high and the second setting value vio_low, a second setting value is set again, wherein vio_low < vio_med < vio_high, when the first parameter is greater than the second setting value vio_low, the magnitude relation between the first parameter and the vio_med may be further judged, and further, a set first adjustment coefficient corresponding to the first parameter may be determined, for example, when vio_low < first parameter is less than vio_med, indicating that the current load amount of the memory for performing the read-write operation is lower, a second parameter may be determined according to a first adjustment coefficient Ciops _ lowio corresponding to the first value and the first parameter setting value, wherein 0 < Ciops _ lowio < 1, when vio_med < first parameter < vio_high indicates that the current load amount of the memory is greater than the first parameter < vio_high, and a first parameter is more than a second parameter, and a magnitude of the load is more than a first parameter is determined, and a system is capable of being correspondingly limited according to a first adjustment coefficient corresponding to a value of a first parameter which is greater than a magnitude than a value of 35 and is more than a threshold than 35, and is capable of being determined. In practical applications, since the read-write resources are limited, when there are other applications with high occupation ratio to the read-write resources, the duration of executing the first operation by the first application is increased, so that the other applications with high occupation ratio to the read-write resources can be sent to the user to be closed.
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 capacity of the current read-write operation performed on the memory is large, and the first application is continuously controlled to perform the first operation, which may cause an excessive load pressure of the memory, so that problems occur in performance and stability of the system, and the probability that the first electronic device is stuck or cannot operate is easily increased. In an actual application, a prompt message may be generated to the user, where the generated prompt message is used to inform the user that the user tries to run the first application to execute the first operation later.
In an embodiment, as shown in fig. 3, after prohibiting the first application from performing the first operation in a case where 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 characterizes the application of which the occupancy rate of the read-write resource is larger than a third set value.
Here, the first application is prohibited from executing the first operation because the current load of performing the read-write operation on the memory is too high, and after the load of performing the read-write operation on the memory is reduced, there is a possibility that the first application is controlled to execute the first operation, so that the third application may be determined by taking up the read-write resource, and in the actual application, an 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 may 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, the 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 a possibility of controlling the first application to execute the first operation can exist. In practical application, after one of the third applications is detected to be closed, the first parameter can be re-detected, and the second parameter is configured according to the first parameter, so that the load capacity of the memory for reading and writing operations can be monitored in real time, and further data migration can be completed timely.
S103: controlling the first application to read and write data from and 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 to a second electronic device.
Here, when the user needs to migrate the 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 applications, where the second application may be a system application or a third party application installed on the first electronic device, where, in a process of migrating the second application on the first electronic device to the second electronic device, the first application needs to read and write data in a corresponding storage space in the memory to obtain relevant data that needs to be migrated, and specifically, the first application on the first electronic device can read and write data in the memory based on the configured second parameter, where the read and write data amount is the second parameter in a unit time. In an actual 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 writing operation, and when data migration is performed, the data compression package on the user data partition is read, and the read data compression package is migrated to the second electronic device, so that data migration of the second application is completed.
In the actual application, when the second application is in the running state before the data migration, the second electronic device immediately starts to run the second application by loading the installation package of the second application after receiving the 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 initiates read-write operations in a period of time exists, other application processes cannot rapidly perform read-write operations on the memory, and further data processing efficiency is reduced. In the process that the first application executes the first operation, when detecting that applications occupying large read-write resources exist, the applications can be closed or the weight values of the applications can be reduced appropriately.
In an embodiment, when the controlling the first application performs a first operation based on the second parameter, the method further comprises:
inhibit starting the second application; or alternatively
And marking the data related to the second application which is not transmitted on the first electronic device or the data related to the second application which is not decompressed on the second electronic device as invalid data.
Here, it is necessary to ensure that the data is not changed temporarily while controlling the first application to perform the first operation, thereby ensuring the integrity of the data during the data migration.
In one manner, the integrity of the second application-related data 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 an actual application, when the second application is a third party application installed on the first electronic device, the start of the second application may be prohibited. In the case that the second application is a system application, it may be ensured that the relevant data of the second application is not changed by means of a lock mechanism, for example, writing operation to the relevant data of the second application is prohibited by means of the lock mechanism. In practical application, when the user tries to start the second application, a prompt message that the data related to the second application is being migrated is sent to the user, and the user is suggested to start the second application later through the prompt message.
In another manner, when the second application is not prohibited from being started, or when the user still selects to start the second application after receiving the prompt information, in order to prevent the second application related data from being lost, the second application related data which is not transmitted on the first electronic device or the second application related data which 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 notified to discard the second application related data marked as invalid, so as to avoid occupying the storage space of the second electronic device, and meanwhile, avoid the situation that the second application related data is lost. When the presence of invalid data is detected, the first electronic device needs to regenerate a data compression packet of the data related to the second application and re-migrate 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 the migration sequence corresponding to the at least one second application according to the third parameter of the second application.
Here, the third parameter is used to describe a frequency of use of the second application on the first electronic device, and it may be determined whether the second application is a commonly used application. When there is a user selection to migrate data to a plurality of second applications, a migration order of each second application may be determined according to a third parameter of the second application. In the actual application, in the process of starting to transmit the data related to the second application to the second electronic device, starting of the second application is prohibited, in order to enable the second application to resume starting, particularly for the second application with high use frequency to resume operation as soon as possible, when determining the migration sequence corresponding to at least one second application, the second application corresponding to the highest second parameter may be preferentially and individually transmitted according to the size sequence of the second parameter, and the migration sequence of the corresponding second application is correspondingly later as the second parameter is smaller.
S402: based on the determined migration sequence, controlling the first application to execute a first operation based on the second parameter; wherein,
The third parameter characterizes a frequency of use of the at least one second application on the first electronic device.
Here, according to the migration sequence determined by the first parameter, the first application is controlled to execute the first operation based on the second parameter, so that data migration can be orderly performed on the second application, and further, the starting of the second application can be restored as soon as possible. In practical applications, data related to a second application with a front migration sequence can be transmitted separately, and data related to a plurality of second applications with a rear migration sequence can be transmitted simultaneously.
In an embodiment, as shown in fig. 5, when the controlling the first application performs a first operation based on the second parameter, the method further includes:
s501: the first parameter is again acquired.
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 on the memory, and acquire the first parameter again.
S502: and controlling the first application to stop executing the first operation under the condition that the acquired first parameter 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, the first application running based on the current second parameter is still characterized to have a larger influence on the load of the system, and the first application needs to be controlled to stop executing the first operation, so that the system stability is prevented from being crashed.
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 restored to execute the first operation according to the load of the read-write operation on the memory. Specifically, there is a first set value vio_high, a second set value vio_low, and a set load amount vio_med, 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 according to the first value and the first adjustment coefficient Ciops _ medio. If 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 increased for the second parameter, and the second parameter is increased. If Vio_Low < first parameter is less than or equal to Vio_med, the set step value Vstep2 is increased for the second parameter, and the second parameter is increased. If the first parameter < vio_low, the second parameter is increased by a set step value Vstep3 for the second parameter, where the set step value Vstep1 < Vstep2 < Vstep3, in practical application, (vio_high+2vio_med)/3, (3vio_high+vio_med)/4, (2vio_high+vio_med)/3 may be other different set values.
S503: and increasing the set stepping value for the second parameter under the condition that the acquired first parameter is smaller than the first set value.
Here, if the first parameter acquired 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 moderate bias, so that the second parameter may be further increased, where the set step value is increased for the second parameter.
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, where, 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, and when the first parameter < vio_low. The current load capacity of the memory in read-write operation is low, the second parameter can be increased, so that the first application can acquire more read-write resources, and the set stepping value Vstep3 can be increased for the second parameter. When the value of the first parameter of vio_low < i.e., vio_med, it indicates that the current load capacity of performing the read-write operation on the memory is low, and some read-write resources are available for the first application, the set step value Vstep2 may be added for the second parameter. When the value of vio_med < first parameter < vio_high indicates that the current load of the read/write operation on the memory is higher, the set step value Vstep1 may be increased for the second parameter, where the set step value Vstep1 < Vstep2 < Vstep3.
In practical applications, when the first parameter is less than the first parameter, the load amount of the read-write operation on the memory is at a higher level, and the second parameter is further increased by the set step value Vstep3, so that it is necessary to continuously monitor the current first parameter, and adjust the second parameter in time according to the first parameter, for example, when the first parameter ∈ (2vio_high+vio_med)/3 is detected, the second parameter is stopped to be continuously increased. If the first parameter continues to rise from (2vio_high+vio_med)/3, and the first parameter reaches the condition that is about to approach to vio_high, for example, when the first parameter= (3vio_high+vio_med)/4, the set step value Vstep4 may be reduced for the second parameter, so that the first parameter is avoided from exceeding vio_high, and thus the load condition of the system during the first operation of the first application can be well balanced, and the stability of the system is avoided from being damaged.
In the embodiment of the invention, the first parameter is monitored, and the second parameter which is reasonable is set for the first application according to the load capacity of the read-write operation on the memory in the electronic equipment, so that the stability of the system can be improved under the condition that a large number of read-write operations are performed in the data migration process, and the execution efficiency of the data migration can be improved.
In order to implement the method of the embodiment of the present application, the embodiment of the present application further provides a data migration apparatus, as shown in fig. 6, where the apparatus includes:
An obtaining unit 601, configured to obtain a first parameter; the first parameter characterizes the load capacity of the memory in the first electronic equipment for reading and writing operations;
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 quantity in unit time configured by the first application; the first application is used for executing data migration between different electronic devices;
A control unit 603, configured to control the first application to read and write data from and to the memory based on the second parameter during 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 to a second electronic device.
In an embodiment, the configuration unit 602 is further configured to, according to the first parameter, configure a second parameter:
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 configuration unit 602 is further configured to, according to the first parameter, configure a second parameter:
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 value and the first parameter when the first parameter is larger than the second set value; wherein,
The second set value is smaller than the first set value.
In an embodiment, the device 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 the case that the first parameter is greater than or equal to a first set value, the apparatus is further configured to, after prohibiting the first application from performing the first operation:
Determining at least one third application; the third application characterizes the application of which the occupancy rate of the read-write resource is 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, when controlling the first application to perform the first operation based on the second parameter, the control unit 603 is further configured to:
inhibit starting the second application; or alternatively
And marking the data related to the second application which is not transmitted on the first electronic device or the data related to the second application which is not decompressed on the second electronic device as invalid data.
In an embodiment, when controlling the first application to perform the first operation based on the second parameter, the control unit 603 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;
Based on the determined migration sequence, controlling the first application to execute a first operation based on the second parameter; wherein,
The third parameter characterizes a frequency of use of the at least one second application on the first electronic device.
In an embodiment, when controlling the first application to perform the first operation based on the second parameter, the control unit 603 is further configured to:
Acquiring the first parameter again;
Controlling the first application to stop executing the first operation under the condition that the acquired first parameter is larger than or equal to a first set value;
and increasing the set stepping value for the second parameter under the condition that the acquired first parameter is smaller than the first set value.
In practical application, the acquiring unit 601, the configuring unit 602, and the control unit 603 may be implemented by a processor in the data migration apparatus. Of course, the processor needs to execute the program stored in the memory to realize the functions of the program modules.
It should be noted that, in the data migration apparatus provided in the embodiment of fig. 6, only the division of each program module is used for illustration, and in practical application, the process allocation may be performed by different program modules according to needs, that is, the internal structure of the apparatus is divided into different program modules to complete all or part of the processes described above. In addition, the data migration device and the data migration method provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the data migration device and the data migration method are detailed in the method embodiments and are not repeated herein.
Based on the hardware implementation of the program module, and in order to implement the method of the embodiment of the present application, the 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 of the embodiment of the present application, as shown in fig. 7, where 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 devices and is used for executing the data migration method provided by one or more technical schemes when running the computer program. And the computer program is stored on the memory 3.
Of course, in practice, the various components in the electronic device are coupled together by a bus system 4. It will be appreciated that the bus system 4 is used to enable connected communications 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. But for clarity of illustration 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. The non-volatile Memory may be, among other things, a Read Only Memory (ROM), a programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read-Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read-Only Memory (EEPROM, ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory), Magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk-Only (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory) which acts as external cache memory. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), and, Double data rate synchronous dynamic random access memory (DDRSDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), Direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). 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 with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 2 or by instructions in the form of software. The processor 2 described above may be a general purpose processor, 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 embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiment of the application can be directly embodied in the hardware of the decoding processor or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium in the memory 3 and the processor 2 reads the program in the memory 3 to perform the steps of the method described above in connection with its hardware.
The corresponding flow in each method of the embodiments of the present application is implemented when the processor 2 executes the program, and for brevity, will not be described in detail herein.
In an exemplary embodiment, the present application also provides a storage medium, i.e. a computer storage medium, in particular a computer readable storage medium, for example comprising a memory 3 storing a computer program executable by the processor 2 for performing the steps of the method described above. The computer readable storage medium may be 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, e.g. the division of the units is only one logical function division, and there may be other divisions in practice, such as: multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or units, whether electrically, mechanically, or otherwise.
The units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units; some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated in one unit; the integrated units may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware associated with program instructions, where the foregoing program may be stored in a computer readable storage medium, and when executed, the program performs steps including the above method embodiments; and the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
Or the above-described integrated units of the application may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in essence or a part contributing to the prior art in the form of a software product stored in a storage medium, including several instructions for causing an electronic device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, ROM, RAM, magnetic or optical disk, or other medium capable of storing program code.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within 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 (9)

1. A method of data migration, comprising:
acquiring a first parameter; the first parameter characterizes the load capacity of the memory in the first electronic equipment for reading and writing operations;
Under the condition that the first parameter is smaller than a first set value, configuring a second parameter according to the first parameter; the second parameter is characterized by the read-write data quantity in unit time configured by the first application; the first application is used for executing data migration between different electronic devices;
Controlling the first application to read and write data from and to the memory based on the second parameter in the process of executing the first operation; the first operation is used for migrating each second application in at least one second application on the first electronic device to a second electronic device;
The configuring a 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 value and the first parameter when the first parameter is larger than the second set value; wherein the second set value is smaller than the first set value.
2. The method according to claim 1, wherein 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.
3. The method of claim 2, wherein, in the event that the first parameter is greater than or equal to a first set point, after prohibiting the first application from performing the first operation, the method further comprises:
Determining at least one third application; the third application characterizes the application of which the occupancy rate of the read-write resource is 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.
4. The method of claim 1, wherein, while said controlling said first application to perform a first operation based on said second parameter, said method further comprises:
inhibit starting the second application; or alternatively
And marking the data related to the second application which is not transmitted on the first electronic device or the data related to the second application which is not decompressed on the second electronic device as invalid data.
5. 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;
Based on the determined migration sequence, controlling the first application to execute a first operation based on the second parameter; wherein,
The third parameter characterizes a frequency of use of the at least one second application on the first electronic device.
6. The method of claim 1, wherein, while said controlling said first application to perform a first operation based on said second parameter, said method further comprises:
Acquiring the first parameter again;
Controlling the first application to stop executing the first operation under the condition that the acquired first parameter is larger than or equal to a first set value;
and increasing the set stepping value for the second parameter under the condition that the acquired first parameter is smaller than the first set value.
7. A data migration apparatus, comprising:
An acquisition unit configured to acquire a first parameter; the first parameter characterizes the load capacity of the memory in the first electronic equipment for reading and writing operations;
A configuration unit, configured to configure a second parameter according to the first parameter when the first parameter is smaller than a first set value; the second parameter is characterized by the read-write data quantity in unit time configured by the first application; the first application is used for executing data migration between different electronic devices;
The control unit is used for controlling the first application to read and write data from and to the memory based on the second parameter in the process of executing the first operation; the first operation is used for migrating each second application in at least one second application on the first electronic device to a second electronic device;
The configuration unit is configured to configure a second parameter according to the first parameter, and is 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 value and the first parameter when the first parameter is larger than the second set value; wherein the second set value is smaller than the first set value.
8. 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 of claims 1 to 6 when the computer program is run.
9. A storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the method according to any of claims 1 to 6.
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 CN114327253A (en) 2022-04-12
CN114327253B true 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9483542B2 (en) * 2011-09-23 2016-11-01 Hybrid Logic Ltd System for live-migration and automated recovery of applications in a distributed system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN114327253A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
US8914592B2 (en) Data storage apparatus with nonvolatile memories and method for controlling nonvolatile memories
US10872141B2 (en) Method and apparatus for program verification
CN113778914B (en) Apparatus, method, and computing device for performing data processing
CN108205474B (en) Memory management method, terminal device, computer apparatus, and readable storage medium
CN111245732A (en) Flow control method, device and equipment
CN114327253B (en) Data migration method, device, electronic equipment and storage medium
CN111400087B (en) Control method of operating system, terminal and storage medium
CN109840224B (en) Memory system and method of operating the same
CN111949384B (en) Task scheduling method, device, equipment and computer readable storage medium
EP2750030A1 (en) Method, apparatus and processor for reading BIOS
CN109388511B (en) Information processing method, electronic equipment and computer storage medium
US11188485B2 (en) Memory system and operating method thereof
RU2469384C2 (en) Method of masking end-of-life transition of electronic device, and device including corresponding control module
EP3776165A1 (en) Techniques for preserving an expected lifespan of a non-volatile memory
CN115470155A (en) L2P table caching method and device supporting solid state disk multi-scene multiplexing
CN110928827B (en) Optimized method and device for accessing PCIe device
CN114461259A (en) Firmware refreshing method and device, wireless module and storage medium
US8503241B2 (en) Electronic apparatus and data reading method
CN115480835A (en) Program starting method and device, storage medium
CN112650693A (en) Static memory management method and device
CN114356217B (en) Data reading method, storage device and storage medium
US9773562B2 (en) Storage apparatus, flash memory control apparatus, and program
JP2011044207A (en) Method and device for controlling data storage of nonvolatile memory
CN110333967B (en) Method, device and equipment for preventing USB flash disk data loss and system damage
US11429306B2 (en) Information processing apparatus

Legal Events

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