IP Library Granted Patent US 9,274,972
Granted Patent B2
US 9,274,972 · App. 14/731,799 · Granted Mar 1, 2016

Handling cross-platform system call with a shared page cache in a hybrid computing system

Inventor: Utz Bacher (Weil im Schoenbuch, DE)
Assignee: International Business Machines Corporation
G06F12/1009G06F9/541G06F9/545G06F9/547G06F12/084G06F15/17331G06F2212/314G06F2212/684
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 9,274,972
App. No.
14/731,799
Granted
Mar 1, 2016
Kind
B2
Abstract

A method and computing system for handling a page fault while executing a cross-platform system call with a shared page cache. A second kernel running in a second computer system sends a system call to a first kernel running in a first computer system. The second kernel receives, from the first kernel, a memory page that is a faulted memory page in the second computer system. The second kernel updates a second validity flag denoting that the memory page is currently available to the second computer system in a second copy of the shared page cache. A first validity flag in the first computer system denotes that the memory page is currently unavailable to the first computer system in a first copy of the shared page cache. The second kernel executes the system call to obtain a result and sends the result to the first kernel.

Claims (27)

1. A method for handling a page fault while executing a cross-platform system call with a shared page cache in a computing system that comprises at least one processor, said method comprising:

said at least one processor receiving, by a second kernel running in a second computer system of the computing system from a first kernel running in a first computer system of the computing system, a system call comprising a parameter referring to a memory page of raw data, said memory page denoted by a first validity flag to be currently available to the first computer system in a first copy of the shared page cache in the first computer system and denoted by a second validity flag to be currently unavailable to the second computer system in a second copy of the shared page cache in the second computer system, said system call being sent from the first kernel to the second kernel with the parameter and without the memory page, wherein a result from execution of the system call depends on the raw data in the memory page;

after said receiving the system call from the first kernel, said at least one processor determining, by the second kernel, that the memory page is a faulted memory page in the second computer system and in response, sending by the second kernel to the first kernel a request for the memory page; and

after said sending the request for the memory page to the first kernel, said at least one processor: (i) receiving, by the second kernel from the first kernel, the memory page from the first copy of the shared page cache in the first computer system; (ii) inserting, by the second kernel, the transferred memory page into the second copy of the shared page cache in the second computer system; (iii) updating, by the second kernel, the second validity flag to denote that the memory page is currently available to the second computer system in the second copy of the shared page cache, wherein the first kernel is configured to update the first validity flag to denote that the memory page is currently unavailable to the first computer system in the first copy of the shared page cache; (iv) executing, by the second kernel, the system call to obtain the result; and (v) sending, by the second kernel to the first kernel, the result obtained from execution of the system call by the second kernel.

2. The method of claim 1 , wherein said executing the system call comprises accessing the raw data in the memory page in the second copy of the shared page cache in the second computer system.

3. The method of claim 1 , wherein the memory page cannot be concurrently available to the first computer system and the second computer system in the first copy and the second copy, respectively, of the shared page cache.

4. The method of claim 1 , wherein the first computer system is configured to execute user application programs for both first computer system and the second computer system within the computing system, wherein the second computer system is configured to provide kernel services for both first computer system and the second computer system within the computing system.

5. The method of claim 1 , wherein the first kernel has a first page fault handler for handling the memory page as a faulted page, and wherein the second kernel has a second page fault handler, for handling the memory page as a faulted page.

6. The method of claim 1 , wherein the system call is from a user application and requests the result.

7. A computer program product, comprising a computer readable storage device having a computer readable program code embodied therein, said computer readable program code containing instructions that, upon being executed by at least one processor of a computing system, implement a method for handling a page fault while executing a cross-platform system call with a shared page cache in the computing system, said method comprising:

said at least one processor receiving, by a second kernel running in a second computer system of the computing system from a first kernel running in a first computer system of the computing system, a system call comprising a parameter referring to a memory page of raw data, said memory page denoted by a first validity flag to be currently available to the first computer system in a first copy of the shared page cache in the first computer system and denoted by a second validity flag to be currently unavailable to the second computer system in a second copy of the shared page cache in the second computer system, said system call being sent from the first kernel to the second kernel with the parameter and without the memory page, wherein a result from execution of the system call depends on the raw data in the memory page;

