IP Library Granted Patent US 11,029,747
Granted Patent B2
US 11,029,747 · App. 16/368,255 · Granted Jun 8, 2021

Electronic apparatus and control method for adjusting priority of an application based on activations

Inventors: Tetsuji Yamamoto (Osaka, JP); Takehiko Yasuda (Kanagawa, JP); Osamu Nishimura (Kyoto, JP)
Assignee: PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO., LTD.
G06F1/3275G06F1/3225G06F1/3228G06F1/3287
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,029,747
App. No.
16/368,255
Granted
Jun 8, 2021
Kind
B2
Abstract

The time required for transition from an on-state to a suspend state is reduced. An electronic apparatus includes: a memory and a memory; a current control unit that performs a control to shut off supply of current to the memory; and a memory management unit that allocates a memory region in either the memory or the memory based on preference information indicating a memory region that needs to be preferentially allocated in the memory. For example, the preference information includes association with a first priority as a degree at which a memory region to be used by an application needs to be preferentially allocated in the memory, and when receiving a request of allocation of the memory region from the application, the memory management unit more preferentially allocates the memory region in the memory as the first priority associated with the application in the preference information is higher.

Claims (48)

1. An electronic apparatus comprising:

a plurality of volatile memories that include a first memory and a second memory;

a current control circuit that performs a control to shut off supply of current to the second memory; and

a memory management circuit that allocates a memory region in either the first memory or the second memory based on a first threshold and preference information indicating a memory region that needs to be preferentially allocated in the first memory,

wherein

the preference information includes association between an application and a first priority, the application operating using the plurality of the volatile memories, the first priority being a degree at which a memory region to be used by the application needs to be preferentially allocated in the first memory,

the memory management circuit acquires a frequency at which the application is activated,

the memory management circuit calculates an adjusted first priority using the first priority associated with the application in the preference information and the frequency at which the application is activated, and calculates an adjusted first threshold using the first threshold and the frequency at which the application is activated, and

when the memory management circuit receives a request of allocation of the memory region from the application, the memory management circuit allocates the memory region in the first memory if the adjusted first priority associated with the application in the preference information is higher than the adjusted first threshold.

2. The electronic apparatus according to claim 1 , wherein:

the preference information includes association between a file and a second priority, the file being placed in the plurality of the volatile memories, the second priority being a degree at which a memory region in which the file is placed needs to be preferentially allocated in the first memory; and

when the memory management circuit receives a request of allocation of the memory region in which the file needs to be placed, the memory management circuit more preferentially allocates the memory region in the first memory if the second priority associated with the file in the preference information is higher than a second threshold.

3. The electronic apparatus according to claim 1 , wherein

the memory management circuit copies data stored in the second memory, to the first memory, before the current control circuit shuts off the supply of the current to the second memory.

4. The electronic apparatus according to claim 1 , wherein

when the memory management circuit allocates the memory region across two or more non-volatile memories including the second memory of the plurality of the volatile memories, the memory management circuit copies data stored in a partial region, to the first memory, before the current control circuit shuts off the supply of the current to the second memory, the partial region being a region of the memory region allocated and being included in the second memory.

5. The electronic apparatus according to claim 1 , wherein:

the current control circuit further performs a control to shut off supply of current to a controlled hardware device, the controlled hardware device being a previously determined hardware device of one or more hardware devices included in the electronic apparatus; and

the memory management circuit further

stores state information in the first memory, before the current control circuit shuts off the supply of the current to the controlled hardware device, the state information indicating a state of a driver that controls the controlled hardware device, and

copies the state information to the driver, after the current control circuit restores the supply of the current to the controlled hardware device.

6. The electronic apparatus according to claim 5 , wherein

the memory management circuit further

stores completion information in the first memory, before the current control circuit shuts off the supply of the current to the controlled hardware device, the completion information indicating completion of the storing of the state information, and

copies the state information to the driver when it is judged that the completion information is stored in the first memory, after the current control circuit restores the supply of the current to the controlled hardware device.

7. The electronic apparatus according to claim 5 , wherein:

the memory management circuit further

stores partial completion information in the first memory whenever the memory management circuit stores state information in the first memory, before the current control circuit shuts off the supply of the current to the controlled hardware device, the state information indicating states of one or more drivers of a plurality of the drivers, the partial completion information indicating completion of the storing of the state information; and

the memory management circuit

refers to the partial completion information stored in the first memory,

(a) returns the state information to a driver that is of the plurality of the drivers and for which the state information is stored in the first memory, and

(b) initializes a driver that is of the plurality of the drivers and for which the state information is not stored in the first memory,

after the current control circuit restores the supply of the current to the controlled hardware device.

8. The electronic apparatus according to claim 1 , wherein:

the electronic apparatus further comprises an operation circuit that receives an operation to cause the electronic apparatus to transition from an off-state to an on-state, from a user;

the memory management circuit further estimates an estimated on time point, the estimated on time point being a time point when the electronic apparatus transitions from the off-state to the on-state after a present time point; and

the current control circuit further

performs the control to shut off the supply of the current to the second memory, when a time length from the present time point to the estimated on time point is longer than a predetermined length, and

performs a control to restore the supply of the current to the second memory, when the time length from the present time point to the estimated on time point is shorter than a predetermined length.

9. A control method for an electronic apparatus including a plurality of volatile memories that include a first memory and a second memory, the control method comprising:

performing a control to shut off supply of current to the second memory; and

allocating a memory region in either the first memory or the second memory based on a first threshold and preference information indicating a memory region that needs to be preferentially allocated in the first memory,

wherein

the preference information includes association between an application and a first priority, the application operating using the plurality of the volatile memories, the first priority being a degree at which a memory region to be used by the application needs to be preferentially allocated in the first memory,

acquiring a frequency at which the application is activated,

calculating an adjusted first priority using the first priority associated with the application in the preference information and the frequency at which the application is activated,

calculating an adjusted first threshold using the first threshold and the frequency at which the application is activated, and

when receiving a request of allocation of the memory region from the application, allocating the memory region in the first memory if the adjusted first priority associated with the application in the preference information is higher than the adjusted first threshold.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 28, 2024
From: PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO., LTD.
To: PANASONIC AUTOMOTIVE SYSTEMS CO., LTD.
Reel/Frame 066703/0216 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 30, 2019
From: YAMAMOTO, TETSUJI; YASUDA, TAKEHIKO; NISHIMURA, OSAMU
To: PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO., LTD.
Reel/Frame 050571/0409 →