Providing a dynamic random access memory cache as a second type of memory for each application process

By using DRAM as a cache for each application process and dynamically adjusting its size based on performance needs, the memory access inefficiencies in computing systems are addressed, optimizing speed and capacity across different memory types.

JP2024539867AActive Publication Date: 2024-10-31INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024522058
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-10-26
Filing Date
2022-10-24
Publication Date
2024-10-31
Estimated Expiration
2042-10-24

AI Technical Summary

Technical Problem

The increasing disparity in performance rates between processors and memory in computing systems leads to inefficiencies in memory access times, particularly when using slower, larger, or cheaper memory types, which are not effectively addressed by existing systems that combine storage class memory with DRAM.

Method used

Implementing a region of DRAM as a cache for each application process, dynamically allocating and adjusting the size of this cache based on performance requirements, using a combination of DRAM and slower, larger memory types like SCM or NVM flash, to optimize memory access.

Benefits of technology

This approach enhances memory performance by providing faster access and capacity while balancing the speed and cost of different memory types, improving overall system efficiency and responsiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024539867000001_ABST
    Figure 2024539867000001_ABST
Patent Text Reader

Abstract

In the computing system, a first type of memory and a second type of memory may be identified. The second type of memory has a larger storage capacity compared to the first type of memory, but is slower than the first type of memory. Application processes running within the computing system may be identified. A region of the first type of memory may be provided as a cache of the second type of memory for the application process.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates generally to computing systems, and more particularly to various embodiments for providing dynamic random access memory (DRAM) as a cache for a second type of memory for each application process that uses one or more computing processors. [Background technology]

[0002] In modern society, computer systems have become commonplace. Computer systems can be found in the workplace, at home, at school, etc. Computer systems may include data storage systems and disk storage systems for processing and storing data. In recent years, both software and hardware technologies have made remarkable advances. New technologies have added more functions and provided greater convenience in the use of these computer systems. Currently, the amount of information to be processed has increased greatly. Therefore, processing, storing, or retrieving various information, or a combination of these, has become an important problem to be solved. Summary of the Invention

[0003] Various embodiments are illustrated for providing a first type of memory to a computing system by a processor as a second type of memory. An application process running within the computing system may be identified. A region of the first type of memory may be provided as a cache of the second type of memory for the application process.

[0004] So that the advantages of the present invention may be readily understood, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments which are illustrated in the accompanying drawings, the invention being described and explained with additional specificity and detail through the use of the accompanying drawings, the drawings being understood to depict only typical embodiments of the invention and therefore not to be considered as limiting its scope, and in which: [Brief description of the drawings]

[0005] [Figure 1] 1 is a block diagram illustrating an exemplary cloud computing node according to an embodiment of the present invention. [Diagram 2] FIG. 2 is an additional block diagram illustrating an exemplary cloud computing environment in accordance with an embodiment of the present invention. [Diagram 3] FIG. 2 is an additional block diagram illustrating abstraction model layers according to an embodiment of the present invention. [Figure 4] 1 is an additional block diagram illustrating exemplary functional relationships between various aspects of the present invention. [Diagram 5] FIG. 11 is an additional block diagram illustrating operations for providing DRAM as a cache of a second type of memory per application process in which aspects of the present invention may be implemented. [Figure 6] 1 is a flow chart diagram illustrating an exemplary method for providing a region of a first type of memory as a cache of a second type of memory on a per application process basis in accordance with an aspect of the invention. [Figure 7] FIG. 1 is a flow chart diagram illustrating an exemplary method for providing a region of DRAM for use as a cache of a second type of memory per application process in a computing system in which aspects of the present invention may be implemented. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0006] A computing environment may include a main storage (sometimes referred to as "main memory") and a secondary storage. The main storage may be considered to be a faster access storage compared to the secondary storage, e.g., storage class memory. Furthermore, addressing of the main storage may be considered to be simpler than addressing of storage class memory. Storage class memory, an external storage space outside of classical main storage, offers faster access and persistence than direct access storage devices. Storage class memory may be implemented as a group of solid-state devices connected to the computing system through multiple input / output (input / output) adapters, which are used to map the technology of the input / output devices to the memory bus of the central processing unit.

[0007] Additionally, memory devices are used in a variety of applications, including computer systems. Computer systems and other electronic devices that include a microprocessor or similar device typically include a system memory, which is typically implemented using DRAM.

[0008] Additionally, processor performance and memory performance are increasing at different rates. As processor performance and memory capacity increase, more virtual machines and virtual containers are created. Some memory mechanisms have slow access times, and therefore the memory capacity of a computing system is often balanced between fast-access volatile memory and slow-access persistent storage. Some existing systems use storage-class or persistent memory in combination with DRAM. Some systems with storage-class memory and various speeds of DRAM use memory buffers that correspond to the various speeds of DRAM to overcome the slow speed of the included DRAM. Some systems use local and remote DRAM communicatively connected to different processors, sometimes referred to as "memory inception".

[0009] With this type of system implemented in this way, it is desirable to use an area of ​​a first type of memory (e.g., DRAM) as a cache for a second type of memory for each application process. The second type of memory may be slower, larger, or cheaper DRAM, or a combination thereof. The second type of memory may also be other types of memory, such as, for example, non-volatile memory (NVM) flash, phase change material (PCM), or other emerging memories. In one aspect, the emerging memories are larger, but generally slower (latency, bandwidth) than DRAM. Thus, in the present invention, an area of ​​DRAM is used as a cache for a second type of memory for each application process.

[0010] In some implementations, a first type of memory and a second type of memory may be identified in a computing system. The second type of memory has a larger storage capacity compared to the first type of memory, while being slower than the first type of memory. A plurality of application processes may be identified running in the computing system. A private region of the first type of memory may be provided by the processor to each one of the application processes as a cache of the second type of memory. One of the private regions of the first type of memory may be dynamically made available or unavailable to each one of the plurality of application processes by the processor when the respective one of the plurality of application processes becomes active or inactive. A size of one of the private regions in the first type of memory may be changed for each one of the plurality of application processes in response to one or more performance requirements for the respective one of the plurality of application processes.

[0011] In another embodiment, the invention provides a region of a first type of memory (e.g., DRAM) that can be configured as a cache for SCM (storage class memory; the second type of memory assuming that the system DRAM and the second type of memory are on separate memory channels (e.g., Open Coherent Accelerator Processor Interface "OCAPI") and / or memory buffers attached to both the DRAM and the SCM). In one aspect, the DRAM cache for the SCM may operate at a similar cost and capacity as the second type of memory (e.g., a 4 terabyte "TB" DRAM cache backed by 32 TB of SCM (with latency and bandwidth approaching that of 32 TB of DRAM on average)).

[0012] Although this disclosure includes detailed descriptions of cloud computing, implementation of the teachings described herein is not limited to a cloud computing environment. Rather, embodiments of the invention may be practiced in conjunction with any other type of computing environment now known or developed in the future.

