WO2022154163A1 - 전자 장치 및 전자 장치의 메모리 관리 방법 - Google Patents

전자 장치 및 전자 장치의 메모리 관리 방법 Download PDF

Info

Publication number
WO2022154163A1
WO2022154163A1 PCT/KR2021/002226 KR2021002226W WO2022154163A1 WO 2022154163 A1 WO2022154163 A1 WO 2022154163A1 KR 2021002226 W KR2021002226 W KR 2021002226W WO 2022154163 A1 WO2022154163 A1 WO 2022154163A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage space
processor
electronic device
memory
objects
Prior art date
Application number
PCT/KR2021/002226
Other languages
English (en)
French (fr)
Inventor
정관희
허세경
김효종
안동규
Original Assignee
삼성전자주식회사
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 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to EP21919792.8A priority Critical patent/EP4191393A4/en
Priority to CN202180074380.1A priority patent/CN116438513A/zh
Publication of WO2022154163A1 publication Critical patent/WO2022154163A1/ko
Priority to US18/191,423 priority patent/US20230236744A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/443Optimisation
    • G06F8/4434Reducing the memory space required by the program code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0626Reducing size or complexity of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45516Runtime code conversion or optimisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device

Definitions

  • the following embodiments relate to an electronic device and a memory management method of the electronic device.
  • the overall performance of the terminal may be deteriorated depending on the state of the storage space, so it is necessary to preemptively secure a free storage space for the storage space according to the state of the storage space It should be possible to minimize the degradation of the terminal's performance along with securing
  • Compilation artifact files of a package loaded at runtime are generated in a mixed manner of Just-In-Time (JIT) and Ahead-Of-Time (AOT).
  • JIT Just-In-Time
  • AOT Ahead-Of-Time
  • the runtime performance of the compiled package and the size of the compilation artifact file may be different according to the type of the compilation filter, which is one of the properties of compilation.
  • the performance of the package may vary depending on the compilation artifact file, but even if the storage space of the terminal is insufficient, the overall performance of the terminal may be deteriorated.
  • An electronic device includes one or more processors and a memory storing instructions executable by the processor, wherein the processor includes information on a storage space of the memory and a plurality of pieces executed by the processor. monitoring the use histories of objects, determining a target object whose compilation method is to be changed from among the plurality of objects based on at least one or two of the information or the use history, and changing the compilation method of the target object. You can increase the free storage space.
  • An electronic device includes one or more processors and a memory for storing instructions executable by the processor, wherein the processor monitors information on a storage space of the memory, and is executed by the processor Generates an object list including at least a portion of the plurality of objects based on the use history of the plurality of objects, and changes the compilation method of at least one object included in the object list based on the information. You can increase the free storage space.
  • the method includes: monitoring information on a storage space of the memory and usage histories of a plurality of objects executed by the electronic device; determining a target object whose compilation method is to be changed from among the plurality of objects based on the information and the usage history; and increasing the free storage space of the memory by changing the compilation method of the target object.
  • the electronic device determines the importance of the object according to the state of the storage space of the memory, and changes the compile method of the object step by step, thereby maintaining the performance of the electronic device while maintaining the free storage space ( free storage space).
  • the electronic device may secure a spare storage space by reducing the size of a compile artifact file that cannot be arbitrarily reduced by a user in a situation where the storage space is insufficient.
  • the electronic device may improve the user experience by preemptively securing a spare storage space before the user experiences sluggish by changing the compilation method in stages according to the state of the storage space.
  • FIG. 1 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure
  • FIG. 2 is a diagram for describing a memory management operation of an electronic device according to various embodiments of the present disclosure
  • FIG 3 illustrates an example of an operation of monitoring a storage space of a memory according to various embodiments of the present disclosure.
  • FIG. 4 illustrates another example of an operation of monitoring a storage space of a memory according to various embodiments of the present disclosure.
  • FIG. 5 is a flowchart of a memory management operation of an electronic device according to various embodiments of the present disclosure
  • FIG 6 illustrates an electronic device performance improvement operation of an electronic device according to various embodiments of the present disclosure.
  • FIG. 7 is a flowchart of an operation of an electronic device according to various embodiments of the present disclosure.
  • FIG. 1 is a block diagram of an electronic device 101 in a network environment 100, according to various embodiments.
  • an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with at least one of the electronic device 104 and the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • a first network 198 eg, a short-range wireless communication network
  • a second network 199 e.g., a second network 199
  • the electronic device 101 may communicate with the electronic device 104 through the server 108 .
  • the electronic device 101 includes a processor 120 , a memory 130 , an input module 150 , a sound output module 155 , a display module 160 , an audio module 170 , and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or an antenna module 197 .
  • at least one of these components eg, the connection terminal 178
  • some of these components are integrated into one component (eg, display module 160 ). can be
  • the processor 120 for example, executes software (eg, a program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120. It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or operation, the processor 120 converts commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) to the volatile memory 132 . may be stored in , process commands or data stored in the volatile memory 132 , and store the result data in the non-volatile memory 134 .
  • software eg, a program 140
  • the processor 120 converts commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) to the volatile memory 132 .
  • the volatile memory 132 may be stored in , process commands or data stored in the volatile memory 132 , and store the result data in the non-volatile memory 134 .
  • the processor 120 is the main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit (eg, a graphic processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor).
  • the main processor 121 eg, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphic processing unit, a neural network processing unit (eg, a graphic processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor.
  • the main processor 121 e.g, a central processing unit or an application processor
  • a secondary processor 123 eg, a graphic processing unit, a neural network processing unit (eg, a graphic processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a
  • the secondary processor 123 may, for example, act on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or when the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states.
  • the coprocessor 123 eg, an image signal processor or a communication processor
  • may be implemented as part of another functionally related component eg, the camera module 180 or the communication module 190 ). have.
  • the auxiliary processor 123 may include a hardware structure specialized for processing an artificial intelligence model.
  • Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself on which the artificial intelligence model is performed, or may be performed through a separate server (eg, the server 108).
  • the learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited
  • the artificial intelligence model may include a plurality of artificial neural network layers.
  • Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example.
  • the artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.
  • the memory 130 may store various data used by at least one component (eg, the processor 120 or the sensor module 176 ) of the electronic device 101 .
  • the data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto.
  • the memory 130 may include a volatile memory 132 or a non-volatile memory 134 .
  • the program 140 may be stored as software in the memory 130 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .
  • the input module 150 may receive a command or data to be used by a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 .
  • the input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).
  • the sound output module 155 may output a sound signal to the outside of the electronic device 101 .
  • the sound output module 155 may include, for example, a speaker or a receiver.
  • the speaker can be used for general purposes such as multimedia playback or recording playback.
  • the receiver can be used to receive incoming calls. According to one embodiment, the receiver may be implemented separately from or as part of the speaker.
  • the display module 160 may visually provide information to the outside (eg, a user) of the electronic device 101 .
  • the display module 160 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device.
  • the display module 160 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.
  • the audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input module 150 , or an external electronic device (eg, a sound output module 155 ) connected directly or wirelessly with the electronic device 101 .
  • the electronic device 102) eg, a speaker or headphones
  • the electronic device 102 may output a sound.
  • the sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, a user state), and generates an electrical signal or data value corresponding to the sensed state. can do.
  • the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.
  • the interface 177 may support one or more specified protocols that may be used by the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ).
  • the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.
  • the connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102 ).
  • the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).
  • the haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense.
  • the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.
  • the camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.
  • the power management module 188 may manage power supplied to the electronic device 101 .
  • the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).
  • PMIC power management integrated circuit
  • the battery 189 may supply power to at least one component of the electronic device 101 .
  • battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.
  • the communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication performance through the established communication channel.
  • the communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication.
  • the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : It may include a local area network (LAN) communication module, or a power line communication module).
  • a wireless communication module 192 eg, a cellular communication module, a short-range communication module, or a global navigation satellite system (GNSS) communication module
  • GNSS global navigation satellite system
  • wired communication module 194 eg, : It may include a local area network (LAN) communication module, or a power line communication module.
  • a corresponding communication module among these communication modules is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN).
  • a first network 198 eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)
  • a second network 199 eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN).
  • a telecommunication network
  • the wireless communication module 192 uses subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 .
  • subscriber information eg, International Mobile Subscriber Identifier (IMSI)
  • IMSI International Mobile Subscriber Identifier
  • the electronic device 101 may be identified or authenticated.
  • the wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR).
  • NR access technology includes high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency) -latency communications)).
  • eMBB enhanced mobile broadband
  • mMTC massive machine type communications
  • URLLC ultra-reliable and low-latency
  • the wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example.
  • a high frequency band eg, mmWave band
  • the wireless communication module 192 uses various techniques for securing performance in a high-frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. It may support technologies such as full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna.
  • the wireless communication module 192 may support various requirements defined in the electronic device 101 , an external electronic device (eg, the electronic device 104 ), or a network system (eg, the second network 199 ).
  • the wireless communication module 192 may include a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: Downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less) can be supported.
  • a peak data rate eg, 20 Gbps or more
  • loss coverage eg, 164 dB or less
  • U-plane latency for realizing URLLC
  • the antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device).
  • the antenna module 197 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern.
  • the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna.
  • other components eg, a radio frequency integrated circuit (RFIC)
  • RFIC radio frequency integrated circuit
  • the antenna module 197 may form a mmWave antenna module.
  • the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.
  • peripheral devices eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)
  • GPIO general purpose input and output
  • SPI serial peripheral interface
  • MIPI mobile industry processor interface
  • the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 .
  • Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 .
  • all or a part of operations executed in the electronic device 101 may be executed in one or more external electronic devices 102 , 104 , or 108 .
  • the electronic device 101 may perform the function or service itself instead of executing the function or service itself.
  • one or more external electronic devices may be requested to perform at least a part of the function or the service.
  • One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101 .
  • the electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request.
  • cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used.
  • the electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing.
  • the external electronic device 104 may include an Internet of things (IoT) device.
  • the server 108 may be an intelligent server using machine learning and/or neural networks.
  • the external electronic device 104 or the server 108 may be included in the second network 199 .
  • the electronic device 101 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.
  • FIG. 2 is a diagram for describing a memory management operation of an electronic device according to various embodiments of the present disclosure
  • an electronic device (eg, the electronic device 101 of FIG. 1 ) includes one or more processors 120 and a memory 130 that stores instructions executable by the processor 120 . may include.
  • the processor 120 may secure a spare storage space of the memory 130 in order to normalize the overall performance of the electronic device 101 .
  • the processor 120 may increase the free storage space by changing the compilation method and recompiling the file that is not visible to the user. For example, the processor 120 may reduce the size of the compilation artifact file and increase the free storage space by changing the object compilation method. Through this, the processor 120 can efficiently secure a spare storage space of the memory 130 while minimizing performance degradation of the electronic device 101 .
  • the processor 120 may receive information about the storage space from the memory 130 , and may determine a target object for which a compilation method is to be changed from among a plurality of objects executed by the processor 120 .
  • the object may include a service, package, or program (eg, the program 140 of FIG. 1 ) executed by the processor 120 .
  • the object may include an application (eg, the application 146 of FIG. 1 ) and a package of the application.
  • An application's package may include an executable file.
  • the processor 120 may generate a recompiled file by changing the compilation method of the target object and then performing the recompilation.
  • the processor 120 may increase the free storage space by transferring the recompiled file to the memory 130 .
  • the processor 120 may increase the free storage space by transferring the recompiled file to the memory 130 and updating the previously compiled file.
  • the processor 120 may monitor information on the storage space of the memory 130 and use histories of a plurality of objects executed by the processor 120 .
  • the information on the storage space may include a ratio of a free storage space to the total storage space of the memory 130 and a size of the free storage space of the memory 130 .
  • the usage history of the plurality of objects may include a period in which the plurality of objects are not used.
  • the processor 120 may determine a target object for which a compilation method is to be changed from among a plurality of objects based on at least one or two of information about a storage space or a use history of a plurality of objects.
  • the processor 120 may determine an object not used for a first period among a plurality of objects as the first target object based on the free storage space of the memory 130 .
  • the processor 120 may determine an object that is not used for a second period shorter than the first period as the second target object.
  • the first period may be 30 days
  • the second period may be 15 days.
  • the processor 120 may determine an object having no icon on the display among a plurality of objects as the target object based on the free storage space of the memory 130 .
  • the processor 120 may determine all of the plurality of objects as target objects based on the free storage space of the memory 130 .
  • the processor 120 may determine all of the plurality of objects as target objects. have.
  • the processor 120 may increase the free storage space by changing the compilation method of all the plurality of objects. For example, the rate threshold may be 2%.
  • the processor 120 may generate an object list including at least a portion of the plurality of objects based on the use histories of the plurality of objects executed by the processor 120 .
  • the processor 120 may increase the free storage space of the memory 130 by changing the compilation method of the target object.
  • a size threshold eg, the first threshold of FIG. 5
  • the processor 120 increases the free storage space by changing the compilation method of objects whose compilation method has not been changed. can do it
  • the size threshold may be a value predetermined in the electronic device 101 .
  • the size threshold may be 500 MB.
  • the processor 120 may increase the free space of the memory 130 by changing a compilation method of at least one object included in the object list based on information on the storage space of the memory 130 . have.
  • the processor 120 may generate the first object list to include objects that are not used for the first period from among the plurality of objects.
  • the processor 120 may generate the second object list to include objects that are not used for a second period shorter than the first period among the plurality of objects.
  • the processor 120 may generate the third object list to include an object having no icon on the display among the plurality of objects.
  • the processor 120 may downgrade the compilation filter of the target object.
  • the processor 120 may increase the free storage space by re-compiling the target object based on the down-tuned compilation filter.
  • the processor 120 may minimize performance degradation by specifying an application processor (AP) core that performs recompilation in the background in consideration of the state of the electronic device 101 .
  • AP application processor
  • the processor 120 may determine the object list for which the compilation method is to be changed based on the ratio of the free storage space to the total storage space of the memory 130 .
  • the processor 120 may increase the free storage space by changing a compilation method of an object included in the determined object list.
  • the processor 120 determines whether the electronic device 101 is in use and, when the electronic device 101 is not in use, changes the compilation method of the target object to free the memory 130 . Storage space can be increased. The operation of changing the compilation method of the target object may be performed in the background.
  • 3 and 4 illustrate examples of an operation of monitoring a storage space of a memory according to various embodiments.
  • the processor may monitor information about the storage space of the memory (eg, the memory 130 of FIG. 1 ). have.
  • the processor 120 may monitor the insufficient storage space state 310 of the memory 130 .
  • the processor 120 may monitor information on the storage space of the memory 130 through the storage service 330 .
  • the storage service 330 may detect a storage space insufficient state through monitoring of the memory 130 .
  • the storage service 330 may transmit a message (eg, an intent) to the runtime 350 .
  • Runtime 350 may refer to an operation while a computer program is being executed in computer science.
  • the runtime 350 may include a runtime library indicating a program or a library of basic code used by a specific compiler or virtual machine to manage a program written in a computer language.
  • the runtime 350 may include an Android runtime (ART), a Java virtual machine (JVM), or a Dalvik virtual machine (Dalvik VM).
  • the runtime 350 may perform compilation using various methods.
  • the runtime 350 may perform compilation using just-in-time (JIT), ahead-of-time (AOT), or a hybrid method of JIT and AOT.
  • JIT just-in-time
  • AOT ahead-of-time
  • ART can generate compilation artifact files of objects loaded at runtime by performing compilation through the dex2oat tool, which is a mixture of JIT and AOT methods.
  • the JIT method may refer to a method of performing compilation at an appropriate time.
  • the JIT method when repetitive execution is detected while operating as an interpreter for a loaded class, the JIT compiler is operated to improve execution speed.
  • the execution time of the native code is very fast, and since the memory is cached, the performance can be maximized during repeated calls. Since the JIT method is compiled into native code during runtime, the installation time may be short.
  • the AOT method may refer to a method of converting and storing a source code into a native code at the time of installing the object, and reading the native code when the object is executed. Since the AOT method converts the code at the time of installation, the speed can be improved by reducing the first execution time of the object compared to the method of converting the code at the time of the first execution of the object.
  • the processor 120 may compile using a hybrid method of JIT and AOT.
  • the processor 120 may reduce installation time and storage capacity by using the JIT method, and may store a profile according to a user pattern through an interpreter.
  • the processor 120 starts the AOT background service daemon by the job scheduler when a specific condition is met, and generates compiled code (eg, oat file) through compilation in the background.
  • the processor 120 may directly use the compiled code in the compiled ART runtime when the object is driven without going through an interpreter.
  • the processor 120 may monitor the storage space insufficient state 410 .
  • the processor 120 may monitor the storage space of the memory 130 through the storage space monitoring service 430 .
  • the storage space monitoring service 430 may monitor the storage space insufficient state 410 .
  • the storage space monitoring service 430 may transmit a message (eg, an intent) to the runtime 450 .
  • FIG. 5 is a flowchart of a memory management operation of an electronic device according to various embodiments of the present disclosure.
  • Each operation 510 to 560 described in FIG. 5 may be sequentially performed, but is not necessarily performed sequentially.
  • the order of each operation 510 to 560 may be changed, or at least two operations may be performed in parallel.
  • the processor eg, the processor 120 of FIG. 1
  • the processor 120 may be configured by the processor 120 and information on the storage space of the memory (eg, the memory 130 of FIG. 1 ). It is possible to monitor the usage history of a plurality of executed objects.
  • the processor 120 may monitor the object through the runtime 510 and the object manager 520 .
  • the runtime 510 may request an object list from the object manager 520 .
  • the object manager 520 may generate a list of objects requiring optimization by monitoring a plurality of objects, and transmit the created object list to the runtime 510 .
  • the object manager 520 generates a first object list to include objects not used for a first period among a plurality of objects, and for a second period shorter than the first period among the plurality of objects.
  • a second object list may be created to include unused objects.
  • the first period may be 30 days
  • the second period may be 15 days.
  • the object manager 520 may generate a third object list to include an object for which an icon does not exist on the display among a plurality of objects.
  • the processor 120 may monitor information on the storage space of the memory 130 .
  • the processor 120 may detect a storage space insufficient state through monitoring.
  • the processor 120 may stop background compilation ( 530 ).
  • the processor 120 may stop background dex optimization (dexopt).
  • the processor 120 may stop the background dexopt until the level of the free storage space of the memory 130 is secured to a predetermined level.
  • the background dexopt is the process of compiling the dex file existing in the apk in the background using the dex2oat tool based on the profile generated while the electronic device (eg, the electronic device 101 of FIG. 1 ) is used.
  • the processor 120 may regenerate the compilation artifact file by performing compilation through the background dexopt.
  • the compilation artifact file may include a .vdex, .odex, .oat, or .art file.
  • the .vdex file may contain the apk's uncompressed code and additional metadata.
  • .odex and/or .oat files may contain AOT compiled code for methods defined in the apk.
  • the .art file may contain some strings and ART internal representations of classes listed in the .dex of the apk.
  • the processor 120 may regenerate the .oat file or the .art file through the background dexopt.
  • the performance of an object may be different according to a compiled method or class.
  • Background dexopt can be executed by the job scheduler.
  • the processor 120 may determine whether the free storage space is equal to or greater than a first threshold ( 540 ). For example, the processor 120 may determine whether the free storage space is 500 MB or more.
  • the processor 120 may change the compilation method of the object of the object list ( 550 ).
  • the processor 120 may change a compilation method of an object included in the object list in the background while the electronic device 101 is not in use.
  • the processor 120 may change the object compilation method in stages based on the created object list.
  • the processor 120 may downgrade a compile filter of the target object whose compilation method is to be changed, and may increase the free storage space by recompiling the target object based on the downgraded compile filter. For example, the processor 120 may increase the free storage space of 100 to 200 MB for one object through downward adjustment of the compilation filter and recompilation.
  • the processor 120 may compile the dex file using the dex2oat tool at runtime (eg, ART).
  • the processor 120 may change the compilation method by changing the compilation filter (or the compilation filter option).
  • the types of compilation filters may be shown in Table 1.
  • the compile filter of Table 1 may mean an upwardly adjusted compile filter as described below, and may mean a downwardly adjusted compile filter as described above. That is, to downgrade the compile filter may mean to change the type of the compile filter to a compile filter located relatively higher in Table 1.
  • the runtime performance of an object compiled through the dex2oat tool may vary depending on the type of compilation filter, and the size of a generated compilation artifact file (eg, .odex file or .art file) may vary.
  • the size of the compilation artifact file may be different depending on the type of object, and may range from 0 MB to several hundreds of MB.
  • the processor 120 may prevent performance degradation of the electronic device 101 caused by insufficient free storage space of the memory 130 by changing the type of the compilation filter.
  • the processor 120 generates an object list based on the importance of the object, and changes the type of the compilation filter step by step according to the size of the free storage space of the memory 130 to secure the free storage space. performance degradation can be minimized.
  • the processor 120 may change the compilation method by lowering the compilation filter.
  • the processor 120 may regenerate the compile artifact file by lowering the compile filter and performing recompilation. Since the regenerated compilation artifact file has a smaller capacity than that of the compilation artifact file before recompilation, the free storage space of the memory 130 may be increased.
  • the processor 120 may change the compilation method of objects included in different object lists according to the ratio of the free storage space to the total storage space of the memory 130 .
  • a change in the compilation method of an object included in the object list may be performed in the background while the electronic device 101 is not in use.
  • the processor 120 may change the compilation method of the object included in the first object list. For example, when the ratio of the free storage space to the total storage space is less than 5%, the processor 120 may change the compilation method of the unused object within 30 days ( 551 ).
  • the processor 120 may change the compilation method of the object included in the third object list. For example, when the ratio of the free storage space to the total storage space is less than 4%, the processor 120 may change the compilation method of the object without the icon ( 553 ).
  • the processor 120 may change the compilation method of the object included in the second object list. For example, when the ratio of the free storage space to the total storage space is less than 3%, the processor 120 may change the compilation method of the unused object within 15 days ( 555 ).
  • the processor 120 compiles all objects can be changed. All objects may include objects not included in the first to third object lists. For example, when the ratio of the free storage space to the total storage space is less than 2%, the processor 120 may change the compilation method of all objects (or objects not included in the first to third object lists). There is (557).
  • the processor 120 may change the compilation method of the object whose compilation method is not changed in the background ( 560 ).
  • the processor 120 may increase the free storage space by changing the compilation method of objects whose compilation method has not been changed.
  • the processor 120 may perform an operation of changing the compilation method of an object whose compilation method has not been changed in the foreground.
  • the processor 120 changes the compilation method of the objects of the object list step by step according to the state of the free storage space of the memory 130 , so that the user of the electronic device 101 does not perform a separate operation.
  • a free space of the memory 130 may be secured.
  • the processor 120 may improve the user experience by preventing performance degradation of objects frequently used by the user by delaying the timing of downgrading the compilation method for objects that are frequently used.
  • FIG 6 illustrates an electronic device performance improvement operation of an electronic device according to various embodiments of the present disclosure.
  • the free storage space of the memory 610 reaches a predetermined value or more.
  • the compilation method of the object whose compilation method has been changed can be restored.
  • the processor 120 may restore the compilation method when the ratio of the free storage space to the total storage space of the memory 610 reaches a predetermined value or more.
  • the runtime 630 may receive information about the free storage space from the memory 610 .
  • the runtime 630 may determine whether a ratio of the free storage space to the total storage space of the memory 610 is equal to or greater than a predetermined value.
  • the predetermined value may be 10%.
  • the processor 120 may change or restore an object compilation method. For example, when the ratio of the free storage space to the total storage space of the memory 610 is 10% or more, the processor 120 may change (or restore) the compilation method of all objects through the runtime 630 . (650). Restoration of the compilation method may be performed in the background while the electronic device (eg, the electronic device 101 of FIG. 1 ) is not in use.
  • the processor 120 may recompile by adjusting the downwardly adjusted compilation filter upward.
  • Table 2 may indicate the size of the compilation artifact file according to the type of the compilation filter.
  • the processor 120 may improve the performance of the object by restoring the type of the compilation filter from verify to the speed profile and recompiling it.
  • Table 3 can indicate the entry time and the size of the available storage space for the object when compiled with speed profile
  • Table 4 shows the entry time and available storage space for the object when compiled with verify. size can be indicated.
  • the processor 120 adjusts the compile filter downward to prevent sluggishness of the electronic device 101, and when the free storage space is sufficient, the processor 120 adjusts the compile filter downward. By restoring the performance of the object, it is possible to stably secure the performance of the electronic device 101 and the object.
  • FIG. 7 is a flowchart of an operation of an electronic device according to various embodiments of the present disclosure.
  • Each operation 710 to 750 described in FIG. 7 may be sequentially performed, but is not necessarily performed sequentially.
  • the order of each operation 710 to 750 may be changed, and at least two operations may be performed in parallel.
  • a processor may include information about a storage space of a memory (eg, the memory 130 of FIG. 1 ) and information about a storage space executed by the electronic device.
  • the use history of the plurality of objects may be monitored ( 710 ).
  • the information on the storage space may include a ratio of the free storage space to the total storage space of the memory 130 and the size of the free storage space of the memory 130 .
  • the usage history of the plurality of objects may include a period in which the plurality of objects are not used.
  • the processor 120 may determine a target object whose compilation method is to be changed from among the plurality of objects based on the storage space information and the use history of the plurality of objects ( 730 ).
  • the processor 120 determines, as a first target object, an object not used for a first period among a plurality of objects based on the free storage space of the memory 130 , and is not used for a second period shorter than the first period.
  • the object may be determined as the second target object.
  • the processor 120 may determine an object having no icon on the display among the plurality of objects as the target object based on the free storage space of the memory 130 .
  • the processor 120 may determine all of the plurality of objects as target objects based on the free storage space of the memory 130 . When the ratio of the free storage space to the storage space of the memory 130 is less than the second threshold value, the processor 120 may determine all of the plurality of objects as the target object.
  • the processor 120 may generate an object list including at least a portion of the plurality of objects based on the use histories of the plurality of objects executed by the processor 120 .
  • the processor 120 generates a first object list to include objects unused for a first period from among the plurality of objects, and to include objects unused for a second period shorter than the first period from among the plurality of objects.
  • a second object list may be created.
  • the processor 120 may generate the third object list to include an object having no icon on the display from among the plurality of objects.
  • the processor 120 may increase the free space of the memory 130 by changing the compilation method of the target object ( 750 ).
  • the processor 120 may downgrade a compile-filter of the target object and increase the free storage space by re-compiling the target object based on the downgraded compile filter. .
  • the processor 120 determines an object list for which a compilation method is to be changed based on a ratio of the free storage space to the total storage space of the memory 130 , and determines a compilation method of objects included in the determined object list. You can increase the free storage space by making changes.
  • the processor 120 may determine whether the electronic device is in use and, if the electronic device is not in use, increase the free storage space by changing the compilation method of the target object.
  • the operation of changing the compilation method of the target object may be performed in the background.
  • the processor 120 may increase the free storage space by changing the compilation method of objects whose compilation method has not been changed.
  • the electronic device (eg, the electronic device 101 of FIG. 1 ) includes one or more processors (eg, the processor 120 of FIG. 1 ) and a memory (eg, the processor 120 ) for storing instructions executable by the processor. 1), wherein the processor monitors the information on the storage space of the memory and the usage history of a plurality of objects executed by the processor, and monitors at least one of the information or the usage history.
  • the free storage space of the memory may be increased by determining a target object whose compilation method is to be changed from among the plurality of objects based on one or two and changing the compilation method of the target object.
  • the information includes a ratio of a free storage space to a total storage space of the memory and a size of the free storage space of the memory, and the use history includes a period in which the plurality of objects are not used.
  • the processor may increase the free storage space by changing the compilation method of objects whose compilation method has not been changed.
  • the processor determines, as a first target object, an object not used for a first period from among the plurality of objects based on the free storage space of the memory, and a second target object that is shorter than the first period An object not used for a period may be determined as the second target object.
  • the processor may determine, as the target object, an object having no icon on the display among the plurality of objects based on the free storage space of the memory.
  • the processor may determine all of the plurality of objects as the target object based on the free storage space of the memory.
  • the processor may determine all of the plurality of objects as the target object.
  • the processor downgrades a compile-filter of the target object, and re-compiles the target object based on the downgraded compile filter. You can increase the free storage space.
  • the processor determines whether the electronic device is in use, and when the electronic device is not in use, the processor may increase the free storage space by changing a compilation method of the target object.
  • the operation of changing the compilation method of the target object may be performed in a background.
  • the electronic device eg, the electronic device 101 of FIG. 1
  • the electronic device includes one or more processors (eg, the processor 120 of FIG. 1 ) and a memory ( Example: including the memory 130 of FIG. 1 ), wherein the processor monitors information on a storage space of the memory, and based on usage histories of the plurality of objects executed by the processor,
  • the free storage space of the memory may be increased by generating an object list including at least a portion and changing a compilation method of at least one object included in the object list based on the information.
  • the information includes a ratio of the free storage space to the total storage space of the memory and the size of the free storage space of the memory, and the use history includes a period in which the plurality of objects are not used.
  • the processor may increase the free storage space by changing the compilation method of objects whose compilation method has not been changed.
  • the processor generates a first object list to include an object unused for a first period from among the plurality of objects, and a second period of time shorter than the first period from among the plurality of objects
  • a second object list may be created to include objects that have not been used for a while.
  • the processor may generate a third object list to include an object having no icon on the display among the plurality of objects.
  • the processor determines an object list for which the compilation method is to be changed based on a ratio of the free storage space to the total storage space of the memory, and changes the compilation method of an object included in the determined object list By doing so, the free storage space can be increased.
  • the processor may increase the free storage space by changing a compilation method of all of the plurality of objects.
  • the processor may decrease the compile filter of the at least one object and increase the free storage space by recompiling the at least one object based on the down-tuned compile filter.
  • the processor determines whether the electronic device is in use, and when the electronic device is not in use, the processor may increase the free storage space by changing a compilation method of the at least one object. have.
  • the memory management method includes: a storage space of the memory monitoring information on and usage histories of a plurality of objects executed by the electronic device, and determining a target object whose compilation method is to be changed from among the plurality of objects based on the information and the usage histories;
  • the method may include increasing the free storage space of the memory by changing the compilation method of the target object.
  • the electronic device may have various types of devices.
  • the electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device.
  • a portable communication device eg, a smart phone
  • a computer device e.g., a smart phone
  • a portable multimedia device e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a camera e.g., a portable medical device
  • a wearable device e.g., a smart bracelet
  • a home appliance device e.g., a home appliance
  • first, second, or first or second may simply be used to distinguish an element from other elements in question, and may refer elements to other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is “coupled” or “connected” to another (eg, second) component, with or without the terms “functionally” or “communicatively”. When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.
  • module used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logic block, component, or circuit.
  • a module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions.
  • the module may be implemented in the form of an application-specific integrated circuit (ASIC).
  • ASIC application-specific integrated circuit
  • a storage medium eg, internal memory (#36) or external memory (#38)
  • a machine eg, electronic device (#01)
  • a machine eg, electronic device (#01)
  • It may be implemented as software (eg, program #40) including one or more instructions.
  • a processor eg, processor #20
  • a device eg, electronic device #01
  • the one or more instructions may include code generated by a compiler or code executable by an interpreter.
  • the device-readable storage medium may be provided in the form of a non-transitory storage medium.
  • 'non-transitory' only means that the storage medium is a tangible device and does not contain a signal (eg, electromagnetic wave), and this term refers to the case where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.
  • a signal eg, electromagnetic wave
  • the method according to various embodiments disclosed in this document may be provided as included in a computer program product.
  • Computer program products may be traded between sellers and buyers as commodities.
  • the computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or via an application store (eg Play Store TM ) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly or online between smartphones (eg: smartphones).
  • a part of the computer program product may be temporarily stored or temporarily created in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.
  • each component (eg, module or program) of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. have.
  • one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added.
  • a plurality of components eg, a module or a program
  • the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. .
  • operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. or one or more other operations may be added.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

다양한 실시예에 따르면, 전자 장치는, 하나 이상의 프로세서와, 상기 프로세서에 의해 실행 가능한 인스트럭션을 저장하는 메모리를 포함하고, 상기 프로세서는, 상기 메모리의 저장 공간에 대한 정보 및 상기 프로세서에 의해 실행되는 복수의 객체들의 사용 이력을 모니터링하고, 상기 정보 또는 상기 사용 이력 중에서 적어도 하나 또는 둘에 기초하여 상기 복수의 객체들 중에서 컴파일 방식을 변경할 타겟 객체를 결정하고, 상기 타겟 객체의 컴파일 방식을 변경함으로써 상기 메모리의 여유 저장 공간을 증가시킬 수 있다. 다른 실시예가 가능하다.

Description

전자 장치 및 전자 장치의 메모리 관리 방법
아래 실시예들은 전자 장치 및 전자 장치의 메모리 관리 방법에 관한 것이다.
단말의 저장 공간(storage)이 부족한 상태에서는 저장 공간의 상태에 따라 단말의 전반적인 성능이 떨어질 수 있으므로 저장 공간의 상태에 따라 선제적으로 저장 공간에 대한 여유 저장 공간의 확보가 필요하고, 여유 저장 공간의 확보와 함께 단말의 성능 저하를 최소화할 수 있어야 한다.
단말의 저장 상태를 모니터링하면서 실행되는 객체에 따라 객체의 컴파일 방식을 변경하여 저장 공간을 확보하고, 성능 저하를 최소화할 수 있는 방법이 요구된다.
런타임(runtime)시 로드되는 패키지의 컴파일 아티팩트 파일들은 JIT(Just-In-Time)과 AOT(Ahead-Of-Time)가 혼합된 방식으로 생성된다. 이 때, 컴파일의 속성 중 하나인 컴파일 필터의 종류에 따라 컴파일되는 패키지의 런타임 성능 및 컴파일 아티팩트 파일의 크기가 상이할 수 있다.
컴파일 아티팩트 파일에 따라 패키지의 성능이 달라질 수 있으나, 단말의 저장 공간이 부족한 경우에도 단말의 전반적인 성능이 저하될 수 있다.
단말의 저장 공간의 상태에 따라 선제적으로 여유 저장 공간을 확보할 필요가 있다.
다양한 실시예에 따른 전자 장치는, 하나 이상의 프로세서와, 상기 프로세서에 의해 실행 가능한 인스트럭션을 저장하는 메모리를 포함하고, 상기 프로세서는, 상기 메모리의 저장 공간에 대한 정보 및 상기 프로세서에 의해 실행되는 복수의 객체들의 사용 이력을 모니터링하고, 상기 정보 또는 상기 사용 이력 중에서 적어도 하나 또는 둘에 기초하여 상기 복수의 객체들 중에서 컴파일 방식을 변경할 타겟 객체를 결정하고, 상기 타겟 객체의 컴파일 방식을 변경함으로써 상기 메모리의 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따른 전자 장치는, 하나 이상의 프로세서와, 상기 프로세서에 의해 실행 가능한 인스트럭션을 저장하는 메모리를 포함하고, 상기 프로세서는, 상기 메모리의 저장 공간에 대한 정보를 모니터링하고, 상기 프로세서에 의해 실행되는 복수의 객체들의 사용 이력에 기초하여 상기 복수의 객체들의 적어도 일부를 포함하는 객체 리스트를 생성하고, 상기 정보에 기초하여 상기 객체 리스트에 포함된 적어도 하나의 객체의 컴파일 방식을 변경함으로써 상기 메모리의 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따른 전자 장치의 메모리를 관리하는 방법에 있어서, 메모리 관리 방법은, 상기 메모리의 저장 공간에 대한 정보 및 상기 전자 장치에 의해 실행되는 복수의 객체들의 사용 이력을 모니터링하는 동작과, 상기 정보 및 상기 사용 이력에 기초하여 상기 복수의 객체들 중에서 컴파일 방식을 변경할 타겟 객체를 결정하는 동작과, 상기 타겟 객체의 컴파일 방식을 변경함으로써 상기 메모리의 여유 저장 공간을 증가시키는 동작을 포함할 수 있다.
다양한 실시예에 따르면, 전자 장치는 메모리의 저장 공간의 상태에 따라 객체의 중요도를 판단하고, 단계별로 객체의 컴파일 방식(compile method)을 변경함으로써 전자 장치의 성능을 유지하면서 메모리의 여유 저장 공간(free storage space)을 확보할 수 있다.
다양한 실시예에 따르면, 전자 장치는 저장 공간이 부족한 상황에서 사용자가 임의로 축소할 수 없는 컴파일 아티팩트 파일(compile artifact file)의 크기를 줄임으로써 여유 저장 공간을 확보할 수 있다.
다양한 실시예에 따르면, 전자 장치는 저장 공간의 상태에 따라 단계적으로 컴파일 방식을 변경함으로써 사용자가 슬러기쉬(sluggish)를 체감하기 전에 선제적으로 여유 저장 공간을 확보함으로써 사용자 경험을 향상시킬 수 있다.
도 1은 다양한 실시예에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는 다양한 실시예에 따른 전자 장치의 메모리 관리 동작을 설명하기 위한 도면이다.
도 3은 다양한 실시예에 따른 메모리의 저장 공간을 모니터링하는 동작의 일 예를 나타낸다.
도 4는 다양한 실시예에 따른 메모리의 저장 공간을 모니터링하는 동작의 다른 예를 나타낸다.
도 5는 다양한 실시예에 따른 전자 장치의 메모리 관리 동작의 흐름도이다.
도 6은 다양한 실시예에 따른 전자 장치의 전자 장치 성능 향상 동작을 나타낸다.
도 7은 다양한 실시예에 따른 전자 장치의 동작의 흐름도이다.
도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108) 중 적어도 하나와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.
프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.
보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능 모델이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다.
메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다.
프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다.
입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다.
음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.
디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다.
오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.
센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다.
인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.
연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.
햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.
카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.
전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.
배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.
통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다.
무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.
안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다.
다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.
상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.
일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다.
도 2는 다양한 실시예에 따른 전자 장치의 메모리 관리 동작을 설명하기 위한 도면이다.
도 2를 참조하면, 다양한 실시예에 따르면, 전자 장치(예: 도 1의 전자 장치(101))는 하나 이상의 프로세서(120) 및 프로세서(120)에 의해 실행 가능한 인스트럭션을 저장하는 메모리(130)를 포함할 수 있다.
다양한 실시예에 따르면, 메모리(130)의 저장 공간 부족한 상황이 되면 저장 매체(예: 메모리(130))의 스펙(spec)에 따라 I/O 처리가 늦어 슬러기쉬(sluggishi)가 발생할 수 있다. 이 때, 프로세서(120)는 전자 장치(101)의 전반적인 성능을 정상화시키기 위해서 메모리(130)의 여유 저장 공간을 확보할 수 있다. 프로세서(120)는 사용자에게 드러나지 않는 파일에 대하여 컴파일 방식을 변경하고 재컴파일을 수행함으로써 여유 저장 공간을 증가시킬 수 있다. 예를 들어, 프로세서(120)는 객체의 컴파일 방식을 변경함으로써 컴파일 아티팩트 파일의 크기를 감소시키고, 여유 저장 공간을 증가시킬 수 있다. 이를 통해, 프로세서(120)는 전자 장치(101)의 성능 열화를 최소화하면서 메모리(130)의 여유 저장 공간을 효율적으로 확보할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 메모리(130)로부터 저장 공간에 대한 정보를 수신하고, 프로세서(120)에 의해 실행되는 복수의 객체들 중에서 컴파일 방식을 변경할 타겟 객체를 결정할 수 있다. 객체는 프로세서(120)에 의해 실행되는 서비스, 패키지 또는 프로그램(예: 도 1의 프로그램(140))을 포함할 수 있다. 예를 들어, 객체는 어플리케이션(예: 도 1의 어플리케이션(146)) 및 어플리케이션의 패키지를 포함할 수 있다. 어플리케이션의 패키지는 실행 파일을 포함할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 타겟 객체의 컴파일 방식을 변경한 후, 재컴파일을 수행함으로써 재컴파일된 파일을 생성할 수 있다. 프로세서(120)는 재컴파일된 파일을 메모리(130)로 전달함으로써 여유 저장 공간을 증가시킬 수 있다. 프로세서(120)는 재컴파일된 파일을 메모리(130)로 전달하고, 기존 방식으로 컴파일된 파일을 업데이트함으로써 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 메모리(130)의 저장 공간에 대한 정보 및 프로세서(120)에 의해 실행되는 복수의 객체들의 사용 이력을 모니터링할 수 있다. 저장 공간에 대한 정보는 메모리(130)의 전체 저장 공간(storage space)에 대한 여유 저장 공간(free storage space)의 비율 및 메모리(130)의 여유 저장 공간의 크기를 포함할 수 있다. 복수의 객체들의 사용 이력은 복수의 객체들이 사용되지 않은 기간을 포함할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 저장 공간에 대한 정보 또는 복수의 객체들의 사용 이력 중에서 적어도 하나 또는 둘에 기초하여 복수의 객체들 중에서 컴파일 방식을 변경할 타겟 객체를 결정할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 메모리(130)의 여유 저장 공간에 기초하여 복수의 객체들 중에서 제1 기간 동안 사용되지 않은 객체를 제1 타겟 객체로 결정할 수 있다. 프로세서(120)는 제1 기간 보다 짧은 제2 기간 동안 사용되지 않은 객체를 제2 타겟 객체로 결정할 수 있다. 예를 들어, 제1 기간은 30일일 수 있고, 제2 기간은 15일일 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 메모리(130)의 여유 저장 공간에 기초하여 복수의 객체들 중에서 디스플레이 상에 아이콘(icon)이 존재하지 않는 객체를 타겟 객체로 결정할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 메모리(130)의 여유 저장 공간에 기초하여 복수의 객체들 전부를 타겟 객체로 결정할 수 있다. 프로세서(120)는 메모리(130)의 전체 저장 공간에 대한 여유 저장 공간의 비율이 비율 임계값(예: 도 5의 제2 임계값)보다 작은 경우, 복수의 객체들 전부를 타겟 객체로 결정할 수 있다. 프로세서(120)는 메모리(130)의 저장 공간에 대한 여유 저장 공간의 비율이 비율 임계값보다 작은 경우, 복수의 객체들 전부의 컴파일 방식을 변경함으로써 여유 저장 공간을 증가시킬 수 있다. 예를 들어, 비율 임계값은 2%일 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 프로세서(120)에 의해 실행되는 복수의 객체들의 사용 이력에 기초하여 복수의 객체들의 적어도 일부를 포함하는 객체 리스트를 생성할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 타겟 객체의 컴파일 방식을 변경함으로써 메모리(130)의 여유 저장 공간을 증가시킬 수 있다. 프로세서(120)는 메모리(130)의 여유 저장 공간이 크기 임계값(예: 도 5의 제1 임계값) 보다 작은 경우, 컴파일 방식이 변경되지 않은 객체들의 컴파일 방식을 변경함으로써 여유 저장 공간을 증가시킬 수 있다. 크기 임계값은 전자 장치(101)에서 미리 결정된 값일 수 있다. 예를 들어, 크기 임계값은 500 MB일 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 메모리(130)의 저장 공간에 대한 정보에 기초하여 객체 리스트에 포함된 적어도 하나의 객체의 컴파일 방식을 변경함으로써 메모리(130)의 여유 공간을 증가시킬 수 있다. 프로세서(120)는 복수의 객체들 중에서 제1 기간 동안 사용되지 않은 객체를 포함하도록 제1 객체 리스트를 생성할 수 있다. 프로세서(120)는 복수의 객체들 중에서 제1 기간 보다 짧은 제2 기간 동안 사용되지 않은 객체를 포함하도록 제2 객체 리스트를 생성할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 복수의 객체들 중에서 디스플레이 상에 아이콘이 존재하지 않는 객체를 포함하도록 제3 객체 리스트를 생성할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 타겟 객체의 컴파일 필터를 하향 조정(downgrade)할 수 있다. 프로세서(120)는 하향 조정된 컴파일 필터에 기초하여 타겟 객체를 재컴파일(re-compile)함으로써 여유 저장 공간을 증가시킬 수 있다. 프로세서(120)는 전자 장치(101)의 상태를 고려하여 백그라운드에서 재컴파일을 수행하는 AP(application processor) 코어를 특정함으로써 성능 열화를 최소화할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 메모리(130)의 전체 저장 공간에 대한 여유 저장 공간의 비율에 기초하여 컴파일 방식을 변경할 객체 리스트를 결정할 수 있다. 프로세서(120)는 결정된 객체 리스트에 포함된 객체의 컴파일 방식을 변경함으로써 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 전자 장치(101)가 사용 중인지 여부를 판단하고, 전자 장치(101)가 사용 중이지 않을 경우, 타겟 객체의 컴파일 방식을 변경함으로써 메모리(130)의 여유 저장 공간을 증가시킬 수 있다. 타겟 객체의 컴파일 방식을 변경하는 동작은 백그라운드(background)에서 수행될 수 있다.
도 3 및 도 4는 다양한 실시예에 따른 메모리의 저장 공간을 모니터링하는 동작의 예들을 나타낸다.
도 3 및 도 4를 참조하면, 다양한 실시예에 따르면, 프로세서(예: 도 1의 프로세서(120))는 메모리(예: 도 1의 메모리(130))의 저장 공간에 대한 정보를 모니터링할 수 있다. 프로세서(120)는 메모리(130)의 저장 공간 부족 상태(310)를 모니터링할 수 있다. 프로세서(120)는 스토리지 서비스(330)를 통해 메모리(130)의 저장 공간에 대한 정보를 모니터링할 수 있다.
다양한 실시예에 따르면, 스토리지 서비스(330)는 메모리(130)의 모니터링을 통해 저장 공간 부족 상태를 감지할 수 있다. 스토리지 서비스(330)는 런타임(350)에 메시지(예: 인텐트(intent))를 전송할 수 있다. 런타임(350)은 컴퓨터 과학에서 컴퓨터 프로그램이 실행되고 있는 동안의 동작을 의미할 수 있다. 런타임(350)은 컴퓨터 언어 안에 쓰인 프로그램을 관리하기 위해 특정한 컴파일러나 가상 머신이 사용하는 기본 코드의 라이브러리 또는 프로그램을 가리키는 런타임 라이브러리를 포함할 수 있다. 예를 들어, 런타임(350)은 안드로이드 런타임(android runtime(ART)), JVM(java virtual machine) 또는 Dalvik VM(Dalvik virtual machine)를 포함할 수 있다.
다양한 실시예에 따르면, 런타임(350)은 다양한 방식을 이용하여 컴파일을 수행할 수 있다. 런타임(350)은 JIT(just-in-time), AOT(ahead-of-time) 또는 JIT와 AOT의 하이브리드(hybrid) 방식을 이용하여 컴파일을 수행할 수 있다. 예를 들어, ART는 JIT 및 AOT 방식이 혼합된 dex2oat 도구를 통해 컴파일을 수행함으로써 런타임시 로드되는 객체의 컴파일 아티팩트 파일을 생성할 수 있다.
다양한 실시예에 따르면, JIT 방식은 적절한 시점에 컴파일을 수행하는 방식을 의미할 수 있다. JIT 방식은 로드된 클래스에 대해 인터프리터(interpreter) 방식으로 동작을 하면서 반복 수행을 감지할 경우, JIT 컴파일러가 동작되어 실행 속도를 향상시킬 수 있다. JIT 방식은 네이티브 코드(native code)를 실행하는 시간이 매우 빠르고, 메모리의 캐시가 이루어지기 때문에 반복 호출시에 성능이 극대화될 수 있다. JIT 방식은 런타임 중에 네이티브 코드로 컴파일되기 때문에 설치 시간이 짧을 수 있다.
다양한 실시예에 따르면, AOT 방식은 객체를 설치하는 시점에 소스 코드를 네이티브 코드로 변환하여 저장하고, 객체를 실행 때, 네이티브 코드를 읽어 들이는 방식을 의미할 수 있다. AOT 방식은 설치 시에 코드를 변환하였기 때문에 객체의 첫 실행시점에 코드를 변환하는 방식보다 객체가 처음 실행되는 시간을 감소시킴으로써 속도를 개선시킬 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 JIT와 AOT의 하이브리드 방식을 이용하여 컴파일을 수행할 수 있다. 프로세서(120)는 최초로 객체를 설치할 때에는 JIT 방식을 이용하여 설치 시간과 저장에 필요한 용량을 줄이고, 인터프리터를 통해 사용자 패턴에 따른 프로파일을 저장할 수 있다. 프로파일의 저장 후, 프로세서(120)는 특정한 조건이 부합될 때, 잡 스케줄러(job scheduler)에 의해 AOT 백그라운드 서비스 데몬이 시작되고, 백그라운드에서 컴파일을 통해 컴파일된 코드(예: oat 파일)을 생성할 수 있다. 프로세서(120)는 객체를 구동할 때 컴파일된 ART 런타임에서 컴파일된 코드를 인터프리터를 통하지 않고 바로 사용할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 저장 공간 부족 상태(410)를 모니터링할 수 있다. 프로세서(120)는 저장 공간 모니터링 서비스(430)를 통해 메모리(130)의 저장 공간을 모니터링할 수 있다. 저장 공간 모니터링 서비스(430)는 저장 공간 부족 상태(410)를 모니터링할 수 있다. 저장 공간 모니터링 서비스(430)는 런타임(450)에 메시지(예: 인텐트)를 전송할 수 있다.
도 5는 다양한 실시예에 따른 전자 장치의 메모리 관리 동작의 흐름도이다. 도 5에서 설명하는 각 동작(510~560)은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작(510~560)의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다.
도 5를 참조하면, 다양한 실시예에 따르면, 프로세서(예: 도 1의 프로세서(120))는 메모리(예: 도 1의 메모리(130))의 저장 공간에 대한 정보 및 프로세서(120)에 의해 실행되는 복수의 객체들의 사용 이력을 모니터링 할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 런타임(510) 및 객체 관리자(520)를 통해 객체에 대한 모니터링을 수행할 수 있다. 런타임(510)은 객체 관리자(520)에게 객체 리스트를 요청할 수 있다. 객체 관리자(520)는 복수의 객체들을 모니터링함으로써 최적화가 필요한 객체의 리스트를 생성하고, 생성한 객체 리스트를 런타임(510)으로 전달할 수 있다.
다양한 실시예에 따르면, 객체 관리자(520)는 복수의 객체들 중에서 제1 기간 동안 사용되지 않은 객체를 포함하도록 제1 객체 리스트를 생성하고, 복수의 객체들 중에서 제1 기간 보다 짧은 제2 기간 동안 사용되지 않은 객체를 포함하도록 제2 객체 리스트를 생성할 수 있다. 예를 들어, 제1 기간은 30일일 수 있고, 제2 기간은 15일일수 있다.
다양한 실시예에 따르면, 객체 관리자(520)는 복수의 객체들 중에서 디스플레이 상에 아이콘이 존재하지 않는 객체를 포함하도록 제3 객체 리스트를 생성할 수 있다.
다양한 실시예에 다르면, 프로세서(120)는 메모리(130)의 저장 공간에 대한 정보를 모니터링할 수 있다. 프로세서(120)는 모니터링을 통해 저장 공간 부족 상태를 감지할 수 있다. 저장 공간 부족 상태가 감지된 경우, 프로세서(120)는 백그라운드 컴파일을 중지할 수 있다(530). 예를 들어, 프로세서(120)는 백그라운드 dexopt(background dex optimization)를 중지할 수 있다. 프로세서(120)는 메모리(130)의 여유 저장 공간의 수준이 미리 결정된 수준까지 확보되기 전까지 백그라운드 dexopt를 중지할 수 있다.
다양한 실시예에 따르면, 백그라운드 dexopt는 전자 장치(예: 도 1의 전자 장치(101))가 사용되면서 생성된 프로파일에 기반하여 apk 내에 존재하는 dex파일을 백그라운드에서 dex2oat 도구를 이용하여 컴파일하는 과정을 의미할 수 있다. 프로세서(120)는 백그라운드 dexopt를 통해 컴파일을 수행함으로써 컴파일 아티팩트 파일을 재생성할 수 있다.
다양한 실시예에 따르면, 컴파일 아티팩트 파일은 .vdex, .odex, .oat 또는 .art 파일을 포함할 수 있다. .vdex 파일은 apk의 압축되지 않은 코드 및 추가 메타데이터를 포함할 수 있다. .odex 및/또는 .oat 파일은 apk에 정의된 메소드에 대한 AOT 컴파일된 코드를 포함할 수 있다. .art 파일은 apk의 .dex에 나열된 일부 문자열 과 클래스의 ART 내부 표현을 포함할 수 있다. 예를 들어, 프로세서(120)는 백그라운드 dexopt를 통해 .oat 파일 또는 .art파일을 재생성할 수 있다.
다양한 실시예에 따르면, 컴파일된 메소드(method) 또는 클래스(class)에 따라 객체의 성능이 상이할 수 있다. 백그라운드 dexopt는 잡 스케줄러에 의해 실행될 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 여유 저장 공간이 제1 임계값 이상인지 여부를 판단할 수 있다(540). 예를 들어, 프로세서(120)는 여유 저장 공간이 500MB 이상인지 여부를 판단할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 여유 저장 공간이 제1 임계값 이상인 경우, 객체 리스트의 객체의 컴파일 방식을 변경할 수 있다(550). 프로세서(120)는 전자 장치(101)가 사용되지 않는 동안 백그라운드에서 객체 리스트에 포함된 객체의 컴파일 방식을 변경할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 여유 공간이 제1 임계값 이상인 경우, 생성된 객체 리스트에 기초하여 단계적으로 객체의 컴파일 방식을 변경할 수 있다. 프로세서(120)는 컴파일 방식을 변경할 타겟 객체의 컴파일 필터(compile filter)를 하향 조정(downgrade)하고, 하향 조정된 컴파일 필터에 기초하여 타겟 객체를 재컴파일함으로써 여유 저장 공간을 증가시킬 수 있다. 예를 들어, 프로세서(120)는 컴파일 필터의 하향 조정과 재컴파일을 통해 하나의 객체에 대하여 100 내지 200 MB의 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 런타임(예: ART)에서 dex2oat 도구(tool)를 이용하여 dex 파일을 컴파일할 수 있다. 프로세서(120)는 컴파일 필터(또는, 컴파일 필터 옵션)를 변경함으로써 컴파일 방식을 변경할 수 있다. 컴파일 필터의 종류는 표 1과 같을 수 있다.
Figure PCTKR2021002226-appb-img-000001
다양한 실시예에 따르면, 표 1의 컴파일 필터는 아래에 기재될수록 상향 조정된 컴파일 필터를 의미하고, 위에 기재될수록 하향 조정된 컴파일 필터를 의미할 수 있다. 즉, 컴파일 필터를 하향 조정한다는 것은 컴파일 필터의 종류를 표 1에서 상대적으로 위쪽에 위치한 컴파일 필터로 변경하는 것을 의미할 수 있다.
다양한 실시예에 따르면, 컴파일 필터의 종류에 따라, dex2oat 도구를 통해 컴파일 되는 객체의 런타임 성능이 달라지고, 생성되는 컴파일 아티팩트 파일(예: .odex 파일 또는 .art 파일)의 크기가 달라질 수 있다. 컴파일 아티팩트 파일의 크기는 객체의 종류에 따라 상이할 수 있고, 0MB 내지 수백 MB의 범위를 가질 수 있다. 프로세서(120)는 컴파일 필터의 종류를 변경함으로써 메모리(130)의 여유 저장 공간이 부족하여 발생하는 전자 장치(101)의 성능 저하를 방지할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 객체의 중요도에 기초하여 객체 리스트를 생성하고, 메모리(130)의 여유 저장 공간의 크기에 따라 단계적으로 컴파일 필터의 종류를 변경하여 여유 저장 공간을 확보하여 성능 저하를 최소화할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 컴파일 필터를 하향 조정함으로써 컴파일 방식을 변경할 수 있다. 프로세서(120)는 컴파일 필터를 하향 조정하고, 재컴파일을 수행하여, 컴파일 아티팩트 파일을 재생성할 수 있다. 재생성된 컴파일 아티팩트 파일은 재컴파일 전의 컴파일 아티팩트 파일에 비하여 작은 용량을 가지므로, 메모리(130)의 여유 저장 공간은 증가될 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 메모리(130)의 전체 저장 공간에 대한 여유 저장 공간의 비율에 따라 상이한 객체 리스트에 포함된 객체의 컴파일 방식을 변경할 수 있다. 객체 리스트에 포함된 객체의 컴파일 방식의 변경은 전자 장치(101)가 사용되지 않는 동안 백그라운드에서 수행될 수 있다.
다양한 실시예에 따르면, 메모리(130)의 전제 저장 공간에 대한 여유 저장 공간의 비율이 제1 비율보다 작은 경우, 프로세서(120)는 제1 객체 리스트에 포함된 객체의 컴파일 방식을 변경할 수 있다. 예를 들어, 프로세서(120)는 전체 저장 공간에 대한 여유 저장 공간의 비율이 5%보다 작은 경우, 30일 이내에 사용되지 않은 객체의 컴파일 방식을 변경할 수 있다(551).
다양한 실시예에 따르면, 메모리(130)의 전제 저장 공간에 대한 여유 저장 공간의 비율이 제2 비율보다 작은 경우, 프로세서(120)는 제3 객체 리스트에 포함된 객체의 컴파일 방식을 변경할 수 있다. 예를 들어, 프로세서(120)는 전체 저장 공간에 대한 여유 저장 공간의 비율이 4%보다 작은 경우, 아이콘이 없는 객체의 컴파일 방식을 변경할 수 있다(553).
다양한 실시예에 따르면, 메모리(130)의 전제 저장 공간에 대한 여유 저장 공간의 비율이 제3 비율보다 작은 경우, 프로세서(120)는 제2 객체 리스트에 포함된 객체의 컴파일 방식을 변경할 수 있다. 예를 들어, 프로세서(120)는 전체 저장 공간에 대한 여유 저장 공간의 비율이 3%보다 작은 경우, 15일 이내에 사용되지 않은 객체의 컴파일 방식을 변경할 수 있다(555).
다양한 실시예에 따르면, 메모리(130)의 전제 저장 공간에 대한 여유 저장 공간의 비율이 제4 비율(예: 도 2의 제2 임계값)보다 작은 경우, 프로세서(120)는 모든 객체의 컴파일 방식을 변경할 수 있다. 모든 객체는 제1 내지 제3 객체 리스트에 포함되지 않은 객체를 포함할 수 있다. 예를 들어, 프로세서(120)는 전체 저장 공간에 대한 여유 저장 공간의 비율이 2%보다 작은 경우, 모든 객체(또는, 제1 내지 제3 객체 리스트에 포함되지 않은 객체)의 컴파일 방식을 변경할 수 있다(557).
다양한 실시예에 따르면, 프로세서(120)는 메모리(130)의 여유 저장 공간이 제1 임계값보다 작은 경우 백그라운드에서 컴파일 방식이 변경되지 않은 객체의 컴파일 방식을 변경할 수 있다(560). 프로세서(120)는 메모리(130)의 여유 저장 공간이 제1 임계값 보다 작은 경우, 컴파일 방식이 변경되지 않은 객체들의 컴파일 방식을 변경함으로써 여유 저장 공간을 증가시킬 수 있다. 프로세서(120)는 컴파일 방식이 변경되지 않은 객체의 컴파일 방식을 변경하는 동작을 포어그라운드에서 수행할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 메모리(130)의 여유 저장 공간의 상태에 따라 단계적으로 객체 리스트의 객체들의 컴파일 방식을 변경함으로써, 전자 장치(101)의 사용자가 별도의 조작을 하지 않고도 메모리(130)의 여유 공간을 확보할 수 있다. 프로세서(120)는 사용 빈도가 높은 객체에 대하여 컴파일 방식의 하향 조정 시점을 미룸으로써 사용자가 자주 사용하는 개체에 대한 성능 저하를 방지하여 사용자 경험을 향상시킬 수 있다.
도 6은 다양한 실시예에 따른 전자 장치의 전자 장치 성능 향상 동작을 나타낸다.
도 6을 참조하면, 다양한 실시예에 따르면, 프로세서(예: 도 1의 프로세서(120))는 메모리(610)(예: 도 1의 메모리(130)) 여유 저장 공간이 미리 결정된 값 이상에 도달할 경우에 컴파일 방식이 변경된 객체의 컴파일 방식을 복원시킬 수 있다. 프로세서(120)는 메모리(610)의 전체 저장 공간에 대한 여유 저장 공간의 비율이 미리 결정된 값 이상에 도달할 경우에 컴파일 방식을 복원할 수 있다.
다양한 실시예에 따르면, 런타임(630)은 메모리(610)로부터 여유 저장 공간에 대한 정보를 수신할 수 있다. 런타임(630)은 메모리(610)의 전체 저장 공간에 대한 여유 저장 공간의 비율이 미리 결정된 값 이상인지 여부를 판단할 수 있다. 예를 들어, 미리 결정된 값은 10 %일 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 전체 저장 공간에 대한 여유 저장 공간의 비율이 미리 결정된 값 이상에 도달하면 객체의 컴파일 방식을 변경 또는 복원할 수 있다. 예를 들어, 메모리(610)의 전체 저장 공간에 대한 여유 저장 공간의 비율이 10% 이상인 경우, 프로세서(120)는 런타임(630)을 통해 모든 객체의 컴파일 방식을 변경(또는 복원)할 수 있다(650). 컴파일 방식의 복원은 전자 장치(예: 도 1의 전자 장치(101))가 사용되지 않는 동안 백그라운드에서 수행될 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 메모리(610)의 전체 저장 공간에 대한 여유 저장 공간의 비율이 미리 결정된 값 이상에 도달하면 하향 조정된 컴파일 필터를 상향 조정하여 재컴파일할 수 있다. 표 2는 컴파일 필터의 종류에 따른 컴파일 아티팩트 파일의 크기를 나타낼 수 있다.
Figure PCTKR2021002226-appb-img-000002
다양한 실시예에 따르면, 프로세서(120)는 컴파일 필터의 종류를 verify에서 speed profile로 복원하여 재컴파일함으로써 객체의 성능을 향상시킬 수 있다. 표 3 speed profile로 컴파일했을 때의 객체에 대한 진입 시간(entry time) 및 이용 가능한 저장 공간의 크기를 나타낼 수 있고, 표 4는 verify로 컴파일했을 때의 객체에 대한 진입 시간 및 이용 가능한 저장 공간의 크기를 나타낼 수 있다.
Figure PCTKR2021002226-appb-img-000003
Figure PCTKR2021002226-appb-img-000004
다양한 실시예에 따르면, 프로세서(120)는 메모리(610)의 여유 저장 공간이 부족할 경우, 컴파일 필터를 하향 조정하여 전자 장치(101)의 슬러기쉬를 방지하고, 여유 저장 공간이 충분할 경우 컴파일 필터를 복원함으로써 객체의 성능을 향상시킴으로써 안정적으로 전자 장치(101) 및 객체의 성능을 확보할 수 있다.
도 7은 다양한 실시예에 따른 전자 장치의 동작의 흐름도이다. 도 7에서 설명하는 각 동작(710~750)은 순차적으로 수행될 수도 있으나, 반드시 순차적으로 수행되는 것은 아니다. 예를 들어, 각 동작(710~750)의 순서가 변경될 수도 있으며, 적어도 두 동작들이 병렬적으로 수행될 수도 있다.
도 7을 참조하면, 다양한 실시예에 따르면, 프로세서(예: 도 1의 프로세서(120))는 메모리(예: 도 1의 메모리(130))의 저장 공간에 대한 정보 및 전자 장치에 의해 실행되는 복수의 객체들의 사용 이력을 모니터링할 수 있다(710). 저장 공간에 대한 정보는 메모리(130)의 전체 저장 공간에 대한 여유 저장 공간의 비율 및 메모리(130)의 여유 저장 공간의 크기를 포함할 수 있다. 복수의 객체들의 사용 이력은 복수의 객체들이 사용되지 않은 기간을 포함할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 저장 공간에 대한 정보 및 복수의 객체들의 사용 이력에 기초하여 복수의 객체들 중에서 컴파일 방식을 변경할 타겟 객체를 결정할 수 있다(730). 프로세서(120)는 메모리(130)의 여유 저장 공간에 기초하여 복수의 객체들 중에서 제1 기간 동안 사용되지 않은 객체를 제1 타겟 객체로 결정하고, 제1 기간 보다 짧은 제2 기간 동안 사용되지 않은 객체를 제2 타겟 객체로 결정할 수 있다. 프로세서(120)는 메모리(130)의 여유 저장 공간에 기초하여 복수의 객체들 중에서 디스플레이 상에 아이콘(icon)이 존재하지 않는 객체를 타겟 객체로 결정할 수 있다. 프로세서(120)는 메모리(130)의 여유 저장 공간에 기초하여, 복수의 객체들 전부를 타겟 객체로 결정할 수 있다. 프로세서(120)는 메모리(130)의 저장 공간에 대한 여유 저장 공간의 비율이 제2 임계값 보다 작은 경우, 복수의 객체들 전부를 타겟 객체로 결정할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 프로세서(120)에 의해 실행되는 복수의 객체들의 사용 이력에 기초하여 복수의 객체들의 적어도 일부를 포함하는 객체 리스트를 생성할 수 있다. 프로세서(120)는 복수의 객체들 중에서 제1 기간 동안 사용되지 않은 객체를 포함하도록 제1 객체 리스트를 생성하고, 복수의 객체들 중에서 제1 기간 보다 짧은 제2 기간 동안 사용되지 않은 객체를 포함하도록 제2 객체 리스트를 생성할 수 있다. 프로세서(120)는 복수의 객체들 중에서 디스플레이 상에 아이콘이 존재하지 않는 객체를 포함하도록 제3 객체 리스트를 생성할 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 타겟 객체의 컴파일 방식을 변경함으로써 메모리(130)의 여유 공간을 증가시킬 수 있다(750). 프로세서(120)는 타겟 객체의 컴파일 필터(compile-filter)를 하향 조정(downgrade)하고, 하향 조정된 컴파일 필터에 기초하여 타겟 객체를 재컴파일(re-compile)함으로써 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 메모리(130)의 전체 저장 공간에 대한 여유 저장 공간의 비율에 기초하여 컴파일 방식을 변경할 객체 리스트를 결정하고, 결정된 객체 리스트에 포함된 객체의 컴파일 방식을 변경함으로써 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 전자 장치가 사용 중인지 여부를 판단하고, 전자 장치가 사용 중이지 않을 경우, 타겟 객체의 컴파일 방식을 변경함으로써 여유 저장 공간을 증가시킬 수 있다. 타겟 객체의 컴파일 방식을 변경하는 동작은 백그라운드(background)에서 수행될 수 있다.
다양한 실시예에 따르면, 프로세서(120)는 메모리(130)의 여유 저장 공간이 제1 임계값 보다 작은 경우, 컴파일 방식이 변경되지 않은 객체들의 컴파일 방식을 변경함으로써 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 전자 장치(예: 도 1의 전자 장치(101))는 하나 이상의 프로세서(예: 도 1의 프로세서(120))와, 상기 프로세서에 의해 실행 가능한 인스트럭션을 저장하는 메모리(예: 도 1의 메모리(130))를 포함하고, 상기 프로세서는, 상기 메모리의 저장 공간에 대한 정보 및 상기 프로세서에 의해 실행되는 복수의 객체들의 사용 이력을 모니터링하고, 상기 정보 또는 상기 사용 이력 중에서 적어도 하나 또는 둘에 기초하여 상기 복수의 객체들 중에서 컴파일 방식을 변경할 타겟 객체를 결정하고, 상기 타겟 객체의 컴파일 방식을 변경함으로써 상기 메모리의 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 상기 정보는, 상기 메모리의 전체 저장 공간에 대한 여유 저장 공간의 비율 및 상기 메모리의 여유 저장 공간의 크기를 포함하고, 상기 사용 이력은, 상기 복수의 객체들이 사용되지 않은 기간을 포함할 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 메모리의 여유 저장 공간이 제1 임계값 보다 작은 경우, 컴파일 방식이 변경되지 않은 객체들의 컴파일 방식을 변경함으로써 상기 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 메모리의 여유 저장 공간에 기초하여 상기 복수의 객체들 중에서 제1 기간 동안 사용되지 않은 객체를 제1 타겟 객체로 결정하고, 상기 제1 기간 보다 짧은 제2 기간 동안 사용되지 않은 객체를 제2 타겟 객체로 결정할 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 메모리의 여유 저장 공간에 기초하여 상기 복수의 객체들 중에서 디스플레이 상에 아이콘(icon)이 존재하지 않는 객체를 상기 타겟 객체로 결정할 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 메모리의 여유 저장 공간에 기초하여, 상기 복수의 객체들 전부를 상기 타겟 객체로 결정할 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 메모리의 저장 공간에 대한 상기 여유 저장 공간의 비율이 제2 임계값 보다 작은 경우, 상기 복수의 객체들 전부를 상기 타겟 객체로 결정할 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 타겟 객체의 컴파일 필터(compile-filter)를 하향 조정(downgrade)하고, 하향 조정된 컴파일 필터에 기초하여 상기 타겟 객체를 재컴파일(re-compile)함으로써 상기 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 전자 장치가 사용 중인지 여부를 판단하고, 상기 전자 장치가 사용 중이지 않을 경우, 상기 타겟 객체의 컴파일 방식을 변경함으로써 상기 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 상기 타겟 객체의 컴파일 방식을 변경하는 동작은 백그라운드(background)에서 수행될 수 있다.
다양한 실시예에 따르면, 전자 장치(예: 도 1의 전자 장치(101))는, 하나 이상의 프로세서(예: 도 1의 프로세서(120))와, 상기 프로세서에 의해 실행 가능한 인스트럭션을 저장하는 메모리(예: 도 1의 메모리(130))를 포함하고, 상기 프로세서는, 상기 메모리의 저장 공간에 대한 정보를 모니터링하고, 상기 프로세서에 의해 실행되는 복수의 객체들의 사용 이력에 기초하여 상기 복수의 객체들의 적어도 일부를 포함하는 객체 리스트를 생성하고, 상기 정보에 기초하여 상기 객체 리스트에 포함된 적어도 하나의 객체의 컴파일 방식을 변경함으로써 상기 메모리의 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 상기 정보는, 메모리의 전체 저장 공간에 대한 여유 저장 공간의 비율 및 상기 메모리의 여유 저장 공간의 크기를 포함하고, 상기 사용 이력은, 상기 복수의 객체들이 사용되지 않은 기간을 포함할 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 메모리의 여유 저장 공간이 제1 임계값 보다 작은 경우, 상기 컴파일 방식이 변경되지 않은 객체들의 컴파일 방식을 변경함으로써 상기 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 복수의 객체들 중에서 제1 기간 동안 사용되지 않은 객체를 포함하도록 제1 객체 리스트를 생성하고, 상기 복수의 객체들 중에서 상기 제1 기간 보다 짧은 제2 기간 동안 사용되지 않은 객체를 포함하도록 제2 객체 리스트를 생성할 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 복수의 객체들 중에서 디스플레이 상에 아이콘이 존재하지 않는 객체를 포함하도록 제3 객체 리스트를 생성할 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 메모리의 전체 저장 공간에 대한 상기 여유 저장 공간의 비율에 기초하여 상기 컴파일 방식을 변경할 객체 리스트를 결정하고, 결정된 객체 리스트에 포함된 객체의 컴파일 방식을 변경함으로써 상기 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 비율이 제2 임계값 보다 작은 경우, 상기 복수의 객체들 전부의 컴파일 방식을 변경함으로써 상기 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 적어도 하나의 객체의 컴파일 필터를 하향 조정하고, 하향 조정된 컴파일 필터에 기초하여 상기 적어도 하나의 객체를 재컴파일함으로써 상기 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 상기 프로세서는, 상기 전자 장치가 사용 중인지 여부를 판단하고, 상기 전자 장치가 사용 중이지 않을 경우, 상기 적어도 하나의 객체의 컴파일 방식을 변경함으로써 상기 여유 저장 공간을 증가시킬 수 있다.
다양한 실시예에 따르면, 전자 장치(예: 도 1의 전자 장치(101))의 메모리(예: 도 1의 메모리(130))를 관리하는 방법에 있어서, 메모리 관리 방법은, 상기 메모리의 저장 공간에 대한 정보 및 상기 전자 장치에 의해 실행되는 복수의 객체들의 사용 이력을 모니터링하는 동작과, 상기 정보 및 상기 사용 이력에 기초하여 상기 복수의 객체들 중에서 컴파일 방식을 변경할 타겟 객체를 결정하는 동작과, 상기 타겟 객체의 컴파일 방식을 변경함으로써 상기 메모리의 여유 저장 공간을 증가시키는 동작을 포함할 수 있다.
본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.
본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.
본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다.
본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(#01)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(#36) 또는 외장 메모리(#38))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(#40))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(#01))의 프로세서(예: 프로세서(#20))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.
일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어 TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.
다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다.

Claims (15)

  1. 전자 장치에 있어서,
    하나 이상의 프로세서; 및
    상기 프로세서에 의해 실행 가능한 인스트럭션을 저장하는 메모리
    를 포함하고,
    상기 프로세서는,
    상기 메모리의 저장 공간에 대한 정보 및 상기 프로세서에 의해 실행되는 복수의 객체들의 사용 이력을 모니터링하고,
    상기 정보 또는 상기 사용 이력 중에서 적어도 하나 또는 둘에 기초하여 상기 복수의 객체들 중에서 컴파일 방식을 변경할 타겟 객체를 결정하고,
    상기 타겟 객체의 컴파일 방식을 변경함으로써 상기 메모리의 여유 저장 공간을 증가시키는,
    전자 장치.
  2. 제1항에 있어서,
    상기 정보는,
    상기 메모리의 전체 저장 공간에 대한 여유 저장 공간의 비율 및 상기 메모리의 여유 저장 공간의 크기를 포함하고,
    상기 사용 이력은,
    상기 복수의 객체들이 사용되지 않은 기간을 포함하는
    전자 장치.
  3. 제1항에 있어서,
    상기 프로세서는,
    상기 메모리의 여유 저장 공간이 제1 임계값 보다 작은 경우, 컴파일 방식이 변경되지 않은 객체들의 컴파일 방식을 변경함으로써 상기 여유 저장 공간을 증가시키는
    전자 장치.
  4. 제1항에 있어서,
    상기 프로세서는,
    상기 메모리의 여유 저장 공간에 기초하여 상기 복수의 객체들 중에서 제1 기간 동안 사용되지 않은 객체를 제1 타겟 객체로 결정하고,
    상기 제1 기간 보다 짧은 제2 기간 동안 사용되지 않은 객체를 제2 타겟 객체로 결정하는
    전자 장치.
  5. 제1항에 있어서,
    상기 프로세서는,
    상기 메모리의 여유 저장 공간에 기초하여 상기 복수의 객체들 중에서 디스플레이 상에 아이콘(icon)이 존재하지 않는 객체를 상기 타겟 객체로 결정하는
    전자 장치.
  6. 제4항에 있어서,
    상기 프로세서는,
    상기 메모리의 여유 저장 공간에 기초하여, 상기 복수의 객체들 전부를 상기 타겟 객체로 결정하는
    전자 장치.
  7. 제6항에 있어서,
    상기 프로세서는,
    상기 메모리의 저장 공간에 대한 상기 여유 저장 공간의 비율이 제2 임계값 보다 작은 경우, 상기 복수의 객체들 전부를 상기 타겟 객체로 결정하는
    전자 장치.
  8. 제1항에 있어서,
    상기 프로세서는,
    상기 타겟 객체의 컴파일 필터(compile-filter)를 하향 조정(downgrade)하고,
    하향 조정된 컴파일 필터에 기초하여 상기 타겟 객체를 재컴파일(re-compile)함으로써 상기 여유 저장 공간을 증가시키는
    전자 장치.
  9. 제1항에 있어서,
    상기 프로세서는,
    상기 전자 장치가 사용 중인지 여부를 판단하고,
    상기 전자 장치가 사용 중이지 않을 경우, 상기 타겟 객체의 컴파일 방식을 변경함으로써 상기 여유 저장 공간을 증가시키는
    전자 장치.
  10. 제1항에 있어서,
    상기 타겟 객체의 컴파일 방식을 변경하는 동작은 백그라운드(background)에서 수행되는
    전자 장치.
  11. 전자 장치에 있어서,
    하나 이상의 프로세서; 및
    상기 프로세서에 의해 실행 가능한 인스트럭션을 저장하는 메모리
    를 포함하고,
    상기 프로세서는,
    상기 메모리의 저장 공간에 대한 정보를 모니터링하고,
    상기 프로세서에 의해 실행되는 복수의 객체들의 사용 이력에 기초하여 상기 복수의 객체들의 적어도 일부를 포함하는 객체 리스트를 생성하고,
    상기 정보에 기초하여 상기 객체 리스트에 포함된 적어도 하나의 객체의 컴파일 방식을 변경함으로써 상기 메모리의 여유 저장 공간을 증가시키는
    전자 장치.
  12. 제11항에 있어서,
    상기 프로세서는,
    상기 메모리의 여유 저장 공간이 제1 임계값 보다 작은 경우, 상기 컴파일 방식이 변경되지 않은 객체들의 컴파일 방식을 변경함으로써 상기 여유 저장 공간을 증가시키는
    전자 장치.
  13. 제11항에 있어서,
    상기 프로세서는,
    상기 복수의 객체들 중에서 제1 기간 동안 사용되지 않은 객체를 포함하도록 제1 객체 리스트를 생성하고,
    상기 복수의 객체들 중에서 상기 제1 기간 보다 짧은 제2 기간 동안 사용되지 않은 객체를 포함하도록 제2 객체 리스트를 생성하는
    전자 장치.
  14. 제11항에 있어서,
    상기 프로세서는,
    상기 복수의 객체들 중에서 디스플레이 상에 아이콘이 존재하지 않는 객체를 포함하도록 제3 객체 리스트를 생성하는
    전자 장치.
  15. 제11항에 있어서,
    상기 프로세서는,
    상기 메모리의 전체 저장 공간에 대한 상기 여유 저장 공간의 비율에 기초하여 상기 컴파일 방식을 변경할 객체 리스트를 결정하고,
    결정된 객체 리스트에 포함된 객체의 컴파일 방식을 변경함으로써 상기 여유 저장 공간을 증가시키는
    전자 장치.
PCT/KR2021/002226 2021-01-12 2021-02-23 전자 장치 및 전자 장치의 메모리 관리 방법 WO2022154163A1 (ko)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP21919792.8A EP4191393A4 (en) 2021-01-12 2021-02-23 ELECTRONIC DEVICE AND METHOD FOR MANAGING THE MEMORY OF AN ELECTRONIC DEVICE
CN202180074380.1A CN116438513A (zh) 2021-01-12 2021-02-23 电子装置和管理电子装置的存储器的方法
US18/191,423 US20230236744A1 (en) 2021-01-12 2023-03-28 Electronic device and method for managing memory of electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2021-0004097 2021-01-12
KR1020210004097A KR20220101967A (ko) 2021-01-12 2021-01-12 전자 장치 및 전자 장치의 메모리 관리 방법

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/191,423 Continuation US20230236744A1 (en) 2021-01-12 2023-03-28 Electronic device and method for managing memory of electronic device

Publications (1)

Publication Number Publication Date
WO2022154163A1 true WO2022154163A1 (ko) 2022-07-21

Family

ID=82447432

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2021/002226 WO2022154163A1 (ko) 2021-01-12 2021-02-23 전자 장치 및 전자 장치의 메모리 관리 방법

Country Status (5)

Country Link
US (1) US20230236744A1 (ko)
EP (1) EP4191393A4 (ko)
KR (1) KR20220101967A (ko)
CN (1) CN116438513A (ko)
WO (1) WO2022154163A1 (ko)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005301415A (ja) * 2004-04-07 2005-10-27 Ricoh Co Ltd コンパイル方式、シミュレータ、エミュレータおよびプログラム開発支援システム
KR20140099166A (ko) * 2013-01-31 2014-08-11 삼성전자주식회사 애플리케이션들을 관리하는 방법 및 애플리케이션들의 관리를 수행하는 디바이스
KR20150025287A (ko) * 2013-08-28 2015-03-10 주식회사 팬택 모바일 단말의 응용프로그램 저장공간 관리 장치 및 관리 방법
KR101722672B1 (ko) * 2014-07-01 2017-04-03 네이버 주식회사 모바일 기기의 상태에 따른 최적화 방법과 시스템 및 기록 매체
KR20200005009A (ko) * 2018-07-05 2020-01-15 서울대학교산학협력단 전자 장치, 전자 장치의 컴파일링 방법 및 전자 장치의 동작 방법

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060236310A1 (en) * 2005-04-19 2006-10-19 Domeika Max J Methods and apparatus to iteratively compile software to meet user-defined criteria
CN107085548A (zh) * 2016-02-16 2017-08-22 阿里巴巴集团控股有限公司 一种监控应用程序内存的方法、装置及电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005301415A (ja) * 2004-04-07 2005-10-27 Ricoh Co Ltd コンパイル方式、シミュレータ、エミュレータおよびプログラム開発支援システム
KR20140099166A (ko) * 2013-01-31 2014-08-11 삼성전자주식회사 애플리케이션들을 관리하는 방법 및 애플리케이션들의 관리를 수행하는 디바이스
KR20150025287A (ko) * 2013-08-28 2015-03-10 주식회사 팬택 모바일 단말의 응용프로그램 저장공간 관리 장치 및 관리 방법
KR101722672B1 (ko) * 2014-07-01 2017-04-03 네이버 주식회사 모바일 기기의 상태에 따른 최적화 방법과 시스템 및 기록 매체
KR20200005009A (ko) * 2018-07-05 2020-01-15 서울대학교산학협력단 전자 장치, 전자 장치의 컴파일링 방법 및 전자 장치의 동작 방법

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4191393A4 *

Also Published As

Publication number Publication date
EP4191393A1 (en) 2023-06-07
CN116438513A (zh) 2023-07-14
KR20220101967A (ko) 2022-07-19
US20230236744A1 (en) 2023-07-27
EP4191393A4 (en) 2024-06-05

Similar Documents

Publication Publication Date Title
WO2022030903A1 (ko) 어플리케이션 설치 방법 및 이를 지원하는 전자 장치
WO2022055261A1 (ko) 메모리를 관리하기 위한 전자 장치, 전자 장치의 동작 방법, 및 비 일시적 저장 매체
WO2021075905A1 (en) Application optimization method and electronic device supporting the same
WO2022255652A1 (ko) 어플리케이션 업데이트 방법 및 그 전자 장치
WO2022149771A1 (ko) 전자 장치 및 이를 이용한 메모리 관리 방법
WO2022154380A1 (ko) 전자 장치 및 전자 장치의 메모리 관리 방법
WO2022181965A1 (ko) 업사이클링 기능을 제공하기 위한 방법 및 이를 지원하는 전자 장치
WO2022154289A1 (ko) 메모리를 관리하는 전자 장치와 이의 동작 방법
WO2022154414A1 (ko) 전자 장치 및 전자 장치의 스토리지 운영 방법
WO2022154163A1 (ko) 전자 장치 및 전자 장치의 메모리 관리 방법
WO2022177162A1 (ko) 어플리케이션의 모델 파일을 초기화하는 프로세서 및 이를 포함하는 전자 장치
WO2022154264A1 (ko) 전자 장치 및 전자 장치의 동작 방법
WO2023013866A1 (ko) 어플리케이션 최적화 방법 및 이를 지원하는 장치
WO2024014695A1 (ko) 상호작용에 의해 획득된 순서에 기반하여 패키지들을 컴파일하는 전자 장치 및 방법
WO2022154383A1 (ko) 전자 장치 및 전자 장치의 커널 모듈 로딩 방법
WO2022211285A1 (ko) 메모리를 관리하기 위한 전자 장치 및 그의 동작 방법
WO2022203271A1 (ko) 전자 장치 및 커스터마이즈된 온도 보상 방법
WO2022191454A1 (ko) 블록 장치 이미지에 대한 런타임 체크섬 검증을 수행하는 전자 장치 및 이의 동작 방법
WO2022163907A1 (ko) 전자 장치 및 이의 제어 방법
WO2024085681A1 (ko) 가비지 컬렉션 수행 방법 및 이를 지원하는 전자 장치
WO2022191455A1 (ko) 파일 리댁션을 수행하는 전자 장치 및 이의 동작 방법
WO2022119110A1 (ko) 하이퍼바이저를 이용한 가상 머신 모니터링 방법 및 이를 지원하는 전자 장치
WO2022030964A1 (ko) 가상 메모리의 할당 방법 및 이를 지원하는 전자 장치
WO2023101294A1 (ko) 저장 공간을 관리하기 위한 전자 장치 및 전자 장치의 동작 방법
WO2024058615A1 (ko) 신경 처리부를 포함하는 전자 장치 및 그 동작 방법

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: 21919792

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021919792

Country of ref document: EP

Effective date: 20230303

NENP Non-entry into the national phase

Ref country code: DE