1. Field of the Invention
The present invention relates to volatile memory in a computer, and more particularly, to limiting volatile computer memory based on available energy of an auxiliary power source.
2. Description of the Related Art
As financial, scientific, medical, and other critical data are being integrated with computers and computer networks, reliability and availability of the data continues to be important. Loss of data may have severe negative consequences for these and other users of a computer system.
Backup systems reduce the possibility of data loss. Natural disasters such as fire, lightning, hurricanes, etc., and man made disasters such as civil unrest, computer hacker attacks, and terrorist attacks can also affect computer networks and increase the need for backup systems and for data to be stored remotely. Storing data at distances from a few miles to thousands of miles is often required to overcome many disaster scenarios.
Backup systems, however, are not the complete answer for prevention of lost data. This is because data that is stored in a computer's volatile memory can be lost if power is interrupted. Even portions of data that is stored in a volatile memory in just seconds can be devastating to loose for some users. When a power interruption occurs, data stored in volatile memory, such as a read cache or write cache, is lost unless steps are taken to prevent such data loss. In response to the problem of volatile memory loss, computer systems have been developed with batteries, uninterruptible power supplies, and other energy storage means to keep computer systems running long enough to transfer data that is temporarily in the volatile memory to the permanent non-volatile memory. Non-volatile memory can take the form of a hard disk, a tape, a flash memory, and other types of memory that maintains the contents in a retrievable form within the memory without an applied source of power.
Typically, when an auxiliary power source is provided in the form of a battery, the battery is designed to be of sufficient capacity to adequately power the computer while the steps required to shutdown a computer are performed. Typically, a primary step includes transferring the contents of the volatile memory to a non-volatile memory. If, however, the battery is not charged sufficiently to perform all of the steps necessary for a complete shutdown operation, data in the computer's volatile memory may be lost when a primary power source interruption occurs.
The current state of the art is to monitor the auxiliary power source batteries to ensure sufficient energy is present in the batteries to be able to fully save data stored in the allocated cache or volatile memory upon the loss of power supplied to the computer. If the available energy in an auxiliary power source is in danger of dropping below a level required to shut down the computer and save all of the data stored on the volatile memory, the computer will initiate a shutdown process to ensure that the data in the volatile computer memory is saved. However, while this process is effective, it is inefficient because there will be times when the computer will initiate the shutdown process during normal operations.
During a computer startup process, typically a computer's auxiliary power source is evaluated to determine whether enough energy exists to save data that will be stored in the volatile computer memory that is fully allocated for use during normal operation. The present state of the art is such that full allocation of volatile memory is set by a user and cannot be varied automatically based on available energy in the auxiliary power source.
If the computer determines that the auxiliary power source does not have enough energy to save the data stored in the fully allocated volatile computer memory, the computer startup process will be delayed for minutes or even hours while the auxiliary power source is charged to a level required to save the fully allocated volatile computer memory. In a critical application, a delay caused by waiting for the auxiliary power source to be charged is detrimental to the computer user since an application executing on the computer cannot be used.
What is needed is a process, apparatus, and system that limit allocated volatile computer memory based on available energy in an auxiliary power source. Beneficially, such a process, apparatus, and system would determine the available energy of the auxiliary power source and limit volatile computer memory allocated for use. In addition, during a computer startup process, the status of available energy in an auxiliary power source would be evaluated, and volatile computer memory would be limited such that the computer could be put into use earlier than if the startup process had to wait for the auxiliary power source to be charged to a level needed to store data for a fully allocated volatile computer memory. In other words, the computer would be allowed to operate at a reduced operation level that matches the amount of available battery power capable of saving the data in the volatile memory. As the battery power increases, the relative operational speed of the computer will gradually increase until reaching full operational levels.
The present invention has been developed in response to the present state of the art, and in particular, in response to the problems and needs in the art that have not yet been fully solved by currently available computer systems that do not allow allocation of volatile computer memory based on available energy in an auxiliary power source. Accordingly, the present invention has been developed to provide a process, apparatus, and system for limiting allocated volatile computer memory based on available energy in an auxiliary power source that overcome many or all of the above-discussed shortcomings in the art.
The apparatus for limiting allocated volatile computer memory based on available energy in an auxiliary power source is provided with a logic unit containing a plurality of modules configured to functionally execute the necessary steps to limit volatile computer memory based on an auxiliary power source energy level. These modules in the described embodiments include an energy monitor module configured to determine an amount of available energy in an auxiliary power source, a memory status module configured to determine an amount of volatile computer memory allocated for use in a computer, and a memory adjustment module configured to adjust the amount of volatile computer memory allocated for use in the computer based on the amount of available energy in the auxiliary power source.
In one embodiment, adjusting the amount of volatile computer memory allocated for use in the computer further comprises limiting the amount of volatile computer memory allocated for use by the computer to an amount of volatile computer memory that can be transferred to non-volatile computer memory during a computer shutdown using the amount of available energy in the auxiliary power source. In another embodiment, the apparatus includes a startup module configured to allow the computer to begin moving data normally when the memory adjustment module has limited volatile computer memory allocated for use by the computer to a minimum level and the energy monitor module has determined that the amount of available energy in the auxiliary power source has reached a minimum level capable of transferring the volatile computer memory allocated for use by the computer to non-volatile computer memory during a computer shutdown.
In a one embodiment, the auxiliary power source is an internal power storage device located within the computer. In yet another embodiment, the auxiliary power source is an external power storage device located external to the computer.
A system of the present invention is also presented for limiting volatile computer memory based on an auxiliary power source energy level The system may be embodied in a computer having an energy monitor module configured to determine an amount of available energy in an auxiliary power source. Also provided is a memory adjustment module configured to adjust the amount of volatile computer memory allocated for use in the computer based on the amount of available energy in the auxiliary power source. The system may include a memory status module configured to determine an amount of volatile computer memory allocated for use in a computer. Additionally, the system may include a startup module configured to allow the computer to begin moving data normally when the memory adjustment module has limited volatile computer memory allocated for use by the computer to a minimum level and the energy monitor module has determined that the amount of available energy in the auxiliary power source has reached a minimum level capable of transferring the volatile computer memory allocated for use by the computer to non-volatile computer memory during a computer shutdown.
One variation of the system may include a computer network connected to the computer and to other computer system components such as a file server, a workstation, a printer and other peripheral devices. In another embodiment, the system may include a storage area network (SAN) connecting memory storage devices such as an array of hard drives, tape storage, a storage area network controller, and the like.
A method of the present invention is also presented for limiting volatile computer memory based on the available energy of an auxiliary power source. The method in the disclosed embodiments substantially includes the steps necessary to carry out the functions presented above with respect to the operation of the described apparatus and system. In one embodiment, the method includes determining an amount of available energy in an auxiliary power source, determining an amount of volatile computer memory allocated for use in a computer, and adjusting the amount of volatile computer memory allocated for use in the computer based on the amount of available energy in the auxiliary power source.
Adjusting the amount of volatile computer memory allocated for use in the computer may include limiting the amount of volatile computer memory allocated for use by the computer to an amount of volatile computer memory that can be transferred to non-volatile computer memory during a computer shutdown using the amount of available energy the auxiliary power source. The method also may include allowing the computer to begin moving data normally after limiting volatile computer memory allocated for use by the computer to a minimum level and determining that the amount of available energy in the auxiliary power source has reached a minimum level capable of transferring the volatile computer memory allocated for use by the computer to non-volatile computer memory during a computer shutdown.
The methods presented may comprise computer readable storage medium including computer readable code configured to carry out the described method. These features and advantages of the present invention will become more fully apparent from the following description and appended claims, or may be learned by the practice of the invention as set forth hereinafter.
In order that the advantages of the invention will be readily understood, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments that are illustrated in the appended drawings. Understanding that these drawings depict only typical embodiments of the invention and are not therefore to be considered to be 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:
Many of the functional units described in this specification have been labeled as modules, in order to more particularly emphasize their implementation independence. For example, a module may be implemented as a hardware circuit comprising custom VLSI circuits or gate arrays, off-the-shelf semiconductors such as logic chips, transistors, or other discrete components. A module may also be implemented in programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices or the like.
Modules may also be implemented in software for execution by various types of processors. An identified module of executable code may, for instance, comprise one or more physical or logical blocks of computer instructions that may, for instance, be organized as an object, procedure, or function. Nevertheless, the executables of an identified module need not be physically located together, but may comprise disparate instructions stored in different locations which, when joined logically together, comprise the module and achieve the stated purpose for the module.
Indeed, a module of executable code could be a single instruction, or many instructions, and may even be distributed over several different code segments, among different programs, and across several memory devices. Similarly, operational data may be identified and illustrated herein within modules, and may be embodied in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed over different locations including over different storage devices, and may exist, at least partially, merely as electronic signals on a system or network.
In accordance with one embodiment of the present invention, the computer 14 includes several modules as described herein. An energy monitor module 28 is configured to determine an amount of available energy in an auxiliary power source. A memory status module 30 is configured to determine an amount of volatile computer memory allocated for use in a computer 14. A memory adjustment module 32 that is configured to adjust the amount of volatile computer memory allocated for use in the computer 14 based on the amount of available energy in the auxiliary power source.
In an alternate embodiment, the computer 14 may include both a startup module 34 and the energy monitor module 28. The startup module 34 may be configured to allow the computer to begin moving data normally after the memory adjustment module has limited volatile computer memory allocated for use by the computer to a minimum level and the energy monitor module 28 has determined that the amount of available energy in the auxiliary power source has reached a minimum level capable of transferring the volatile computer memory allocated for use by the computer to non-volatile computer memory during a computer shutdown. In one embodiment, the amount of volatile computer memory allocated for use in the computer 14 is limited to to an amount of volatile computer memory that can be transferred to non-volatile computer memory during a computer shutdown using the amount of available energy in the auxiliary power source.
In one embodiment, the auxiliary power source is an internal auxiliary power source 208 that resides in the computer 14. In another embodiment, the auxiliary power source is an external auxiliary power source 210 that resides outside the computer 14. The auxiliary power source may be a battery system or an uninterruptible power supply system or other source of energy storage. The auxiliary power source provides energy to the computer 14 when a primary power source is not present.
The storage area network controller (the computer 14) maybe connected to an array of host computers 302 through a computer network 304. The host computers 302 may be in one or more locations and may execute one or more applications that may store data on the storage area network. The computer 14 may also be connected to an array of permanent storage devices 306 through a storage area network 308. The array of permanent storage devices 306 may comprise hard disk storage devices, tape disk storage devices, or the like.
If the primary power source is present, the startup module 34 moves 406 data temporarily stored in the local non-volatile computer memory 206 during the last computer shutdown to permanent memory if necessary. If no data was moved from the volatile computer memory 204 to the non-volatile computer memory 206 during the previous computer shutdown, then this step 406 is not necessary.
The energy monitor module 28 then determines 408 an amount of available energy in the auxiliary power source. The memory status module 30 then may determine 410 if there is enough available energy from the auxiliary power source to begin computer 14 operations. In accordance with the present invention, the startup module 34 may reduce the allocation of volatile computer memory 204 at the computer 14 startup from the amount allocated during normal operation to a minimal level that allows the computer 14 to operate, but at non-optimal level.
The determination 410 of adequate energy in the auxiliary power source may be based on the amount of available energy adequate for moving the contents of the volatile computer memory 204 to the non-volatile computer memory 206, as well as other functions necessary for computer shutdown. If the auxiliary power source does not have enough available energy to begin operation of the computer 14, the computer 14 continues to increase the available energy in the auxiliary power source until there is enough available energy to commence operation of the computer 14.Once the energy monitor module 28 has determined 410 that there is sufficient available energy in the auxiliary power source to begin operation of the computer 14, the memory adjustment module 32 allocates 412 volatile computer memories 204 at a minimum level. The startup module 34 then allows 414 data to move normally in the computer 14, and the method 400 ends. The computer 14 may initially operate at a non-optimal level immediately after the startup process
If the available energy in the auxiliary power source has not increased, or if the upper limit of the allocation of volatile computer memory 204 has not been reached, the method 500 does not allocate additional volatile computer memory 204. The energy monitor module 28 then determines 512 whether the available energy in the auxiliary power source has decreased. If so, the memory status module 30 then determines 514 whether a lower limit of allocation of volatile computer memory 204 has been reached. If not, the memory adjustment module 32 reduces 516 the allocation of volatile computer memory 204 and the computer 14 moves data affected by the reduction in volatile computer memory 204 to non-volatile memory 204 or, alternatively, to a permanent memory, and the method 500 ends 518. If the energy monitor module 28 determines 512 that available power in the auxiliary power source has not decreased, and if the memory status module 30 determines 514 that a lower limit for allocation of volatile computer memory 204 has not been reached, the method 500 ends 518 without decreasing allocated volatile computer memory 516. The method 500 repeats as long as the computer 14 is operating.
If the auxiliary power source is in use, the computer 14 stops 608 all normal data movement. The computer 14 then moves 610 data from the volatile computer memory 204 to the non-volatile computer memory 206 and then turns 612 off the auxiliary power source, and the method 600 ends 614.
The method 700 starts 702, and the computer 14 moves 704 data normally. The computer 14 determines 706 whether the auxiliary power source is in use. Again, typically, if the auxiliary power source is in use, a primary power source is not in use. If the auxiliary power source is not in use, the computer 14 continues to move 704 data normally.
If the auxiliary power source is in use, the energy monitor module 28 determines 708 whether the auxiliary power source has reached a minimum energy level. If not, the computer 14 continues to move 704 data normally. During normal operation of the computer 14, the method 500 depicted in
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. All changes which come within the meaning and range of equivalency of the claims are to be embraced within their scope.