[0013] Cloud computing is a service delivery model for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal administrative effort or interaction with a service provider. The cloud model may include at least five characteristics, at least three service models, and at least four implementation models.

[0014] The characteristics are as follows:

[0015] On-Demand Self-Service: Cloud consumers can unilaterally provision computing capacity, such as server time or network storage, automatically as needed, without the need for human interaction with the service provider.

[0016] Broad network access: Computing power is available over the network and can be accessed through standard mechanisms, facilitating use by heterogeneous thin- and thick-client platforms (e.g., mobile phones, laptops, personal digital assistants (PDAs)).

[0017] Resource Pooling: Computing resources from a provider are pooled and offered to multiple consumers using a multi-tenant model. Different physical and virtual resources are dynamically allocated and reallocated depending on demand. Consumers generally have no control or knowledge of the exact location of the resources provided to them, so there is a sense of location independence, although consumers may be able to determine location at a higher level of abstraction (e.g. country, state, data center).

[0018] Rapid elasticity: Computing capacity can be provisioned quickly and elastically, in some cases automatically, to scale out immediately and to be released quickly to scale in immediately. To the consumer, the computing capacity available for provisioning often appears unlimited and can be purchased at any time and in any quantity.

[0019] Metered Services: Cloud systems leverage metering capabilities at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, active user accounts) to automatically control and optimize resource usage. Resource usage can be monitored, controlled, and reported to provide transparency to both providers and consumers of the services utilized.

[0020] The service model is as follows:

[0021] Software as a Service (SaaS): The functionality offered to the consumer is the availability of a provider's applications running on a cloud infrastructure that can be accessed from a variety of client devices through a thin-client interface such as a web browser (e.g., webmail). The consumer does not manage or control the underlying cloud infrastructure, including the network, servers, operating systems, storage, or even the individual application functions, except for limited user-specific application configuration settings.

[0022] Platform as a Service (PaaS): The capability offered to the consumer is to deploy applications that the consumer creates or acquires using programming languages ​​and tools supported by the provider onto a cloud infrastructure. The consumer does not manage or control the underlying cloud infrastructure, including networks, servers, operating systems, or storage, but does have control over the deployed applications and, in some cases, the configuration of the hosting environment.

[0023] Infrastructure as a Service (IaaS): The functionality offered to the consumer is the provision of processors, storage, networking, and other basic computing resources onto which the consumer can deploy and run any software, which may include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure, but has control over the operating systems, storage, and deployed applications, and may have partial control over some network components (e.g., host firewalls).

[0024] The deployment model is as follows:

[0025] Private Cloud: The cloud infrastructure is dedicated to a specific organization. It can be managed by that organization or a third party and can exist on-premise or off-premise.

[0026] Community Cloud: The cloud infrastructure is shared by multiple organizations to support a specific community with common concerns (e.g., mission, security requirements, policies, and compliance). The cloud infrastructure can be managed by the organizations or a third party and can exist on-premise or off-premise.

[0027] Public cloud: The cloud infrastructure is available to the general public or large industry organizations and is owned by an organization that sells cloud services.

[0028] Hybrid Cloud: This cloud infrastructure combines two or more cloud models (private, community or public), each of which retains its inherent semantics but is bound together by standards or specific technologies that enable data and application portability (e.g. cloud bursting for load balancing between clouds).

[0029] A cloud computing environment is a service-oriented type environment with emphasis on statelessness, low coupling, modularity and semantic interoperability. At the core of cloud computing is an infrastructure that includes a network of interconnected nodes.

[0030] An example cloud computing node is illustrated diagrammatically in Figure 1. It should be noted that cloud computing node 10 is merely one example of a suitable cloud computing node and is not intended to suggest any limitation as to the scope of use or functionality of the embodiments of the present disclosure described herein. In any event, cloud computing node 10 may be implemented and / or perform any of the functions described above.

[0031] Cloud computing node 10 includes computer system / server 12, which is operable with numerous other general purpose or special purpose computing system environments or configurations. Some well-known computing systems, environments or configurations, or combinations thereof, suitable for use with computer system / server 12 include personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed type cloud computing environments that include any of the above systems or devices.

[0032] The computer system / server 12 can be described in the general context of computer system executable instructions, such as program modules, executed by a computer system. Generally, program modules can include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular data types. The computer system / server 12 can be implemented in a distributed type cloud computing environment where tasks are performed by remote processing devices linked through a communications network. In a distributed type cloud computing environment, program modules can be stored in both local and remote computer system storage media, including memory storage devices.

[0033] 1, computer system / server 12 in cloud computing node 10 is depicted as a general-purpose computing device. Examples of components of computer system / server 12 include one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components including system memory 28 to processor 16.

[0034] Bus 18 represents any one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an Accelerated Graphics Port (AGP), and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include an Industry Standard Architecture (ISA) bus, a MicroChannel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0035] Computer system / server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system / server 12 and can include both volatile and nonvolatile media, removable and non-removable media.

[0036] The system memory 28 may include a computer system readable medium as a volatile memory, such as a RAM 30 or a cache memory 32, or both. The computer system / server 12 may further include other removable / non-removable and volatile / non-volatile computer system readable media. As an example, the storage system 34 may be provided for reading and writing to a non-removable non-volatile magnetic medium (not shown, commonly referred to as a "hard drive"). Although not shown, a magnetic disk drive for reading and writing to a removable non-volatile magnetic disk (e.g., a floppy disk) and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these examples, each may be connected to the bus 18 by one or more data media interfaces. As further shown and described below, the system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of an embodiment of the present invention.

[0037] As an example, a program / utility 40 having a set (at least one) of program modules 42 can be stored in memory 28, as can an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data, or some combination thereof, can include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of embodiments of the invention described herein.

[0038] The computer system / server 12 may also communicate with one or more external devices 14, such as a keyboard, a pointing device, a display 24, one or more devices that allow a user to interact with the computer system / server 12, or any device that allows the computer system / server 12 to communicate with one or more other computer devices (e.g., a network card, a modem, etc.), or a combination thereof. Such communication may occur via an input / output (input / output) interface 22. The computer system / server 12 may also communicate with one or more networks, such as a local area network (LAN), a general-purpose wide area network (WAN), or a public network (e.g., the Internet), or a combination thereof, via a network adapter 20. As shown, the network adapter 20 may communicate with other components of the computer system 12 via a bus 18. It should be noted that other hardware and / or software components, not shown, may be used with the computer system 12, such as, for example, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data archive storage systems, etc.

[0039] Referring to FIG. 2, an exemplary cloud computing environment 50 is shown. As shown, the cloud computing environment 50 includes one or more cloud computing nodes 10, to which local computing devices used by cloud consumers (e.g., personal digital assistants (PDAs) or mobile phones 54A, desktop computers 54B, laptop computers 54C, or automobile computer systems 54N, or combinations thereof) can communicate. The nodes 10 can communicate with each other. The nodes 10 can be physically or virtually grouped (not shown) in one or more networks, such as, for example, a private, community, public, or hybrid cloud, or combinations thereof, as described above. This allows the cloud computing environment 50 to provide infrastructure, platform, or software, or combinations thereof, as a service, for which the cloud consumer does not need to maintain resources on the local computing device. It should be understood that the types of computing devices 54A-N shown in FIG. 2 are merely exemplary, and that the computing nodes 10 and the cloud computing environment 50 can communicate with any type of electronic device over any type of network or network addressable connection (e.g., using a web browser), or both.

