WO2023202295A1 - Procédé et appareil de gestion et de commande de mémoire, support de stockage et dispositif électronique - Google Patents

Procédé et appareil de gestion et de commande de mémoire, support de stockage et dispositif électronique Download PDF

Info

Publication number
WO2023202295A1
WO2023202295A1 PCT/CN2023/082277 CN2023082277W WO2023202295A1 WO 2023202295 A1 WO2023202295 A1 WO 2023202295A1 CN 2023082277 W CN2023082277 W CN 2023082277W WO 2023202295 A1 WO2023202295 A1 WO 2023202295A1
Authority
WO
WIPO (PCT)
Prior art keywords
memory management
memory
control
online
target
Prior art date
Application number
PCT/CN2023/082277
Other languages
English (en)
Chinese (zh)
Inventor
李响
丁健
Original Assignee
深圳Tcl新技术有限公司
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 深圳Tcl新技术有限公司 filed Critical 深圳Tcl新技术有限公司
Publication of WO2023202295A1 publication Critical patent/WO2023202295A1/fr

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources

Definitions

  • This application relates to the field of computer technology, and specifically to a memory management and control method, device, storage medium and electronic equipment.
  • Memory management and control is usually required in various types of devices, such as memory cleaning or memory allocation.
  • the device itself when memory management and control is performed on various types of devices, the device itself usually analyzes the management and control strategy based on its own situation, and then performs management and control.
  • the embodiments of this application provide a solution that can improve the memory management efficiency and management reliability of the device.
  • a memory management and control method includes: if it is determined that online memory management and control conditions are met, obtain memory management and control data; send the memory management and control data to a target online device, so that the target online device Determine a memory management and control strategy based on the memory management and control data; receive the memory management and control strategy sent by the target online device; and perform memory management and control according to the memory management and control strategy.
  • the method before obtaining local memory management data when it is determined that online memory management conditions are met, the method further includes: obtaining target device data; and determining analysis and processing pressure based on the target device data. Whether it is higher than the predetermined condition; if the analysis and processing pressure is higher than the predetermined condition, it is determined that the online memory management and control condition is met.
  • the target device data includes at least one of a local available memory value and a processor occupancy value; and determining whether the analysis processing pressure is higher than a predetermined condition based on the target device data includes: If the available memory value is less than the first predetermined memory value or the processor occupancy value is greater than the first predetermined occupancy value, it is determined that the analysis processing pressure is higher than the predetermined condition.
  • sending the memory management data to a target online device includes: obtaining processing performance information of each of one or more online devices; The processing performance information of the device determines the target online device that meets the analysis and processing conditions from the one or more online devices.
  • the processing performance information includes at least one of an available memory value and a processor occupancy value; the target online device has an available memory value higher than a second predetermined memory value or a processor occupancy value less than The second predetermined occupancy value of the online device.
  • a memory management and control method includes: receiving memory management and control data sent by a target device, where the memory management and control data is obtained when the target device determines that online memory management and control conditions are met; based on the memory The management and control data determines a memory management and control policy; and sends the memory management and control policy to the target device, so that the target device performs memory management and control according to the memory management and control policy.
  • a memory management and control device includes: an acquisition module, used to obtain local memory management and control data if the local meets the online memory management and control scenario; a generation module, used to send the memory management and control data to Target online device, the target online device analyzes the memory management and control strategy based on the memory management and control data; a receiving module, used to receive the memory management and control strategy sent by the target online device; a management and control module, used to according to the memory management and control strategy Perform memory management locally.
  • a memory management and control device includes: a receiving module for receiving memory management and control data sent by a target device.
  • the memory management and control data is obtained by the target device when it determines that online memory management and control conditions are met. ; a determining module, configured to determine a memory management and control strategy based on the memory management and control data received by the receiving module; a sending module, configured to send the memory management and control strategy determined by the determining module to the target device, so that The target device performs memory management and control according to the memory management and control policy.
  • a storage medium has a computer program stored thereon.
  • the computer program is executed by a processor of a computer, the computer is caused to execute the method described in the embodiment of the present application.
  • an electronic device may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.
  • the memory management and control data when it is determined that the online memory management and control conditions are met, the memory management and control data is obtained; the memory management and control data is sent to the target online device, so that the target online device determines the memory cleaning strategy based on the memory management and control data; receive The memory management and control policy sent by the target online device; memory management and control is performed according to the memory management and control policy.
  • the memory management and control data is sent to the target online device, and the memory cleaning strategy is analyzed and processed with the help of the target online device, so that the memory management and control strategy is obtained online and performed locally on the electronic device.
  • Memory management This can avoid the problem of low analysis efficiency or failed analysis of the device's own management and control strategy when the device performs memory management and control on a single machine, and improves the memory management efficiency and reliability of the device.
  • Figure 1 shows a schematic structural diagram of an electronic device
  • Figure 2 shows a schematic diagram of an embodiment of the system architecture of the present application
  • Figure 3 shows a flow chart of a memory management method according to an embodiment of the present application
  • Figure 4 shows a block diagram of a memory management method according to another embodiment of the present application.
  • Figure 5 shows a block diagram of a memory management and control device according to an embodiment of the present application
  • Figure 6 shows a block diagram of a memory management device according to another embodiment of the present application.
  • first and second are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.
  • memory management is based on a single electronic device, and the system of a single electronic device performs the task of cleaning up the memory.
  • TVs Take TVs as an example. Since the TV system's ability to process data is far lower than that of mobile phones, the internal computing speed is often low. How to improve the speed of the TV system to calculate the required data before clearing the memory is particularly important.
  • Embodiments of the present application provide a memory management and control method.
  • this memory management and control method when the electronic device meets the online memory management and control conditions, the local memory management and control data of the electronic device can be sent to the target online device, and the target online device can be used to clean the memory. Analysis and processing of the policy, so as to obtain the memory management and control policy online for memory management and control. This can avoid the problem of low analysis efficiency or failure of the device's own management and control policy when the device performs memory management and control on a single machine, and improve the memory management and control efficiency and control of the device. reliability.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the following uses the electronic device 100 as an example to describe the embodiment in detail. It should be understood that the electronic device 100 shown in FIG. 1 is only an example and does not constitute a specific limitation of the electronic device 100, and the electronic device 100 may have more or fewer components than those shown in FIG. 1. Two or more components may be combined, or may have different component configurations.
  • the various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the electronic device 100 may include: a processor 110, a memory 120, an interface circuit 130, a power manager 140, a communication module 150, an audio module 160, a display screen 170, etc.
  • the processor 110 may be coupled to the memory 120, the interface circuit 130, the power manager 140, the communication module 150, the audio module 160, the display screen 170, etc., specifically through at least one bus or other interface.
  • the interface circuit 130 can be an input-output interface and can be used to connect the electronic device to other devices, such as other chips, circuit boards, external memories, peripherals or sensors, etc.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), an image signal processor ( image signal processor (ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU), etc. .
  • different processing units can be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • Memory 120 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the memory 120 to execute various functional applications and data processing of the electronic device 100 .
  • the memory 120 may include a program storage area and a data storage area.
  • the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.).
  • the storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.).
  • the memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the power manager 140 provides the power supply voltage required for the operation of the processor 110, the memory 120 and the interface circuit 130, and may further provide the clock required for the operation of the processor 110, the memory 120 and the interface circuit 130.
  • power manager 140 may convert energy from a battery or energy from a wall power source into voltages required for processor 110, memory 120, and interface circuitry 130 to operate.
  • the power manager 140 may use a basic clock, such as a crystal oscillator clock, to generate the clock required for the operation of the processor 110, the memory 120 and the interface circuit 130, which is not limited in this embodiment.
  • the power manager 140 includes a power management chip, which includes circuits such as a voltage generator and a clock generator.
  • the communication module 150 is used to implement external communication functions of the electronic device, including but not limited to wired communication and wireless communication.
  • the wireless communication includes wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), and global navigation satellites that can be applied to the electronic device 100.
  • Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR), and cellular wireless communication.
  • the communication module 150 may be one or more devices integrating at least one communication processing module.
  • the communication module 150 can receive electromagnetic waves via an antenna, frequency modulate and filter the electromagnetic wave signals, and send the processed signals to the processor 110 .
  • the communication module 150 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna for radiation.
  • the Bluetooth (BT) module and WLAN module included in the communication module 150 can emit signals to detect or scan devices near the electronic device 100, so that the electronic device 100 can be discovered using wireless communication technologies such as Bluetooth or WLAN. Nearby devices, and establish wireless communication connections with nearby devices, and share data to nearby devices through the above connections.
  • the Bluetooth (BT) module can provide one or more Bluetooth communication solutions including classic Bluetooth (Bluetooth 2.1) or Bluetooth low energy (Bluetooth low energy, BLE).
  • the WLAN module can provide a WLAN communication solution that includes one or more of Wi-Fi direct, Wi-Fi LAN or Wi-Fi softAP.
  • the wireless communication solution provided by the communication module 150 can enable electronic devices to communicate with devices in the network (such as servers), and the WLAN wireless communication solution provided by the wireless communication module can also enable electronic devices to communicate with each other.
  • the device can communicate with a device in the network (such as a server), and can communicate with a cloud device through the device (such as a server) in the network. In this way, electronic devices can discover cloud devices and transmit data to cloud devices.
  • the electronic device 100 may implement audio functions through the audio module 160 . Such as music playback, recording, etc.
  • the audio module 160 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 160 may also be used to encode and decode audio signals.
  • the audio module 160 may be provided in the processor 110 , or some functional modules of the audio module 160 may be provided in the processor 110 .
  • the electronic device 100 may implement display functions through a GPU, a display screen 170 and/or an application processor, etc.
  • the GPU is an image processing microprocessor and is connected to the display screen 170 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 170 is used to display images, videos, etc.
  • Display 170 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light-emitting diodes (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 170, where N is a positive integer greater than 1.
  • FIG. 2 shows a schematic diagram of a system architecture 200 provided in the embodiment of this application.
  • the system architecture 200 includes a plurality of electronic devices, and the number of the plurality of electronic devices is at least two.
  • the plurality of electronic devices may include a smart TV 201 and a smart phone 202.
  • the plurality of electronic devices may also include smart speakers 203, personal computers 204, smart watches 205, tablet computers 206, etc.
  • at least two electronic devices among the plurality of electronic devices may be of the same type, for example, both are smartphones, and this embodiment of the present application does not impose any limitation on this.
  • various electronic devices can communicate with each other.
  • the multiple electronic devices can be connected to a local area network (LAN) through wired or wireless fidelity (WiFi) connections; they can also communicate through a mobile network or the Internet.
  • LAN local area network
  • WiFi wireless fidelity
  • the system architecture 200 may also include a router 207.
  • the router 207 may be configured as an access point (AP) to provide a signal source for the network.
  • each electronic device in the system architecture 200 can access the router 207 as a station (station, STA).
  • the router 207 can communicate with each electronic device respectively through a wired network or a wireless network.
  • a Wi-Fi link is established between each electronic device through a wireless fidelity (Wi-Fi) protocol to achieve communication between the devices.
  • Wi-Fi wireless fidelity
  • the specific implementation may be to establish a point-to-point (point-to-point) link between each electronic device.
  • peer-to-peer, P2P) connection also known as Wi-Fi Direct
  • each device can also use the Bluetooth protocol to establish a Bluetooth link, and realize communication between the devices based on the Bluetooth link; or, the electronic devices can also be interconnected through the cellular network; or, the electronic devices can communicate with each other through the cellular network. They can also be interconnected through a switching device (for example, a USB data cable or a Dock device) to realize the communication function between various electronic devices. This is not limited in the embodiment of the present application.
  • a central device such as smart TV 201, may exist between multiple electronic devices. Create a Wifi P2P GO, that is, Group Owner, on the central device. Other devices serve as P2P GC, that is, Group Client, to connect to this GO. These devices form a one-to-many network and can communicate with each other.
  • the system architecture may also include a server 208.
  • the server 208 may be a server of application software installed on an electronic device (such as a smart TV 201), and is connected to the electronic device (such as a smart TV 201) through a network.
  • the number of servers 208 is not limited to one, but may be multiple, and is not limited here.
  • the electronic device that needs to be controlled by memory can be called a target device, and the device that is connected to the target device and can communicate is called an online device.
  • the online device meets the analysis and processing conditions and can assist the target device to determine the memory.
  • the device controlled by the policy is called the target online device.
  • the target device Taking the target device as a smart TV 201 as an example, the smart TV 201 is connected to and communicates with online devices such as a smart phone 202, a smart speaker 203, a personal computer 204, a smart watch 205 or a tablet 206.
  • the smart TV 201 determines that the online memory management and control conditions are met, the memory management and control data will be obtained, and the memory management and control data will be sent to the target online device, so that the target online device determines the memory management and control strategy based on the memory management and control data; the smart TV 201 will The memory management policy sent by the target online device performs memory management and control.
  • each device in the system architecture 200 when each device in the system architecture 200 is connected to the same AP to form a local area network, then each device in the system architecture 200 is a mutually connected device, and a device in the system architecture 200 can be found to be under the same AP. All other online devices and all online devices under the same AP (including one device and other devices in the system architecture 200) complete the network.
  • smart TV 201, smart phone 202, smart speaker 203, personal computer 204, smart watch 205, and tablet computer 206 are peripheral devices (nearby devices) to each other.
  • the smart TV 201 can obtain or record some information of the smart phone 202, the smart speaker 203, the personal computer 204, the smart watch 205, and the tablet 206, such as device information.
  • the information obtained or recorded in the smart TV 201 will not be lost due to disconnection of the network connection. Further optionally, it will not be lost within a preset period of time, such as within a month.
  • an electronic device discovers other online devices in the LAN of the same AP, and the account logged in by one or more other devices is the account of the electronic device, or one or more If the account logged in by other devices is an associated account of the login account of the electronic device, then the other devices logged in to the account or the associated account are devices trusted by the electronic device, or in other words, all the electronic devices logged in to the account or associated accounts are mutually exclusive. Trust the device. Networking is completed between devices logged in or associated with accounts under the same AP. Trusted devices can obtain some of each other's information, such as device information, etc., ensuring the security and privacy of information.
  • each electronic device in the system architecture 200 when each electronic device in the system architecture 200 communicates through the mobile network or the Internet, it can be found through the mobile network or the Internet that the account logged in by some devices in the system architecture 200 is the same account or a related account, and , when this part of the device is located near the user and the part of the device completes the network, the part of the device is a mutually trusted device.
  • the trusted devices can obtain some of each other's information, such as device information, etc., which can ensure the security and privacy of the information. sex.
  • the associated account can be an account authorized by the same account.
  • any electronic device in the above-mentioned system architecture 200 may refer to the above-mentioned electronic device 100 shown in FIG. 1 , and will not be described again here.
  • the electronic device will be taken as a smart TV as an example to introduce the memory management and control method in this application, as shown in Figure 3.
  • Figure 3 schematically shows a flow chart of a memory management method according to an embodiment of the present application.
  • the execution subject of the memory management and control method can be any electronic device in the above system architecture, such as smart TV 201, etc.
  • the memory management and control method may include steps S310 to S340.
  • Step S310 when it is determined that the online memory management and control conditions are met, obtain the memory management and control data
  • Step S320 Send the memory management and control data to the target online device, so that the target online device determines a memory management and control strategy based on the memory management and control data;
  • Step S330 Receive the memory management and control policy sent by the target online device
  • Step S340 Perform memory management and control according to the memory management and control policy.
  • the online memory management and control conditions may be predetermined conditions that require online memory management and control.
  • Memory management data is the data required for memory management, such as local available memory values, process information occupying memory, and processes waiting to use memory.
  • the electronic device can obtain these memory management data when it determines that the online memory management and control conditions are met.
  • the electronic device After obtaining the memory management and control data, the electronic device sends the memory management and control data to the target online device.
  • the target online device can determine the memory cleanup strategy applicable to the electronic device based on the memory management and control data. That is, the electronic device is online and uses the target online device to perform the memory cleanup strategy. It is determined that the target online device can determine a memory management and control strategy adapted to the electronic device based on memory management and control data analysis, and send the memory management and control policy to the electronic device.
  • the electronic device After receiving the memory management and control policy sent by the target online device, the electronic device can directly perform memory management and control according to the memory management and control policy.
  • the local memory management and control data of the electronic device is sent to the target online device, and the memory cleaning strategy is analyzed and processed by the target online device, so as to online Get memory management strategies for memory management.
  • This can avoid the problem of low analysis efficiency or failed analysis of the device's own management and control strategy when the device performs memory management and control on a single machine, and improves the memory management efficiency and reliability of the device.
  • step S310 when it is determined that the online memory management and control conditions are met, local memory management and control data is obtained.
  • the online memory management and control conditions may be predetermined conditions that require online memory management and control.
  • Memory management data is the data required for memory management, such as local available memory values, process information occupying memory, and processes waiting to use memory.
  • the electronic device can obtain these memory management data when it determines that the online memory management and control conditions are met.
  • the method before obtaining local memory management and control data when it is determined that the online memory management and control conditions are met, the method further includes: determining whether the management and control scenario set locally by the user on the electronic device is the online memory management and control. If the condition is yes, then the electronic device locally meets the online memory control conditions. On the contrary, if not, then the electronic device locally does not meet the online memory control conditions.
  • the method before obtaining the local memory management data when it is determined that the online memory management and control conditions are met, the method further includes: determining that the electronic device locally meets the online memory management and control conditions if it is determined that the electronic device locally uses a specific process.
  • the method before obtaining local memory management and control data when it is determined that the online memory management and control conditions are met, the method further includes: obtaining target device data; determining whether the analysis and processing pressure is higher than Predetermined condition; if the analysis and processing pressure is higher than the predetermined condition, it is determined that the online memory control condition is met.
  • Analysis and processing pressure refers to the pressure of analysis and calculation processing. If the local analysis and processing pressure is higher than the predetermined condition, the local area has analysis pressure under the analysis memory management and control strategy. At this time, it is determined that the local area meets the online memory cleanup conditions and can be online in subsequent steps. Perform analysis to obtain memory management and control strategies efficiently and reliably.
  • the target device data includes at least one of an available memory value and a processor occupancy value; and determining whether the analysis processing pressure is higher than a predetermined condition based on the target device data includes: if the available memory If the value is less than the first predetermined memory value or the processor occupancy value is greater than the first predetermined occupancy value, it is determined that the analysis processing pressure is higher than the predetermined condition.
  • the available memory value is less than the first predetermined memory value, it can be determined that the analysis and processing pressure is higher than the predetermined condition; in another example, if the processor occupancy value is greater than the first predetermined occupancy value, it can be determined that the analysis and processing pressure is higher than the predetermined condition.
  • the pressure is higher than the predetermined condition; in another example, if the available memory value is less than the first predetermined memory value and the processor occupancy value is greater than the first predetermined occupancy value, it is determined that the local analysis processing pressure is higher than the Booking conditions.
  • the first predetermined memory value and the first predetermined occupancy value can be set according to actual needs.
  • step S320 the memory management and control data is sent to the target online device, so that the target online device determines a memory management and control policy based on the memory management and control data.
  • the target online device can be a preset online device, or it can be a target online device selected from multiple preset online devices.
  • the target online device can be analyzed and processed based on the memory management data, and information such as the current computing memory required by the electronic device, the target available memory, the process that needs to release memory, and the predicted memory demand of the target application can be analyzed and determined to generate a memory management and control strategy.
  • sending the memory management and control data to a target online device includes: obtaining processing performance information in one or more online devices; and obtaining processing performance information from the one or more online devices based on the processing performance information of each online device. Determine the target online device that meets the analysis and processing conditions among the online devices.
  • the processing performance information of each online device may include analyzed processing performance information used to describe whether the device meets the analysis and processing conditions, and may also include at least one of an available memory value and a processor occupancy value.
  • the electronic device can determine the target online device that meets the analysis and processing conditions from one or more online devices based on the processing performance information, which can improve the reliability of obtaining the target device that can be analyzed and processed, and avoid Target online device determination failed.
  • the electronic device locally shares the other party's processing information with one or more of the online devices, and the processing information is used to describe whether the device meets the analysis and processing conditions.
  • One or more local and one or more online devices can determine whether they meet the analysis and processing conditions in real time or regularly, and then generate processing information describing whether the device meets the analysis and processing conditions. For example, an online device can determine whether its available memory value is high. When the predetermined memory value and processor occupancy value are less than the predetermined occupancy value, it is determined that it meets the analysis and processing conditions. Moreover, the local device and each online device share each other's processing information describing whether the device meets the analysis and processing conditions, and the local device can directly and efficiently determine the target online device that meets the analysis and processing conditions based on the processing information.
  • the processing performance information includes at least one of an available memory value and a processor occupancy value; the target online device has an available memory value higher than a second predetermined memory value or a processor occupancy value less than a second predetermined value.
  • the online device that occupies the value.
  • the electronic device can locally determine, based on at least one of the obtained available memory value and processor occupancy value of the online device, that the available memory value is higher than the second predetermined memory value or the processor occupancy value is less than the second predetermined occupancy value, as For the target online device that meets the analysis and processing conditions, the second predetermined memory value and the second predetermined occupancy value can be set according to actual needs.
  • step S330 the memory management policy sent by the target online device is received.
  • the electronic device locally receives the memory management control policy sent by the target online device, so there is no need to perform analysis and processing locally on the electronic device.
  • step S340 memory management is performed according to the memory management policy.
  • the memory management and control strategy can include the current local memory required by the electronic device, the target available memory, the process that needs to release memory, and the predicted memory demand of the target application, etc.
  • Electronic local can perform corresponding memory management and control operations based on different memory management and control strategies.
  • the memory management and control policy includes a memory cleaning policy; and performing memory management and control locally according to the memory management and control policy includes: performing memory cleaning locally according to the memory cleaning policy.
  • the memory cleaning strategy can include processes that need to release memory, etc., and then memory cleaning can be performed by releasing the memory occupied by the process.
  • the memory management and control policy includes a memory allocation policy; performing memory management and control locally according to the memory management and control policy includes: performing memory allocation locally according to the memory allocation policy, for example, according to the predicted demand of the target application. Memory allocation corresponds to memory and so on.
  • Figure 4 schematically shows a flow chart of a memory management method according to another embodiment of the present application.
  • the execution subject of this memory management and control method can be any electronic device in the above system architecture, such as smart watch 205, etc.
  • the memory management and control method may include steps S410 to S430.
  • Step S410 Receive memory management and control data sent by the target device.
  • the memory management and control data is obtained when the target device determines that the online memory management and control conditions are met;
  • Step S420 Determine a memory management and control strategy based on the memory management and control data
  • Step S430 Send the memory management and control policy to the target device, so that the target device performs memory management and control according to the memory management and control policy.
  • the online memory management and control conditions may be predetermined conditions that require online memory management and control.
  • Memory management data is the data required for memory management, such as the available memory value in the target device, information about processes occupying memory, and processes waiting to use memory.
  • the target device can obtain these memory management data when it determines that the online memory management conditions are met.
  • the target device After obtaining the memory management and control data, the target device sends the memory management and control data to the local device.
  • the local device can determine the memory cleanup policy applicable to the target device based on the memory management and control data. That is, the target device uses the local device online to determine the memory cleanup policy.
  • the local device can determine the memory management and control strategy suitable for the target device based on the analysis of memory management and control data, and send the memory management and control policy to the target device. After receiving the memory management and control policy sent locally, the target device can directly perform memory management and control according to the memory management and control policy.
  • the target device detects that it meets the online memory management and control conditions
  • the memory management and control data in the target device is sent to the local, and the memory cleanup strategy is analyzed and determined locally with the help of the local, so as to online Get memory management strategies for memory management.
  • This can avoid the problem of low analysis efficiency or failed analysis of the target device's own management and control strategy when the target device performs memory management on a standalone machine, and improves the memory management efficiency and reliability of the target device.
  • the embodiment of the present application also provides a memory management and control device based on the above memory management and control method.
  • the meanings of the nouns are the same as those in the above memory management and control method.
  • Figure 5 shows a block diagram of a memory management device according to an embodiment of the present application.
  • Figure 6 shows a block diagram of a memory management device according to another embodiment of the present application.
  • the memory management and control device 500 may include an acquisition module 510, a sending module 520, a receiving module 530, and a management and control module 540.
  • the acquisition module 210 can be used to obtain the memory management data when it is determined that the online memory management and control conditions are met; the sending module 220 can be used to send the memory management data to the target online device, so that the target online device can be based on the memory management data. Determine the memory management and control policy; the receiving module 230 can be used to receive the memory management and control policy sent by the target online device; the management and control module 240 can be used to perform memory management and control according to the memory management and control policy.
  • the device further includes: a data acquisition unit for acquiring target device data; a pressure analysis unit for determining whether the analysis processing pressure is higher than a predetermined condition based on the target device data; scene determination A unit configured to determine that the online memory management and control condition is met if the analysis and processing pressure is higher than a predetermined condition.
  • the target device data includes at least one of a local available memory value and a processor occupancy value; the pressure analysis unit is configured to: if the available memory value is less than the first predetermined memory value or the processor occupancy value is greater than the first predetermined occupancy value, it is determined that the local analysis and processing pressure is higher than the predetermined condition.
  • the sending module 220 includes: a processing information acquisition unit, configured to acquire processing performance information of each of one or more online devices; and a device filtering unit, configured according to The processing performance information of each online device determines the target online device that meets the analysis and processing conditions from the one or more online devices.
  • the processing performance information includes at least one of an available memory value and a processor occupancy value; the target online device has an available memory value higher than a second predetermined memory value or a processor occupancy value less than The second predetermined occupancy value of the online device.
  • the memory management and control device 600 may include a receiving module 610 , a determining module 620 , and a sending module 630 .
  • the receiving module 610 can be used to receive the memory management and control data sent by the target device.
  • the memory management and control data is obtained when the target device determines that the online memory management and control conditions are met; the determining module 620 can be used to based on all the memory management and control data received by the receiving module.
  • the memory management and control data determines a memory management and control policy; the sending module 630 may be used to send the memory management and control policy determined by the determining module to the target device, so that the target device performs memory management and control according to the memory management and control policy.
  • the electronic device provided by the embodiment of the present application may be a terminal or a server.
  • the processor 120 is the control center of the electronic device. It can use various interfaces and lines to connect various parts of the entire electronic device, run or execute software programs and/or modules stored in the memory 110, and call the software programs and/or modules stored in the memory 110. data, perform various functions of the electronic device and process the data, thereby overall monitoring the electronic device.
  • the processor 120 may include one or more processing cores; preferably, the processor 110 may integrate an application processor and a modem processor, where the application processor mainly processes operating systems, user pages, application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 120 .
  • the memory 110 can be used to store software programs and modules.
  • the processor 110 executes various functional applications and data processing by running the software programs and modules stored in the memory 110 .
  • the memory 110 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store a program based on Data created by the use of computer equipment, etc.
  • the memory 110 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 110 may also include a memory controller to provide the processor 120 with access to the memory 110 .
  • the processor 120 in the electronic device will load the executable files corresponding to the processes of one or more computer programs into the memory 120 according to the following instructions, and the processor 120 will run the executable files stored in the computer program.
  • the computer program in the memory 110 implements various functions in the foregoing embodiments of the present application.
  • the processor 120 may perform the following steps: if it is determined that the online memory management and control conditions are met, obtain memory management and control data; and send the memory management and control data to the target online device, so that the target online device determines based on the memory management and control data.
  • a memory management and control policy ; receiving the memory management and control policy sent by the target online device; and performing memory management and control according to the memory management and control policy.
  • the method before obtaining local memory management data when it is determined that online memory management conditions are met, the method further includes: obtaining target device data; and determining analysis and processing pressure based on the target device data. Whether it is higher than the predetermined condition; if the analysis and processing pressure is higher than the predetermined condition, it is determined that the online memory management and control condition is met.
  • the target device data includes at least one of a local available memory value and a processor occupancy value; and determining whether the analysis processing pressure is higher than a predetermined condition based on the target device data includes: If the available memory value is less than the first predetermined memory value or the processor occupancy value is greater than the first predetermined occupancy value, it is determined that the analysis processing pressure is higher than the predetermined condition.
  • sending the memory management data to a target online device includes: obtaining processing performance information of each of one or more online devices; The processing performance information of the device determines the target online device that meets the analysis and processing conditions from the one or more online devices.
  • the processing performance information includes at least one of an available memory value and a processor occupancy value; the target online device has an available memory value higher than a second predetermined memory value or a processor occupancy value less than The second predetermined occupancy value of the online device.
  • the processor 120 may perform the following steps: receive memory management and control data sent by the target device, where the memory management and control data is obtained when the target device determines that online memory management and control conditions are met; and determine a memory management and control strategy based on the memory management and control data. ; Send the memory management and control policy to the target device, so that the target device performs memory management and control according to the memory management and control policy.
  • embodiments of the present application also provide a storage medium in which a computer program is stored, and the computer program can be loaded by the processor to execute steps in any method provided by the embodiments of the present application.
  • the storage medium may include: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

