APPLYING MODERN STANDBY CONFIGURATIONS ON A PER-APPLICATION BASIS
20230033478 · 2023-02-02
Inventors
Cpc classification
G06F1/3209
PHYSICS
G06F11/3051
PHYSICS
International classification
Abstract
Modern Standby configurations can be applied on a per-application basis. When a system is transitioning into Modern Standby, a host service can select a Modern Standby configuration to be applied to each Modern Standby capable application. The host service can then create job objects, or other suitable structures or functionality, to cause the selected Modern Standby configurations to be applied to the Modern Standby capable applications while the system is in Modern Standby. In this way, even though the operating system may implement Modern Connected Standby for all Modern Standby capable applications, dynamically selected Modern Standby configurations can be applied to mimic Modern Disconnected Standby or suspension for at least some of the Modern Standby capable applications.
Claims
1. A method for applying Modern Standby configurations on a per-application basis, the method comprising: detecting that a system is transitioning into Modern Standby; selecting a Modern Standby configuration for each of a plurality of Modern Standby capable applications that are running on the system; and causing the selected Modern Standby configurations to be applied to the Modern Standby capable applications while the system is in Modern Standby.
2. The method of claim 1, wherein the system is running one of: a Windows operating system; a Linux operating system; or a Unix operating system.
3. The method of claim 1, wherein selecting the Modern Standby configuration for each of the plurality of Modern Standby capable applications that are running on the system comprises selecting from among a connected configuration, a disconnected configuration or a suspended configuration.
4. The method of claim 1, wherein: selecting the Modern Standby configuration for each of the plurality of Modern Standby capable applications that are running on the system comprises selecting a disconnected configuration for a first Modern Standby capable application of the plurality of Modern Standby capable applications; and causing the selected Modern Standby configurations to be applied to the Modern Standby capable applications while the system is in Modern Standby comprises preventing the first Modern Standby capable application from accessing network bandwidth.
5. The method of claim 4, wherein preventing the first Modern Standby capable application from accessing network bandwidth comprises assigning the first Modern Standby capable application to a disconnected child job object.
6. The method of claim 1, wherein: selecting the Modern Standby configuration for each of the plurality of Modern Standby capable applications that are running on the system comprises selecting a suspended configuration for a first Modern Standby capable application of the plurality of Modern Standby capable applications; and causing the selected Modern Standby configurations to be applied to the Modern Standby capable applications while the system is in Modern Standby comprises preventing the first Modern Standby capable application from being scheduled on a CPU.
7. The method of claim 6, wherein preventing the first Modern Standby capable application from being scheduled on the CPU comprises assigning the first Modern Standby capable application to a suspended child job object.
8. The method of claim 1, wherein the Modern Standby configuration is selected for each of the plurality of Modern Standby capable applications that are running on the system based on a policy and sensor state information.
9. The method of claim 8, wherein the sensor state information is received from an embedded controller service that monitors one or more sensors of the system.
10. The method of claim 8, wherein the sensor state information comprises one or more of: battery information; network information; or location information.
11. The method of claim 1, further comprising: causing the selected Modern Standby configurations to no longer be applied to the Modern Standby capable applications when the system exits Modern Standby.
12. The method of claim 1, wherein the Modern Standby capable applications include at least one containerized application, and wherein causing the selected Modern Standby configurations to be applied to the Modern Standby capable applications while the system is in Modern Standby comprises causing a container service to apply the selected Modern Standby configuration to the at least one containerized application.
13. The method of claim 1, further comprising: detecting a change in sensor state information while the system remains in Modern Standby; selecting an adjusted Modern Standby configuration for at least one of the plurality of Modern Standby capable applications; and causing the selected adjusted Modern Standby configuration to be applied to the corresponding Modern Standby capable application while the system remains in Modern Standby.
14. The method of claim 1, further comprising: identifying the plurality of Modern Standby capable applications by accessing a throttle job object.
15. One or more computer storage media storing computer executable instructions which when executed implement a method for applying Modern Standby configurations on a per-application basis, the method comprising: identifying a plurality of Modern Standby capable applications that are running on a system; selecting a connected configuration for a first set of the Modern Standby capable applications; selecting a disconnected configuration for a second set of the Modern Standby capable applications; selecting a suspended configuration for a third set of the Modern Standby capable applications; and causing the connected configuration, the disconnected configuration and the suspended configuration to be applied to the first set, the second set and the third set respectively while the system is in Modern Standby.
16. The computer storage media of claim 15, wherein: causing the connected configuration, the disconnected configuration and the suspended configuration to be applied to the first set, the second set and the third set respectively while the system is in Modern Standby comprises assigning the second set of the Modern Standby capable applications to a disconnected child job object and assigning the third set of the Modern Standby capable applications to a suspended child job object.
17. The computer storage media of claim 15, wherein the connected configuration, the disconnected configuration and the suspended configuration are selected for the first set, the second set and the third set respectively based on policy.
18. The computer storage media of claim 17, wherein the connected configuration, the disconnected configuration and the suspended configuration are selected for the first set, the second set and the third set respectively based on sensor state information.
19. A system comprising: one or more processors; and computer storage media storing computer executable instructions which when executed implement a method for applying Modern Standby configurations on a per-application basis, the method comprising: accessing a throttle job object to identify Modern Standby capable applications; creating a disconnected child job object and a suspended child job object; assigning a first set of the Modern Standby capable applications to the disconnected child job object to thereby limit bandwidth available to the first set during Modern Standby; and assigning a second set of the Modern Standby capable applications to the suspended child job object to thereby limit CPU time available to the second set during Modern Standby.
20. The system of claim 19, wherein the method further comprises: deleting the disconnected child job object and the suspended child job object when the system exits Modern Standby.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Understanding that these drawings depict only typical embodiments of the invention and are not therefore to be considered limiting of its scope, the invention will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:
[0015]
[0016]
[0017]
[0018]
[0019]
DETAILED DESCRIPTION
[0020] In this specification and the claims, the term “Modern Standby” will be used in accordance with its standard definition in the Windows operating system context and encompasses Modern Connected Standby (MCS) and Modern Disconnected Standby (MDS). However, the present invention can be implemented on systems running other operating systems, and therefore, Modern Standby can be construed as a sleep state in which the system periodically wakes to perform software activities (e.g., the S0ix states on an Intel architecture).
[0021] Although the description employs Windows-based examples and terminology, embodiments of the present invention should not be construed as being limited to implementation on Windows-based systems. To the contrary, other operating systems (e.g., Android and Linux) include components that are functionally similar or equivalent to the Windows-based components described herein. Therefore, the techniques described herein, by which embodiments of the present invention enable Modern Standby configurations to be applied on a per-application basis, can be implemented in any operating system environment that supports Modern Standby functionality.
[0022]
[0023] As introduced in the background, when entering Modern Standby, the operating system may be configured to implement either MCS or MDS. Therefore, any of applications 120 that are not suspended during Modern Standby will run during Modern Standby under the same configuration—either MCS or MDS. Embodiments of the present invention may be implemented to enable each Modern Standby capable application to run during Modern Standby with either a connected configuration or a disconnected configuration. Also, in some embodiments, a Modern Standby capable application can be configured with a suspended configuration. This ability to apply Modern Standby configurations on a per-application basis can increase battery life with minimal impact on responsiveness or performance.
[0024] In accordance with embodiments of the present invention and to enable Modern Standby configurations to be applied on a per-application basis, system 100 can include a driver 201 (which may be a kernel-mode component on some operating systems), a host service 202 (which may be a user-mode component on some operating systems), a container service 203 for any container that may be created on system 100 and an embedded controller (EC) service 204 that runs on an embedded controller 140 or other component that interfaces with sensors 150 of system 100. Sensors 150 can represent a component that reports a battery's remaining capacity, a component that reports the existence or status of a network connection, a component that reports location information (e.g., geofence information), or any other component that may provide information relevant to determining which Modern Standby configuration should be applied to an application.
[0025] In some embodiments, container service 203 can be a background service that is bundled and deployed with any application and its binaries/libraries that are deployed in a container (i.e., an instance of container service 203 may run in any container created on system 100). Although
[0026] In some embodiments, driver 201, host service 202 and container service 203 may be configured to perform the functionality described in U.S. patent application Ser. No. 17/195,383 for the similarly labeled components to thereby enable Modern Standby for containerized applications. However, embodiments of the present invention could be implemented without using the techniques of U.S. patent application Ser. No. 17/195,383. For example, embodiments of the present invention could be implemented to apply Modern Standby configurations on a per-application basis only to non-containerized applications.
[0027]
[0028]
[0029] Turning to
[0030] Turning to
[0031] In step 1c, host service 202 can retrieve policy 301 (or any applicable policy). For example, in some embodiments, agent 210 may be configured to retrieve policy 301 from management server 220 and store it in database 211. In such cases, host service 202 may retrieve policy 301 from agent 210 or directly from database 211. In some embodiments, agent 210 could receive policy 301 through local input. In some embodiments, agent 210 could receive policy 301 from a machine learning solution that dynamically generates policy 301's content using performance, usage or other information of system 100 that agent 210 may provide. In short, policy 301 could be generated and provided to host service 202 in many different ways.
[0032] Turning to
[0033] In
[0034]
[0035] Turning to
[0036] Turning to
[0037] Turning to
[0038] In the example depicted in
[0039] As a result of the above-described process, during Modern Standby, any application assigned to disconnected child job object 302a will be prevented from accessing the network when it is active even though the operating system is implementing MCS. Accordingly, when such applications are active during MCS, they will function as if MDS were implemented. Also, any application assigned to suspended child job object 302b will be prevented from being scheduled on the CPU during Modern Standby. Accordingly, such applications will be treated as if they were assigned to suspend job object 301. On the other hand, any application in throttle job object 302 that is not assigned to either disconnected child job object 302a or suspended child job object 302b will function in accordance with MCS which the operating system is implementing.
[0040] In some embodiments, host service 202 can be configured to detect when system 100 is transitioning out of Modern Standby and, in response, can delete disconnected child job object 302a and suspended child job object 302b to thereby remove the limitations on the applications associated with such objects. Also, in some embodiments, host service 202 may communicate with container service(s) 203 to cause it/them to remove the disconnected and/or suspended configurations for any containerized applications.
[0041] The process represented in
[0042] In some embodiments, host service 202 may be configured to adjust the Modern Standby configurations assigned to one or more applications while system 100 remains in Modern Standby. For example, EC service 204, which operates independent of the operating system, can provide sensor state information to host service 202 in response to a change in sensor state even when system 100 is in Modern Standby. As an example, if system 100 is in Modern Standby and the remaining battery charge crosses a threshold, a network disconnect or connect occurs, system 100 enters a new location, etc., EC service 204 can provide corresponding sensor state information to host service 202 (e.g., while host service 202 is active during Modern Standby). Host service 202 can then use the newly received sensor state information and the applicable policy to determine if any MS capable application should be moved to disconnected child job object 302a or suspended child job object 302b and can then make the appropriate updates.
[0043] As an example, if the remaining battery charge drops below a threshold, the applicable policy may dictate that additional Modern Standby capable applications should be assigned to suspended child job object 302b to preserve battery life. As another example, if the remaining battery charge increases above a threshold (e.g., when system 100 is plugged in and charging during Modern Standby), the applicable policy may dictate that no limitations should be placed on Modern Standby capable applications that were previously assigned to disconnected child job object 302a or suspended child job object 302b. In this way, host service 202 can leverage EC service 205 to dynamically adjust the per-application Modern Standby configurations while system 100 remains in Modern Standby.
[0044] The description above has used a number of Windows-based examples. However, the described functionality can also be implemented in other operating system environments. For example, on a system running a version of Unix or Linux, host service 202 could leverage sessions or cgroups as opposed to job objects to implement the described functionality. Therefore, for purposes of the claims, the term “job object” can include Windows job objects and the similar structures/functionality (e.g., sessions or cgroups) that other operating systems provide.
[0045] Embodiments of the present invention may comprise or utilize special purpose or general-purpose computers including computer hardware, such as, for example, one or more processors and system memory. Embodiments within the scope of the present invention also include physical and other computer-readable media for carrying or storing computer-executable instructions and/or data structures. Such computer-readable media can be any available media that can be accessed by a general purpose or special purpose computer system.
[0046] Computer-readable media are categorized into two disjoint categories: computer storage media and transmission media. Computer storage media (devices) include RAM, ROM, EEPROM, CD-ROM, solid state drives (“SSDs”) (e.g., based on RAM), Flash memory, phase-change memory (“PCM”), other types of memory, other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other similar storage medium which can be used to store desired program code means in the form of computer-executable instructions or data structures and which can be accessed by a general purpose or special purpose computer. Transmission media include signals and carrier waves. Because computer storage media and transmission media are disjoint categories, computer storage media does not include signals or carrier waves.
[0047] Computer-executable instructions comprise, for example, instructions and data which, when executed by a processor, cause a general-purpose computer, special purpose computer, or special purpose processing device to perform a certain function or group of functions. The computer executable instructions may be, for example, binaries, intermediate format instructions such as assembly language or P-Code, or even source code.
[0048] Those skilled in the art will appreciate that the invention may be practiced in network computing environments with many types of computer system configurations, including, personal computers, desktop computers, laptop computers, message processors, hand-held devices, multi-processor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile telephones, PDAs, tablets, smart watches, pagers, routers, switches, and the like.
[0049] The invention may also be practiced in distributed system environments where local and remote computer systems, which are linked (either by hardwired data links, wireless data links, or by a combination of hardwired and wireless data links) through a network, both perform tasks. In a distributed system environment, program modules may be located in both local and remote memory storage devices. An example of a distributed system environment is a cloud of networked servers or server resources. Accordingly, the present invention can be hosted in a cloud environment.
[0050] The present invention may be embodied in other specific forms without departing from its spirit or essential characteristics. The described embodiments are to be considered in all respects only as illustrative and not restrictive. The scope of the invention is, therefore, indicated by the appended claims rather than by the foregoing description.