[0040] Referring to Figure 3, a set of functional abstraction layers provided by cloud computing environment 50 (Figure 2) is shown. It should be understood in advance that the components, layers and functions shown in Figure 3 are merely exemplary and embodiments of the present invention are not limited thereto. As shown, the following layers and corresponding functions are provided:

[0041] The device layer 55 includes physical and / or virtual devices, either embedded or standalone with electronics, sensors, actuators, and other objects to perform various tasks in the cloud computing environment 50. Each device in the device layer 55 incorporates networking capabilities to other functional abstraction layers such that information obtained from the device may be provided thereto and / or information from other abstraction layers may be provided to the device. In one embodiment, the various devices that comprise the device layer 55 may incorporate a network of entities collectively known as the "Internet of Things" (IoT). Such a network of entities allows for communication with each other, collection, and dissemination of data to accomplish a wide variety of purposes, as will be appreciated by those skilled in the art.

[0042] The device layer 55 as shown includes sensors 52, actuators 53, a "learning" thermostat 56 integrating processing, sensor, and networking electronics, a camera 57, a controllable household outlet / socket 58, and a controllable electric switch 59. Other possible devices include, but are not limited to, various additional sensor devices, networking devices, electronic devices (such as remote control devices), additional actuator devices, so-called "smart" appliances such as refrigerators and washers / dryers, and a wide variety of other possible interconnected objects.

[0043] Hardware and software layer 60 includes hardware and software components. Examples of hardware components include mainframe 61, reduced instruction set computer (RISC) architecture based servers 62, servers 63, blade servers 64, storage devices 65, and networks and network components 66. In some embodiments, software components include network application server software 67 and database software 68.

[0044] The virtualization layer 70 provides an abstraction layer from which the following virtual entities can be provided, for example: virtual servers 71, virtual storage 72, virtual networks including virtual private networks 73, virtual applications and operating systems 74, and virtual clients 75.

[0045] By way of example, the management layer 80 may provide the following functions: Resource provisioning 81 allows dynamic procurement of computing and other resources utilized to execute tasks within the cloud computing environment. Metering and pricing 82 allows cost tracking as resources are utilized within the cloud computing environment and billing or invoicing for the consumption of these resources. By way of example, these resources may include application software licenses. Security allows for identification and verification of cloud consumers and tasks as well as protection for data and other resources. User portal 83 provides consumers and system administrators with access to the cloud computing environment. Service level management 84 allows for allocation and management of cloud computing resources such that requested service levels are met. Service level agreement (SLA) planning and fulfillment 85 allows for pre-arranging and procurement of anticipated future needs for cloud computing resources according to SLAs.

[0046] The workload layer 90 provides examples of functionality available to a cloud computing environment. Examples of workloads and functionality that can be provided from this layer include mapping and navigation 91, software development and lifecycle management 92, delivery of virtual classroom instruction 93, data analytics processing 94, transaction processing 95, and workloads and functionality for providing a region of a first type of memory as a cache of a second type of memory per application process in the computing environment 96. Additionally, the workloads and functionality for providing a region of a first type of memory as a cache of a second type of memory per application process in the computing environment 96 may include operations such as data analysis (including data collection and processing from various environmental sensors) and / or analytics operations. Those skilled in the art will appreciate that the workloads and functionality for providing a region of a first type of memory as a cache of a second type of memory per application process in the computing environment 96 may also operate in conjunction with other portions of various abstraction layers, such as those in the hardware and software 60, virtualization 70, management 80, and other workloads 90 (e.g., data analytics processing 94, etc.) to achieve various objectives of the illustrated embodiment of the present invention.

[0047] As previously mentioned, the present invention provides a novel solution for providing a region of a first type of memory as a cache of a second type of memory per application process in a computing environment. In operation, existing DRAM may be accessed and utilized. The region of the first type of memory may be configured as a cache per software process. A set of address ranges stored in the cache controller defines a region of the local first type of memory (e.g., local DRAM or "fast memory" or "low latency" memory) as a cache per process. In an additional implementation, another set of address ranges stored in the cache controller defines a region in the second type of memory (e.g., slow memory or high latency memory) as a region of the second type per process.

[0048] In operation, when an application process (e.g., a software process) becomes active, an operating system ("OS") enables the application process to execute / run on a processor core. Additionally, the OS may load each address range of the process into a cache controller. Thus, the size of the cache of the defined regions in the first type of memory and the second type of memory is specific to each software process and may be adjusted (e.g., increased or decreased based on performance and / or benefit from the cache) depending on the performance of the application based on the cached regions.

[0049] In this manner, the caches in the first type memory and the second type memory for each individual process are active for the duration of its activity (e.g., while the application process is active). When an active application process becomes inactive, its respective cache region address in the first type memory is erased from the cache controller. However, if the capacity of the first type memory is sufficient, the cache contents of the process may remain in the first type memory. When more than one application process is active, each cache region is private to the process and will not be replaced by the region contents of the other active processes.

[0050] In some implementations, a first type of memory and a second type of memory may be identified in a computing system. The second type of memory has a larger storage capacity compared to the first type of memory, while being slower than the first type of memory. A plurality of application processes may be identified running in the computing system. A private area of ​​the first type of memory may be provided by the processor to each one of the application processes as a cache of the second type of memory. One of the private areas in the first type of memory may be dynamically made available or unavailable to each one of the plurality of application processes when the respective one of the plurality of application processes becomes active or inactive. A size of one of the private areas in the first type of memory may be changed for each one of the plurality of application processes in response to one or more performance requirements for the respective one of the plurality of application processes.

[0051] Turning now to Figure 4, a block diagram illustrates example functional components of a system 400 for providing in a computing environment a region of a first type of memory as a cache of a second type of memory per application process in the computing environment, in accordance with various mechanisms of the illustrated embodiment. In one aspect, one or more of the components, modules, services, applications, or functions described in Figures 1-3, or combinations thereof, may be used in Figure 4. As can be seen, many of the functional blocks may be considered functional "modules" or "components" in the same descriptive sense as previously described in Figures 1-3.

[0052] As those skilled in the art will appreciate, the depiction of various functional units in system 400 is for illustrative purposes only, as the functional units may be located within or outside computer system / server 12 of FIG. 1 , or elsewhere within and / or among distributed computing components.

[0053] In one aspect, system 400 may provide virtualized computing services (i.e., virtualized computing, virtualized storage, virtualized networking, etc.). More specifically, system 400 may provide virtualized computing, virtualized storage, virtualized networking, and other virtualization services that run on a hardware board.

