Shared file system cache in a virtual machine or LPAR environment
First Claim
1. A computer system defining first and second virtual machines and a memory shared by said first and second virtual machines, said computer system comprising:
- a filesystem cache in said shared memory;
a lock structure in said shared memory to record which virtual machine, if any, currently has an exclusive lock for writing to said cache;
said first virtual machine includes a first program function to acquire said exclusive lock when available by manipulation of said lock structure, and a second program function active after said first virtual machine acquires said exclusive lock, to write to said cache, said lock structure being directly accessible by said first program function, said cache being directly accessible by said second program function; and
said second virtual machine includes a third program function to acquire said exclusive lock when available by manipulation of said lock structure, and a fourth program function active after said second virtual machine acquires said exclusive lock, to write to said cache, said lock structure being directly accessible by said third program function, said cache being directly accessible by said fourth program function.
1 Assignment
0 Petitions
Accused Products
Abstract
Computer system, method and program for defining first and second virtual machines and a memory shared by the first and second virtual machines. A filesystem cache resides in the shared memory. A lock structure resides in the shared memory to record which virtual machine, if any, currently has an exclusive lock for writing to the cache. The first virtual machine includes a first program function to acquire the exclusive lock when available by manipulation of the lock structure, and a second program function active after the first virtual machine acquires the exclusive lock, to write to the cache. The lock structure is directly accessible by the first program function. The cache is directly accessible by the second program function. The second virtual machine includes a third program function to acquire the exclusive lock when available by manipulation of the lock structure, and a fourth program function active after the second virtual machine acquires the exclusive lock, to write to the cache. The lock structure is directly accessible by the third program function. The cache is directly accessible by the fourth program function. Another computer system, method and program is embodied in logical partitions of a real computer, instead of virtual machines.
74 Citations
20 Claims
-
1. A computer system defining first and second virtual machines and a memory shared by said first and second virtual machines, said computer system comprising:
-
a filesystem cache in said shared memory;
a lock structure in said shared memory to record which virtual machine, if any, currently has an exclusive lock for writing to said cache;
said first virtual machine includes a first program function to acquire said exclusive lock when available by manipulation of said lock structure, and a second program function active after said first virtual machine acquires said exclusive lock, to write to said cache, said lock structure being directly accessible by said first program function, said cache being directly accessible by said second program function; and
said second virtual machine includes a third program function to acquire said exclusive lock when available by manipulation of said lock structure, and a fourth program function active after said second virtual machine acquires said exclusive lock, to write to said cache, said lock structure being directly accessible by said third program function, said cache being directly accessible by said fourth program function. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer program product for execution within a computer system defining first and second virtual machines and a memory shared by said first and second virtual machines, said computer program product comprising:
-
a computer readable medium;
first program instructions to define a filesystem cache in said shared memory;
second program instructions to define a lock structure in said shared memory to record which virtual machine, if any, currently has an exclusive lock for writing to said cache;
third program instructions for execution in said first virtual machine to acquire said exclusive lock when available by manipulation of said lock structure, and fourth program instructions for execution in said first virtual machine active after said first virtual machine acquires said exclusive lock, to write to said cache, said lock structure being directly accessible by said third program function, said cache being directly accessible by said fourth program function; and
fifth program instructions for execution in said second virtual machine to acquire said exclusive lock when available by manipulation of said lock structure, and sixth program instructions for execution in said second virtual machine active after said second virtual machine acquires said exclusive lock, to write to said cache, said lock structure being directly accessible by said fifth program instructions, said cache being directly accessible by said sixth program instructions; and
whereinsaid first, second, third, fourth, fifth and sixth program instructions are stored on said medium. - View Dependent Claims (12)
-
-
13. A computer system defining first and second logical partitions and a memory shared by said first and second logical partitions, said computer system comprising:
-
a filesystem cache in said shared memory;
a lock structure in said shared memory to record which logical partition, if any, currently has an exclusive lock for writing to said cache;
said first logical partition includes a first program function to acquire said exclusive lock when available by manipulation of said lock structure, and a second program function active after said first logical partition acquires said exclusive lock, to write to said cache, said lock structure being directly accessible by said first program function, said cache being directly accessible by said second program function; and
said second logical partition includes a third program function to acquire said exclusive lock when available by manipulation of said lock structure, and a fourth program function active after said second logical partition acquires said exclusive lock, to write to said cache, said lock structure being directly accessible by said third program function, said cache being directly accessible by said fourth program function. - View Dependent Claims (14, 15, 16, 17, 18)
-
-
19. A computer program product for execution within a computer system defining first and second logical partitions and a memory shared by said first and second logical partitions, said computer program product comprising:
-
a computer readable medium;
first program instructions to define a filesystem cache in said shared memory;
second program instructions to define a lock structure in said shared memory to record which logical partition, if any, currently has an exclusive lock for writing to said cache;
third program instructions for execution in said first logical partition to acquire said exclusive lock when available by manipulation of said lock structure, and fourth program instructions for execution in said first logical partition active after said first logical partition acquires said exclusive lock, to write to said cache, said lock structure being directly accessible by said third program function, said cache being directly accessible by said fourth program function; and
fifth program instructions for execution in said second logical partition to acquire said exclusive lock when available by manipulation of said lock structure, and sixth program instructions for execution in said second logical partition active after said second logical partition acquires said exclusive lock, to write to said cache, said lock structure being directly accessible by said fifth program instructions, said cache being directly accessible by said sixth program instructions; and
whereinsaid first, second, third, fourth, fifth and sixth program instructions are stored on said medium. - View Dependent Claims (20)
-
Specification