IP Library Granted Patent US 7,996,615
Granted Patent B2
US 7,996,615 · App. 12/831,918 · Granted Aug 9, 2011

Cache region concept

Assignee: SAP AG
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,996,615
App. No.
12/831,918
Granted
Aug 9, 2011
Kind
B2
Abstract

A method to associate a storage policy with a cache region is disclosed. In this method, a cache region associated with an application is created. The application runs on virtual machines, and where a first virtual machine has a local memory cache that is private to the first virtual machine. The first virtual machine additionally has a shared memory cache that is shared by the first virtual machine and a second virtual machine. Additionally, the cache region is associated with a storage policy. Here, the storage policy specifies that a first copy of an object to be stored in the cache region is to be stored in the local memory cache and that a second copy of the object to be stored in the cache region is to be stored in the shared memory cache.

Claims (16)

1. A method comprising:

creating a first cache region associated with an application, the first cache region being one of a plurality of cache regions associated with the application, each of the plurality of cache regions being associated with a different caching treatment policy, the application running on a plurality of virtual machines, a first one of the plurality of virtual machines having a local memory cache that is private to the first one of the plurality of virtual machines and a shared memory cache that is shared by the first one of the plurality of virtual machines and a second one of the plurality of virtual machines;

associating the first cache region with a first storage policy, the first storage policy specifying that a first copy of an object to be stored in the first cache region is to be stored in the local memory cache and that a second copy of the object to be stored in the first cache region is to be stored in the shared memory cache;

receiving a request from the application to retrieve the object, the object having been stored in the first cache region;

detecting that a second version of the object is newer than a first version of the object, the second version of the object being stored in the shared memory cache and the first version of the object being stored in the local memory cache; and

providing the second version of the object to the application,

wherein the providing of the second version of the object comprises copying the second version of the object from the shared memory cache to the local memory cache.

2. The method of claim 1 , wherein the providing of the second version of the object further comprises enabling the application to establish a hard reference to the second version of the object in the local memory cache, an identifying of the hard reference by a garbage collector preventing the garbage collector from removing the second version of the object from the local memory cache.

3. The method of claim 1 , wherein the first storage policy further specifies that an eviction of the object from the local memory cache is to result in a storage of the object in a storage resource having a higher latency than the local memory cache.

4. The method of claim 3 , wherein the storage resource is a shared memory associated with the shared memory cache.

5. The method of claim 1 , further comprising:

creating a second cache region associated with the application; and

associating the second cache region with a second storage policy, the second storage policy specifying that a first version of an additional object to be stored in the second cache region is to be stored in the shared memory cache and that the first version of the additional object is not to be modified.

6. The method of claim 5 , further comprising:

receiving a request from the application to incorporate a modification into the additional object, the additional object having been stored in the second cache region; and

in response to the receiving of the request from the application to incorporate the modification, incorporating the modification into a second version of the additional object and storing the second version of the additional object in the shared memory cache.

Assignments (1)
CHANGE OF NAME Recorded Aug 26, 2014
From: SAP AG
To: SAP SE
Reel/Frame 033625/0334 →
Continuity (2)
Continuation 11024554 · Dec 28, 2004
Related Publication 20100268881A1 · Oct 21, 2010