[0054] An orchestration service 410 (e.g., a dynamic scheduling agent) is shown incorporating a processing unit 420 ("processor") for performing various computations, data processing, and other functions in accordance with various aspects of the present invention. In one aspect, the processor 420 and memory 430 may be internal and / or external to the orchestration service 410 and may be internal and / or external to the computing system / server 12. The orchestration service 410 may be included in the computer system / server 12 or external to the computer system / server 12, as described in FIG. 1, or both. The processing unit 420 may be in communication with the memory 430. The orchestration service 410 may include a configuration component 440, a cache controller component 450, and a scope component 460.

[0055] In some implementations, the orchestration service 410 may use the configuration component 440, the cache controller component 450, the scope component 460, and the storage management component 470 to identify that an application process is running on a computing system and provide a region of a first type of memory as a cache of the second type of memory for the application process.

[0056] In other implementations, the orchestration service 410 may use the configuration component 440, the cache controller component 450, the scope component 460, and the storage management component 470 to identify a first type of memory and a second type of memory in the computing system. The orchestration service 410 may use the configuration component 440, the cache controller component 450, the scope component 460, and the storage management component 470 to identify a plurality of application processes executing in the computing system, and may provide, by a processor, a private region of the first type of memory as a cache of the second type of memory for each one of the plurality of application processes, and may dynamically enable or disable, by the processor, one of the private regions in the first type of memory for each one of the plurality of application processes when the each one of the plurality of application processes becomes active or inactive, and may dynamically change a size of one of the private regions in the first type of memory for each one of the plurality of application processes in response to one or more performance requirements for the each one of the plurality of application processes.

[0057] The configuration component 440 may define a first set of address ranges to be stored in ranges of registers in the cache controller to serve as a private region of a first type of memory for each application process. The configuration component 440 may define a second set of address ranges to be stored in ranges of registers in the cache controller to serve as a second private region of a second type of memory for the application process.

[0058] Configuration component 440, in conjunction with cache controller 450 and range component 460, may provide access to a private region of a first type of memory for an application process whose private region is configured as a cache of a second type of memory. Configuration component 440, in conjunction with cache controller 450 and range component 460, may provide access to a second private region in the second type of memory for an application process whose second private region is an additional cache of the second type of memory for the application process.

[0059] The cache controller 450 can coordinate access to a private region of the first type of memory and a second private region in the second type of memory on behalf of an application process by the cache controller.

[0060] The cache controller 450 may optionally employ the configuration component 440 to adjust the size of the private area of ​​the first type of memory, increasing or decreasing the size, based on the performance of the application process that uses the private area.

[0061] The cache controller component 450 may identify an application process as active if the active application process uses the first type of memory and the second type of memory. The cache controller component 450 may load and store a first set of address ranges of the ranges stored in the cache controller to serve as a private area of ​​the first type of memory for the active application process, and an alternate address range of the alternate ranges for each inactive application process is removed from the cache controller.

[0062] In one aspect, providing, for each application process, a private region of a first type of memory as a cache of a second type of memory includes identifying a cache line having a cache address in the first type of memory (e.g., a local DRAM). The cache line is compressed in the first type of memory to generate a compressed cache line and an open memory space in the cache line. A cache tag is generated in the open memory space, and a verification value for the compressed cache line is generated in the open memory space. A cache hit is determined for the cache line based on the cache address, the cache tag, and the verification value.

[0063] In some implementations, the cache line has a cache address in a first type of memory. The DRAM cache or local DRAM may be a first type of memory associated with or accessible to one or more processors of the computing system. In some embodiments, the local DRAM is a cache of non-uniform memory access (NUMA) DRAM, storage class memory (SCM), or a set of DRAMs having variable speeds. The NUMA DRAM, SCM, variable speed DRAM, backing storage, and second storage may be a second type of memory associated with or accessible to one or more processors of the computing system. In some embodiments, the DRAM cache is a cache of 1 terabyte or more. The backing storage, second storage, or other memory components may be 64 terabytes or more. In some examples, the local address space of one or more processors of the computer system is divided into a first region and a second region. The first type of memory (e.g., DRAM cache) may be mapped to the first region. The second type of memory (e.g., SCM or backing storage) may be mapped to the second region. The cache line may be compressed in the first type of memory. Compressing the cache line produces a compressed cache line.