Sont divulgués un procédé et un appareil de gestion et de commande de mémoire, ainsi qu'un support de stockage et un dispositif électronique, qui se rapportent au domaine technique des ordinateurs. Le procédé consiste à : lorsqu'une condition de gestion et de commande de mémoire en ligne est satisfaite, acquérir des données de gestion et de commande de mémoire (S310) ; envoyer les données de gestion et de commande de mémoire à un dispositif en ligne cible de façon à ce que le dispositif en ligne cible détermine une politique de gestion et de commande de mémoire d'après les données de gestion et de commande de mémoire (S320) ; recevoir la politique de gestion et de commande de mémoire envoyée par le dispositif en ligne cible (S330) ; et effectuer une gestion et une commande de mémoire selon la politique de gestion et de commande de mémoire (S340). Le procédé permet d'améliorer la gestion de mémoire et l'efficacité de commande, ainsi que la gestion et la fiabilité de commande d'un dispositif.
PCT/CN2023/082277 2022-04-18 2023-03-17 Procédé et appareil de gestion et de commande de mémoire, support de stockage et dispositif électronique WO2023202295A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210406838.5 2022-04-18
CN202210406838.5A CN114816744A (zh) 2022-04-18 2022-04-18 内存管控方法、装置、存储介质及电子设备