after said receiving the system call from the first kernel, said at least one processor determining, by the second kernel, that the memory page is a faulted memory page in the second computer system and in response, sending by the second kernel to the first kernel a request for the memory page; and

after said sending the request for the memory page to the first kernel, said at least one processor: (i) receiving, by the second kernel from the first kernel, the memory page from the first copy of the shared page cache in the first computer system; (ii) inserting, by the second kernel, the transferred memory page into the second copy of the shared page cache in the second computer system; (iii) updating, by the second kernel, the second validity flag to denote that the memory page is currently available to the second computer system in the second copy of the shared page cache, wherein the first kernel is configured to update the first validity flag to denote that the memory page is currently unavailable to the first computer system in the first copy of the shared page cache; (iv) executing, by the second kernel, the system call to obtain the result; and (v) sending, by the second kernel to the first kernel, the result obtained from execution of the system call by the second kernel.

8. The computer program product of claim 7 , wherein said executing the system call comprises accessing the raw data in the memory page in the second copy of the shared page cache in the second computer system.

9. The computer program product of claim 7 , wherein the memory page cannot be concurrently available to the first computer system and the second computer system in the first copy and the second copy, respectively, of the shared page cache.

10. The computer program product of claim 7 , wherein the first computer system is configured to execute user application programs for both first computer system and the second computer system within the computing system, wherein the second computer system is configured to provide kernel services for both first computer system and the second computer system within the computing system.

11. The computer program product of claim 7 , wherein the first kernel has a first page fault handler for handling the memory page as a faulted page, and wherein the second kernel has a second page fault handler, for handling the memory page as a faulted page.

12. The computer program product of claim 7 , wherein the system call is from a user application and requests the result.

13. A computing system comprising at least one processor, a memory coupled to the processor, and a computer readable storage device coupled to the processor, said storage device containing program code configured to be executed by the processor via the memory to implement a method for handling a page fault while executing a cross-platform system call with a shared page cache in a the computing system, said method comprising:

said at least one processor receiving, by a second kernel running in a second computer system of the computing system from a first kernel running in a first computer system of the computing system, a system call comprising a parameter referring to a memory page of raw data, said memory page denoted by a first validity flag to be currently available to the first computer system in a first copy of the shared page cache in the first computer system and denoted by a second validity flag to be currently unavailable to the second computer system in a second copy of the shared page cache in the second computer system, said system call being sent from the first kernel to the second kernel with the parameter and without the memory page, wherein a result from execution of the system call depends on the raw data in the memory page;

after said receiving the system call from the first kernel, said at least one processor determining, by the second kernel, that the memory page is a faulted memory page in the second computer system and in response, sending by the second kernel to the first kernel a request for the memory page; and

after said sending the request for the memory page to the first kernel, said at least one processor: (i) receiving, by the second kernel from the first kernel, the memory page from the first copy of the shared page cache in the first computer system; (ii) inserting, by the second kernel, the transferred memory page into the second copy of the shared page cache in the second computer system; (iii) updating, by the second kernel, the second validity flag to denote that the memory page is currently available to the second computer system in the second copy of the shared page cache, wherein the first kernel is configured to update the first validity flag to denote that the memory page is currently unavailable to the first computer system in the first copy of the shared page cache; (iv) executing, by the second kernel, the system call to obtain the result; and (v) sending, by the second kernel to the first kernel, the result obtained from execution of the system call by the second kernel.

14. The computing system of claim 13 , wherein said executing the system call comprises accessing the raw data in the memory page in the second copy of the shared page cache in the second computer system.

15. The computing system of claim 13 , wherein the memory page cannot be concurrently available to the first computer system and the second computer system in the first copy and the second copy, respectively, of the shared page cache.

16. The computing system of claim 13 , wherein the first computer system is configured to execute user application programs for both first computer system and the second computer system within the computing system, wherein the second computer system is configured to provide kernel services for both first computer system and the second computer system within the computing system.

17. The computing system of claim 13 , wherein the first kernel has a first page fault handler for handling the memory page as a faulted page, and wherein the second kernel has a second page fault handler, for handling the memory page as a faulted page.

18. The computing system of claim 13 , wherein the system call is from a user application and requests the result.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 5, 2015
From: BACHER, UTZ
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 035794/0192 →
Continuity (3)
Continuation 14048114 · Oct 8, 2013
Continuation 12342704 · Dec 23, 2008
Related Publication 20150269087A1 · Sep 24, 2015