[0064] In one aspect, the compression may be light compression. The light compression may compress the address information and cache line data of the cache line together in the local DRAM. In some embodiments, the compression of the cache line generated an open memory space in the local DRAM. The light compression of the cache line may create the open memory space as a 1 byte open space. In such a case, the cache line may be initially a 128 byte cache line and lightly compressed into a 127 byte compressed cache line. In some embodiments, the open memory space is contiguous with the compressed cache line in the local DRAM. The compressed or encoded cache line may pass transparently through a processor nest or other memory architecture that simplifies implementation of the present disclosure. In some embodiments, the cache line is a set of cache lines. The set of cache lines may be stored in a first type of memory. In such a case, to compress the set of cache lines, a compressibility of each cache line of the set of cache lines may be determined. The compression component may determine that a first subset of the cache lines of the set of cache lines are compressible. In such a case, the compression component 120 compresses each line of the first subset of cache lines in the local DRAM (e.g., a first region of the processor's local address space). Compressing each cache line of the first subset of cache lines may generate a set of compressed cache lines and a set of open memory spaces.

[0065] In some implementations, a second subset of the cache lines of the set of cache lines are not compressible. In such a case, an indication of the second subset of the cache lines may be passed to the cache controller component 450 to store the second subset of the cache lines in a backing memory, the backing memory being one of a remote DRAM, an SCM, or a memory inception. A cache tag may be generated in the open memory space of the compressed cache line. The tag may be a one-byte tag or may be a tag configured to be stored in the one-byte space freed by the compression of the cache line. Although described with respect to a specified size or amount of space, it should be understood that the tag may be of any suitable size sufficient to be stored in the open memory space. In some examples, the tag is a log2(SCMsize / DRAMsize) bit cache tag. In such a case, the logarithm is base 2. For example, for 1 terabyte of DRAM and 64 terabytes of SCM, the tag will be 6 bits since log2(64) is 6 bits. In embodiments where the compressed cache line is one of a set of compressed cache lines, a separate cache tag may be generated for each compressed cache line of the set of compressed cache lines. In some embodiments, metadata may be generated and stored next to the cache tags in the same open space created by compression. The metadata may include the physical address of the cache line in the remote memory. The metadata may also include security keys, replacement information, prefetch state, combinations thereof, or other information that enables retrieval of data associated with the cache line.

[0066] A validation value is generated in the open memory space of the compressed cache line. The validation value may be one bit. In some embodiments, the validation value indicates whether the cache line is held in the DRAM cache or in SCM or a backing memory. In embodiments in which the validation value is generated for a set of compressed cache lines, the validation value may be generated for each compressed cache line of the set of compressed cache lines. In some embodiments, the validation value generated for each compressed cache line of the set of compressed cache lines (e.g., a first subset of cache lines) may be a first validation value. The first validation value may indicate the presence of the compressed cache line and cache tag in local DRAM. In such cases, the validation value may be generated as one, a constant value, or any other suitable value.

[0067] In embodiments in which the second subset of cache lines are determined to be incompressible and therefore stored in the backing memory, a second validation value may be generated for each cache line of the second subset of cache lines. In some examples, while the incompressible second subset of cache lines is stored in the second region of the local address space, a validation value indicating that the cache line is invalid may be stored in the first region to indicate that the respective cache line is stored in the second region. The second validation value may be stored in the local DRAM. The second validation value may be generated as zero, a constant value different from the first validation value, or any other suitable value. A validation of zero value indicates that the local DRAM does not contain the cache line and that the line is stored in the backing memory.

[0068] In some embodiments, if the second subset of cache lines are determined to be non-compressible and stored in a backing memory (e.g., a second region of the processor's local address space), a fixed tag bit pattern or fixed data pattern may be generated in the first type of memory. A direct-mapped cache may be generated. The cache size may be increased to the extent of the capacity of the first type of memory. In some examples, the cache size may be increased to the extent of the capacity of the first type of memory to overcome a lack of associativity in the first type of memory cache.

[0069] In some embodiments, the cache may be known by an address generator and a cache controller / decoder south of L2. The cache controller component 450 may identify, access, retrieve, and respond to cache requests. The cache request may be a cache read or a cache write. The cache read operation may determine the presence of the cache or cache line. Determining the presence of the cache or cache line may determine whether a cache hit or miss occurs for the cache line. The cache write may compress the cache line and store a tag and a validation value in the free space created by compressing the cache line. If the sector cannot be compressed, the cache write operation may generate a validation value of zero in the free or open space and write the cache line to the next level of memory instead of the DRAM cache.

[0070] In some embodiments, the cache controller component 450 determines a cache hit for the cache line. The cache hit may be determined based on the cache address, the cache tag, and the validation value. Once a cache hit is determined, the cache controller component 450 may retrieve the cache line from the first type of memory.

[0071] In some embodiments, the cache controller component 450 determines a cache miss for the cache line. In such a case, the cache line may be stored in the backing memory based on the cache line being incompressible. The cache controller component 450 may determine a cache miss based on a second validation value set to zero in the local DRAM indicating that the cache line is stored in the backing memory and is not present in the first type of memory.

[0072] In some embodiments, the cache controller component 450 determines a cache miss for a cache line based on a fixed tag bit pattern or a fixed data pattern. If the pattern exists, the cache contents are deemed invalid, causing the cache controller component 450 to return a cache miss. When a cache miss occurs, the cache controller component 450 uses memory inception, which passes instructions through one or more processors to retrieve the cache line from a non-local DRAM, SCM, backing memory, or other memory component or module other than the local DRAM. In some embodiments, the cache controller component 450 accesses the SCM, backing memory, slower DRAM, or other memory component or module to retrieve the cache line that was the subject of the cache miss in the first type of memory. In such cases, the cache controller component 450 directly accesses the memory component or module through one or more processors communicatively coupled to the first type of memory.

[0073] The cache controller component 450 may perform the operations described above without a directory. Similarly, the operations of the system 400 may be performed without an on-chip or off-chip array. The cache controller component 450 may be a simple, hardware-efficient cache controller. The cache controller component 450 may use a portion of the local DRAM as a cache for the SCM and Inception cluster memory.

[0074] In some embodiments, if the remote memory, SCM, or backing memory is non-contiguous or page-based, the remote address of the data may be mapped to a cache address in the local DRAM cache. In such a case, the DRAM cache controller may access the DRAM cache, but other functions may be prevented from accessing the DRAM cache. For example, if a data set is mapped from the remote memory to an address CSSSSSS in a portion of the local DRAM, 0SSSSSS may be the SCM backing storage mapped from the remote address to a thread of page table entry (PTE), and 1000000 is in the DRAM cache. The information in the DRAM cache may not be mapped to the thread of the PTE remote address. The processor's cache coherence logic may operate on addresses in the 0SSSSSS format while the address of 1000000 is not cached. Reads and pushes to 1000000 may be directed to the remote memory. In some examples, the DRAM cache may have a cache line installed from a function or component from an L3 cache write. Both the DRAM cache and the backing storage may be updated with the cache line. In return, the DRAM cache controller, in cooperation with one or more components of the cache system, compresses and pushes the cache line to an address (e.g., 1000000) with a cache tag (e.g., Tag=SSSSSS). The raw cache line may be pushed to an address (e.g., 0SSSSS) in the backing storage 10 / 30 page of P202100205US01. If the line originally came from the DRAM cache, the cache line may be compressed and pushed to an address with a cache tag that has a bit that is not set by the L3 cache write. If the line originally came from the DRAM cache, this bit may be designated in L2 and set to 1.If the line does not come from the DRAM cache, the bit may be reset to zero. In the event of conflicting cache writes, the last cache write may win or overwrite the previous cache write.

[0075] In some examples, the cache controller component 450 (which may function as a search component) responds to the cache read request by attempting to read the cache line. If the cache controller component 450 finds a cache miss, the cache controller component 450 may issue a read to the backing storage, 0SSSSSS. If it is readable and there is no intervention, the cache controller component 450 may assign 1000000 to the remote address and read the cache line from the DRAM cache. The cache controller component 450 may initiate the cache read from the DRAM cache early to reduce latency. If intervention or a cache miss occurs while attempting to read from the DRAM cache, the data may be discarded. The cache controller component 450 may inspect the tag of the returned cache line upon reading from the DRAM cache. If the tag is the appropriate cache tag and the validation value is deemed valid, the cache controller component 450 determines a cache hit and decompresses the cache line. The cache line is then forwarded to the processor's load store unit (LSU) for placement in the L2 cache. If the cache tag or validation value is not deemed valid, the cache controller component 450 determines a cache miss. The cache controller component 450 may read the cache line from the SCM or the backing memory.

[0076] For further explanation, Figure 5 is an additional block diagram illustrating operations for providing dynamic random access memory ("DRAM") as a cache of a second type of memory per application process in which aspects of the present invention may be implemented. In one aspect, one or more of the components, modules, services, applications, or functions, or combinations thereof, described in Figures 1-4 may be used in Figure 5. Repeated descriptions of similar elements, components, modules, services, applications, or functions, or combinations thereof employed in other embodiments described herein are omitted for brevity.

[0077] As shown, a processor 510 (e.g., a processor device / chip) can include a cache controller 512. The processor 510 communicates with a first type of memory 520 (e.g., DRAM) and a second type of memory 530. The second type of memory 530 may be slow DRAM, SCM, NVM flash, PCM, and other emerging memories. In one aspect, the second type of memory is larger but slower (latency, bandwidth) than the first type of memory 520 (e.g., DRAM). The majority of data is stored in the second type of memory 530. In one aspect, cache hits go to the first type of memory 520 and cache misses go to the second type of memory 530.

[0078] The processor 510 may also include a cache controller 512 having one or more range registers, e.g., range registers 514A, 514B. The first type of memory 520 may include one or more regions in the first type of memory 520 that configure a cache of a second type of memory for an application process, e.g., region 522 for application process A and region 524 for process B. That is, region 522 is a first set of address ranges stored in a range of a register, e.g., range register 514A (e.g., range register 1), in the cache controller 512 to serve as region 522 of the first type of memory 520 for application process A. And region 524 is another set of address ranges stored in a range of a register, e.g., range register 514A (e.g., range register 1), in the cache controller 512 to serve as region 524 of the first type of memory 520 for application process B. In this manner, each "range" of the first type of memory 520 configured as a cache of a second type of memory is per application process.

[0079] The cache controller 512 may also include one or more alternative sets of address ranges stored in a range register, such as range register 514B (e.g., range register 2), and may serve as memory regions of the second type of memory 530 for application processes, such as application process A and application process B (e.g., region 532 for application process A and region 536 for application process B).

[0080] In operation, consider the following operations: Assume that application process A becomes active. When application process A becomes active, region 522 is defined and configured for application process A. Region 522 is a first set of address ranges stored in a range of registers, such as range register 514A (e.g., range register 1), in cache controller 512 to serve as region 522 of first type of memory 520 for the application process. The location (e.g., set of address ranges) of region 522 of first type of memory 520 is stored in cache controller 512.

[0081] The cache controller 512 may also allocate a second type of memory 530 for an application process, such as, for example, application process A. The allocation may include, for example, storing a location (e.g., a set of address ranges) of the second type of memory 530 in the cache controller 512, such as in a range register 514B (e.g., range register 2), to serve as a memory region (e.g., region 532 for application process A).

[0082] During execution, application process A may perform load and store data operations, which will primarily load and store data in region 522 of first type memory 520. However, if a cache miss occurs for region 522 of first type memory 520, cache controller 512 uses range register 514B (e.g., range register 2) to serve as a memory region (e.g., application process A's region 532) to indicate that the data is stored in second type memory 530. Cache controller 512 enables application process A to load or store data from a region allocated for application process A, such as memory region 532.

[0083] It should be noted that while application process A is active, application B is inactive. Thus, cache controller 512 may remove the address range of memory range 524 of inactive application process B from cache controller 512, but the address range of memory range 536 is preserved in second type of memory 530. When application process B becomes active, the address range of memory range 524 is reloaded and stored in cache controller 512.

[0084] 6, a method 600 is depicted for a portion of a first type of memory to act as a cache for a second type of memory in a computing environment, in which various aspects of the illustrated embodiment may be implemented. The functionality 600 may be implemented as a method executed as instructions on a machine, the instructions being contained on at least one computer-readable medium or non-transitory machine-readable storage medium. The functionality 600 may begin at block 602.

[0085] An application process may be identified as executing on the computing system, as in block 604. For example, the application process may begin executing on a processor core. Such activity may trigger the processor core to send a signal to a cache controller indicating that the application process is active. As in block 606, a region of the first type of memory may be provided as a cache of the second type of memory for the application process. The region may be configured to function as a cache similar to the cache of the second type of memory. The functionality 600 may end at block 610.

[0086] 6, or both, the operations of method 600 may include each of the following: The operations of functionality 600 may define a first set of address ranges stored in ranges of registers in the cache controller to serve as a private region of a first type of memory for each application process. The operations of functionality 600 may define a second set of address ranges stored in ranges of registers in the cache controller to serve as a second private region of a second type of memory for the application process.

[0087] Operation of the functionality 600 may provide access to a private area of ​​a first type of memory for an application process, where the private area is configured as a cache of the second type of memory. Operation of the functionality 600 may provide access to a second private area in the second type of memory for the application process, where the second private area is an additional cache of the second type of memory for the application process.

[0088] The operation of the functionality 600 may coordinate access by the cache controller to the private area of ​​the first type of memory for the application process and the second private area in the second type of memory. The operation of the functionality 600 may adjust the size of the private area of ​​the first type of memory based on the performance of the application process using the private area, increasing or decreasing the size. The operation of the functionality 600 may identify that an application process is active if the active application process uses the first type of memory and the second type of memory. The operation of the functionality 600 may load and store a first set of address ranges of the ranges stored in the cache controller to function as the private area of ​​the first type of memory for the active application process, where the alternate address ranges of the alternate ranges for each inactive application process are removed from the cache controller and saved in the first type of memory.

[0089] The operations of the functionality 600 may partition the cache line into a set of quadword sectors to provide a region of the first type of memory as a cache of the second type of memory (e.g., a private region in the first type of memory executes / functions as a cache of the second type of memory) for each application process. In some embodiments, the cache line is a 128-byte cache line. The operations of the functionality 600 may treat the cache line as four 32-byte quadword sized sectors and partition the cache line to reflect the quadword sized sectors. In some implementations, the operations of the functionality 600 partition the cache line into octoword sectors using the processor bus unit for data transfers. The octoword sector may include a critical octoword.

[0090] The operations of functionality 600 may sequentially or contiguously arrange a set of quadword sectors or octoword sectors in a first type of memory to provide a region of the first type of memory as a cache of a second type of memory for each application process. In some implementations, cache lines, quadword sectors, or octoword sectors may be mapped from contiguous or non-contiguous locations in the second type of memory (e.g., remote memory, SCM, or backing memory) to the cache of the first type of memory. Addresses of the second type of memory may be mapped to cache addresses using any suitable operations. For example, addresses of the second type of memory are mapped to cache addresses as expressed by CacheAddr=RemoteAddr modulo CacheSize.

[0091] In these examples, simple algebraic operations may be used to map addresses in a manner similar to direct-mapped cache operations. If the cache lines, quadwords, or octowords are non-contiguous or page-based, a mapping table may be used to convert linear or contiguous cache addresses into actual cache addresses.

[0092] The operations of the functionality 600 may compress each quad word sector of the set of quad word sectors to provide the region of the first type of memory as a cache of the second type of memory per application process. Compressing the set of quad word sectors produces a set of compressed quad word sectors. In some embodiments, the operations of the functionality 600 to provide the region of the first type of memory as a cache of the second type of memory per application process may lightly or trivially compress each quad word sector of a cache line to make open or free space available. For example, each quad word sector may be compressed sufficiently to create 6 bits of open space. The operations of the functionality 600 may compress each quad word sector as described above to provide the region of the first type of memory as a cache of the second type of memory per application process.

[0093] The operations of the functionality 600 may similarly compress each octoword sector in which a cache line is partitioned into octowords to provide the region of the first type of memory as a cache of the second type of memory for each application process. The operations of the functionality 600 may generate a cache tag for each compressed quadword of the set of compressed quadword sectors to provide the region of the first type of memory as a cache of the second type of memory for each application process. The cache tag may be a K-bit cache address tag. The operations of the functionality 600 may generate a validation value for each compressed quadword sector of the set of compressed quadword sectors to provide the region of the first type of memory as a cache of the second type of memory for each application process. When the validation value is generated, the cache tag may be a K-bit cache address tag plus a valid bit. For example, the cache tag is generated as a 6-bit tag with a valid bit.

[0094] The operations of the functionality 600 may similarly generate cache tags and verification values ​​for each octoword in which the cache line is partitioned into octoword sectors to provide the region of the first type of memory as a cache of the second type of memory for each application process. The operations of the functionality 600 may generate cache tags and verification values ​​for each compressed quadword in a manner similar or similar to that described above to provide the region of the first type of memory as a cache of the second type of memory for each application process. The operations of the functionality 600 may perform a cache write operation to provide the region of the first type of memory as a cache of the second type of memory for each application process. The cache write operation may compress each sector and may write the tag and verification value into the free or open space created by compressing the respective quadword sector. If one or more sectors cannot be compressed, the cache write operation writes a verification value of zero into the free or open space and writes the sectors of the cache line to the next level memory, such as SCM, instead of the DRAM cache.

[0095] The operation of the functionality 600 may respond to cache requests based on the set of compressed quad word sectors to provide a region of the first type of memory as a cache of the second type of memory for each application process. In some embodiments, the set of compressed quad words includes critical quad words. The cache requests may be responded to by determining a cache hit or a cache miss based on the critical quad words of the set of compressed quad word sectors to provide a region of the first type of memory as a cache of the second type of memory for each application process. A cache hit may occur when an address and tag match for a quad word, such as a critical quad word. Additionally, a cache hit may occur when the address and tag match and the state is determined to be valid based on the validation value. A cache miss occurs when the address and tag do not match or when the quad word is determined to be invalid. When a cache miss occurs, the cache line is read from a next level memory, such as SCM.

[0096] Operation of functionality 600 may similarly respond to cache requests based on critical octowords to provide a region of the first type of memory as a cache of the second type of memory for each application process. In some examples, octoword sectors of a cache line may be arbitrarily recorded in the DRAM cache.

[0097] The operations of functionality 600 may initially perform a cache read operation on a critical quad word to provide a region of a first type of memory as a cache of a second type of memory for each application process. The critical quad word is read from the cache of the first type of memory. If the validation value (e.g., valid bit) is equal to 1 or is otherwise determined to be valid and the tags match, the critical quad word is expanded and delivered to a cache controller.

[0098] Operation of functionality 600 may expand a critical quad word to provide a region of a first type of memory as a cache of a second type of memory for each application process, and then the remaining quad words in the cache line may be subsequently or sequentially expanded and each expanded quad word may be retrieved.

[0099] The operations of the functionality 600 may be performed in a manner similar or similar to that described above to provide a region of the first type of memory as a cache of the second type of memory per application process. The operations of the functionality 600 may identify, create, allocate, or generate addresses of the first region from addresses of the second region on a quadword sector by quadword sector basis to provide a region of the first type of memory as a cache of the second type of memory per application process. In response to a cache hit, a cache line may be read from the first region by unpacking a quadword sector of the set of quadword sectors associated with the cache hit, and the quadword sector may be delivered to one or more processors. In some examples, an address is generated for the first region from an address of the second region. In response to a cache miss, the cache line is read from the second region. The first region is a local address space of the processor mapped to a DRAM cache, and the second region is a local address space of the processor mapped to a second memory, such as SCM or a backing memory.

[0100] 7, a method 700 is depicted for a region of a first type of memory as a cache of a second type of memory in a computing environment, in which various aspects of the illustrated embodiment may be implemented. The functionality 700 may be implemented as a method executed as instructions on a machine, where the instructions are contained on at least one computer-readable medium or one non-transitory machine-readable storage medium. The functionality 700 may begin at block 702.

[0101] An application process may be identified as active in the computing system, as in block 704. A region of the first type of memory may be provided as a cache of the second type of memory for the application process, as in block 706. Access to a private region of the first type of memory may be provided for the application process, as in block 708. Access to a second private region in the second type of memory may be provided for the application process, as in block 710, the second private region being an additional cache of the second type of memory for the application process. Access to the private region of the first type of memory and the second private region in the second type of memory may be coordinated for the application process by a cache controller, as in block 712. The functionality 700 may end at block 714.

[0102] The present invention may be a system, a method, or a computer program product, or a combination thereof. The computer program product may include a computer readable storage medium having computer readable program instructions stored thereon for causing a processor to carry out aspects of the present invention.

[0103] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. The computer-readable storage medium may be, by way of example and not by way of limitation, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or a suitable combination thereof. More specific examples of computer-readable storage media include portable computer diskettes, hard disks, RAM, ROM, EPROM (or flash memory), SRAM, CD-ROM, DVD, memory sticks, floppy disks, punch cards or ridges in grooves or other mechanically encoded devices that have instructions recorded thereon, and suitable combinations thereof. As used herein, a computer-readable storage medium should not be construed as a transitory signal per se, such as an electric wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a wave guide or other transmission medium (e.g., a light pulse passing through a fiber optic cable), or an electric signal transmitted through a wire.

[0104] The computer readable program instructions described herein can be downloaded from the computer readable storage medium to each computing / processing device or to an external computer or storage device via a network (e.g., the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof). The network may be comprised of copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, or edge servers, or a combination thereof. A network adapter card or network interface of each computing / processing device receives the computer readable program instructions from the network and forwards the computer readable program instructions for storage in the computer readable storage medium within the respective computing / processing device.

[0105] The computer readable program instructions for carrying out the operations of the present invention may be either source code or object code written in any combination of one or more programming languages, including assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for integrated circuits, or object oriented programming languages ​​such as Smalltalk, C++, and procedural type programming languages ​​such as the "C" programming language and similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, as a stand-alone software package, or partially on the user's computer. Alternatively, they may be executed partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) can execute computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the computer readable program instructions to perform aspects of the invention.

[0106] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.

[0107] These computer readable program instructions can be provided to a processor of a computer or other programmable data processing apparatus to generate a machine, such that the instructions, executed via a processor of the computer or other programmable data processing apparatus, generate means for implementing the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions can also be stored in a computer readable storage medium connectable to a computer, programmable data processing apparatus, or other device or combination that functions in a particular way, such that the computer readable storage medium having the instructions stored thereon constitutes one of the products including instructions that implement aspects of the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.

[0108] Computer readable program instructions, such as instructions to perform the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams on a computer, other programmable apparatus, or other device, may also be loaded into a computer, other programmable data processing apparatus, or other device to perform a series of operational steps on the computer, other programmable apparatus, or other device to generate a computer-implemented process.

[0109] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of executable implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or part of an instruction, which constitutes one or more executable instructions for implementing a specified logical function. In some alternative embodiments, the functions shown in the blocks may differ from the order shown in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or the blocks may be executed in reverse order depending on the functionality involved. It should also be noted that each block of the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a special purpose hardware-based system that executes the specified functions or operations, or executes a combination of special purpose hardware and computer instructions.

Claims

1. 1. A method in a computing environment, comprising: identifying a first type of memory and a second type of memory in a computing system, the second type of memory having a larger storage capacity compared to the first type of memory but slower than the first type of memory; identifying a plurality of application processes executing on the computing system; providing, by the processor, a private region of the first type of memory as a cache of the second type of memory for each of the plurality of application processes; dynamically enabling or disabling, by the processor, one of the private regions in the first type of memory for one of the plurality of application processes to become active or inactive; dynamically varying a size of the one of the private regions in the first type of memory for the one of the plurality of application processes based on performance requirements for the one of the plurality of application processes; Including, method.

2. defining, for each one of the plurality of application processes, a first set of address ranges stored in a range of registers within a cache controller to serve as a private region of the first type of memory; The method of claim 1.

3. defining a second set of address ranges stored in a range of registers within a cache controller to serve as a second private area of ​​the second type of memory for each one of the plurality of application processes; The method of claim 1.

4. providing, for each one of the plurality of application processes, access to the private area of ​​the first type of memory, the private area being configured as the cache of the second type of memory; providing, for each one of the plurality of application processes, access to a second private area in the second type of memory, the second private area being an additional cache in the second type of memory for each one of the plurality of application processes; Further comprising: The method of claim 1.

5. coordinating, by a cache controller, access to the private region of the first type of memory and the second private region in the second type of memory for each one of the plurality of application processes. The method according to claim 4.

6. and adjusting a size of the private region of the first type of memory based on a performance of each one of the plurality of application processes that uses the private region, the size being increased or decreased. The method of claim 1.

7. identifying one or more of the plurality of application processes as active, the one or more of the plurality of application processes using the first type of memory and the second type of memory; loading and storing a first set of address ranges of ranges stored in a cache controller to serve as private areas of the first type of memory for application processes, where an alternate address range of an alternate range for each inactive application process is removed from the cache controller; Further comprising: The method of claim 1.

8. 1. A system for improving computing efficiency in a computing environment, comprising: one or more computers having executable instructions that, when executed, cause the system to: identifying a first type of memory and a second type of memory in a computing system, the second type of memory having a larger storage capacity compared to the first type of memory but slower than the first type of memory; identifying a plurality of application processes executing on the computing system; providing, by the processor, a private region of the first type of memory as a cache of the second type of memory for each of the plurality of application processes; dynamically enabling or disabling, by the processor, one of the private regions in the first type of memory for each of the plurality of application processes when the respective one of the plurality of application processes becomes active or inactive; dynamically varying a size of the one of the private regions in the first type of memory for the respective one of the plurality of application processes in response to one or more performance requirements for the respective one of the plurality of application processes; A system that executes the above.

9. The executable instructions, when executed, cause the system to define a first set of address ranges stored in ranges of registers within a cache controller to serve as a private area of ​​the first type of memory for each one of the plurality of application processes. The system of claim 8.

10. the executable instructions define a second set of address ranges stored in ranges of registers within a cache controller to serve as a second private area of ​​the second type of memory for each one of the plurality of application processes; The system of claim 8.

11. The executable instructions, when executed, cause the system to: providing, for each one of the plurality of application processes, access to the private area of ​​the first type of memory, the private area being configured as the cache of the second type of memory; providing, for each one of the plurality of application processes, access to a second private area in the second type of memory, the second private area being an additional cache in the second type of memory for each one of the plurality of application processes; The system of claim 8.

12. The executable instructions, when executed, cause the system to coordinate, by a cache controller, access to the private region of the first type of memory and the second private region in the second type of memory for each one of the plurality of application processes. The system of claim 8.

13. The executable instructions, when executed, cause the system to adjust a size of the private region of the first type of memory based on a performance of each one of the plurality of application processes that uses the private region, the size increasing or decreasing. The system of claim 8.

14. The executable instructions, when executed, cause the system to: identifying one or more of the plurality of application processes as active, the one or more of the plurality of application processes using the first type of memory and the second type of memory; loading and storing a first set of address ranges of the ranges stored in a cache controller to serve as a private area of ​​the first type of memory for application processes, wherein an alternate address range of an alternate range for each inactive application process is removed from the cache controller; The system of claim 8.

15. 1. A computer program product for improving computing efficiency in a computing environment, the computer program product comprising: one or more computer readable storage media and program instructions collectively stored on the one or more computer readable storage media, the program instructions comprising: program instructions for identifying a first type of memory and a second type of memory in a computing system, the second type of memory having a larger storage capacity compared to the first type of memory but being slower than the first type of memory; program instructions for identifying a plurality of application processes executing on the computing system; program instructions for providing, by the processor, a private region of the first type of memory as a cache of the second type of memory for each of the plurality of application processes; program instructions for dynamically enabling or disabling, by the processor, one of the private regions in the first type of memory for each of the plurality of application processes when the respective one of the plurality of application processes becomes active or inactive; program instructions for dynamically varying a size of said one of said private regions in said first type memory for said respective one of said plurality of application processes in response to one or more performance requirements for said respective one of said plurality of application processes; 2. A computer program product comprising:

16. and further comprising program instructions defining, for each one of the plurality of application processes, a first set of address ranges to be stored in ranges of registers within a cache controller to serve as a private region of the first type of memory.

16. A computer program product according to claim 15.

17. and further comprising program instructions defining a second set of address ranges stored in ranges of registers within a cache controller to serve as a second private area of ​​the second type of memory for each one of the plurality of application processes.

16. A computer program product according to claim 15.

18. providing, for each one of the plurality of application processes, access to the private area of ​​the first type of memory, the private area being configured as the cache of the second type of memory; providing, for each one of the plurality of application processes, access to a second private area in the second type of memory, the second private area being an additional cache in the second type of memory for each one of the plurality of application processes; coordinating, for each one of the plurality of application processes, access to the private region of the first type of memory and the second private region in the second type of memory by a cache controller; and further comprising program instructions for executing 16. A computer program product according to claim 15.

19. and further comprising program instructions for adjusting a size of the private region of the first type of memory based on a performance of each one of the plurality of application processes that uses the private region, the size being increased or decreased.

16. A computer program product according to claim 15.

20. identifying one or more of the plurality of application processes as active, the one or more of the plurality of application processes using the first type of memory and the second type of memory; loading and storing a first set of address ranges of ranges stored in a cache controller to serve as private areas of the first type of memory for application processes, where an alternate address range of an alternate range for each inactive application process is removed from the cache controller; and further comprising program instructions for executing 16. A computer program product according to claim 15.

Citation Information

Patent Citations

  • Method for using cache memory

    JP2005071046A

  • Method and apparatus for dynamically resizing cache partitions based on task execution phases

    JP2009528610A

  • Cache memory control program, processor including cache memory, and cache memory control method

    JP2015036873A