Publications (1)

Publication Number Publication Date
WO2023202295A1 true WO2023202295A1 (fr) 2023-10-26

Family

ID=82537493

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/082277 WO2023202295A1 (fr) 2022-04-18 2023-03-17 Procédé et appareil de gestion et de commande de mémoire, support de stockage et dispositif électronique

Country Status (2)

Country Link
CN (1) CN114816744A (fr)
WO (1) WO2023202295A1 (fr)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816744A (zh) * 2022-04-18 2022-07-29 深圳Tcl新技术有限公司 内存管控方法、装置、存储介质及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107688497A (zh) * 2017-07-25 2018-02-13 努比亚技术有限公司 一种内存调控方法、设备及计算机可读存储介质
US20190034234A1 (en) * 2017-07-31 2019-01-31 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method For Resource Allocation And Terminal Device
CN109634740A (zh) * 2018-11-08 2019-04-16 华为技术有限公司 内存管理方法和装置
CN112416600A (zh) * 2020-12-08 2021-02-26 努比亚技术有限公司 一种内存管控的方法、装置、移动终端及存储介质
CN112769806A (zh) * 2020-12-31 2021-05-07 北京明朝万达科技股份有限公司 终端设备上的操作行为管控方法、装置及电子设备
CN114816744A (zh) * 2022-04-18 2022-07-29 深圳Tcl新技术有限公司 内存管控方法、装置、存储介质及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107688497A (zh) * 2017-07-25 2018-02-13 努比亚技术有限公司 一种内存调控方法、设备及计算机可读存储介质
US20190034234A1 (en) * 2017-07-31 2019-01-31 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method For Resource Allocation And Terminal Device
CN109634740A (zh) * 2018-11-08 2019-04-16 华为技术有限公司 内存管理方法和装置
CN112416600A (zh) * 2020-12-08 2021-02-26 努比亚技术有限公司 一种内存管控的方法、装置、移动终端及存储介质
CN112769806A (zh) * 2020-12-31 2021-05-07 北京明朝万达科技股份有限公司 终端设备上的操作行为管控方法、装置及电子设备
CN114816744A (zh) * 2022-04-18 2022-07-29 深圳Tcl新技术有限公司 内存管控方法、装置、存储介质及电子设备

Also Published As

Publication number Publication date
CN114816744A (zh) 2022-07-29

Similar Documents

Publication Publication Date Title
US10341792B1 (en) System for distributing audio output using multiple devices
US9086897B2 (en) Method and architecture for virtual desktop service
EP3750291B1 (fr) Édition collaborative de média dans un environnement informatique mixte
US10153959B2 (en) Network communication and cost awareness
WO2022100304A1 (fr) Procédé et appareil de transfert d'un contenu d'application à travers des dispositifs, et dispositif électronique
US20170163691A1 (en) Methods, circuits, apparatus, systems and associated software applications for providing security on one or more servers, including virtual servers
JP2018505573A (ja) マルチエンドポイント対処可能通知
WO2021073428A1 (fr) Procédé, dispositif et système de liaison de numéro de compte
Jang et al. Personal clouds: Sharing and integrating networked resources to enhance end user experiences
US9356804B1 (en) Policy-based network connection resource selection
US10579240B2 (en) Live-rendered and forkable graphic edit trails
WO2023202295A1 (fr) Procédé et appareil de gestion et de commande de mémoire, support de stockage et dispositif électronique
CN112749022B (zh) 相机资源访问方法、操作系统、终端和虚拟相机
US11789765B2 (en) Collaborative hosted virtual systems and methods
WO2020042769A1 (fr) Procédé et appareil de transmission d'informations d'image, et support de stockage et dispositif électronique
WO2022017007A1 (fr) Procédé de traitement de données audio, serveur et support de stockage
CN110427260B (zh) 主机作业调度方法、装置及系统
US20220150416A1 (en) Transferring preview streams of cameras
WO2021057503A1 (fr) Procédé et appareil de téléchargement de paquet de données
EP3896931B1 (fr) Système et procédé d'accès direct à la mémoire à distance par « spark shuffle »
US10579431B2 (en) Systems and methods for distributed management of computing resources
CA2802396A1 (fr) Systeme et methode de gestion d'emulations
CN107948232B (zh) 基于Hook API的代理实现方法、数据传输方法、装置及系统
CN114124498B (zh) 监控设备注册方法、装置、电子设备及存储介质
US11606249B1 (en) System and method for communication management in distributed system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23790956

Country of ref document: EP

Kind code of ref document: A1