# US 2025/0147663 A1 · Apparatus and method for processing copy-on-write supporting fork in memory disaggregation system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0147663 A1
- Document ID: US20250147663A1
- Status: Published application
- Kind: A1
- Application number: 18/935,895
- Filed: 2024-11-04
- Published: 2025-05-08
- Earliest claimed: 2023-11-08
- Assignees: Electronics and Telecommunications Research Institute
- Applicants: Electronics and Telecommunications Research Institute
- Inventors: Chang-Dae KIM; Kwang-Won Koh; Tae-Hoon Kim; Eun-Ji Pak; Yeon-Jeong Jeong
- Web page: https://patentgrep.com/patent/US20250147663A1

## CPC

- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/067: {Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed herein is an apparatus and method for processing write-on-copy for supporting a fork in a memory disaggregation system. The method includes, when a child process is generated in the event of a fork, processing the fork by copying a page table for disaggregated memory of a parent process to the child process and setting write protection on a page of the disaggregated memory; and processing write access to the write-protected page. Processing the write access may use at least one of a first handler corresponding to access to the write-protected page mapped to the page table, or a second handler corresponding to the write access to the write-protected page that is not mapped to the page table, or a combination thereof.

## Claims

### Claim 1

A method for processing copy-on-write for supporting a fork in a memory disaggregation system, comprising:
when a child process is generated in an event of a fork, processing the fork by copying a page table for disaggregated memory of a parent process to the child process and setting write protection on a page of the disaggregated memory; and
processing write access to the write-protected page,
wherein processing the write access uses at least one of a first handler corresponding to access to the write-protected page mapped to the page table, or a second handler corresponding to the write access to the write-protected page that is not mapped to the page table, or a combination thereof.

### Claim 2 (depends on 1)

The method of claim 1, wherein the page of the disaggregated memory is set to an active state or an inactive state depending on whether the page is mapped to a process when the page is stored in local memory, and is set to a remote state when the page is stored in remote memory.

### Claim 3 (depends on 2)

The method of claim 2, wherein processing the write access using the first handler comprises
when the write-protected page is mapped to a write access process and other processes, setting a page copied from the write-protected page to the active state, and
assigning write permission on the copied page to the write access process.

### Claim 4 (depends on 2)

The method of claim 2, wherein
processing the write access using the first handler comprises
when the write-protected page is mapped only to a write access process, changing the write-protected page to the active state, and
assigning write permission on the write-protected page to the write access process, and
further comprises
when the write-protected page is stored also in the remote memory, changing the write-protected page stored in the remote memory to the remote state, and
when the write-protected page is stored only in the local memory, copying a page from the write-protected page and setting the copied page to the inactive state.

### Claim 5 (depends on 2)

The method of claim 2, wherein processing the write access using the second handler comprises
when the write-protected page is mapped to a process other than a write access process, setting a page copied from the write-protected page to the active state, and
assigning write permission on the copied page to the write access process.

### Claim 6 (depends on 2)

The method of claim 2, wherein
processing the write access using the second handler comprises
when the write-protected page is not mapped to any process and is stored in the local memory, changing the write-protected page to the active state, and
assigning write permission on the write-protected page to a write access process, and
further comprises
when the write-protected page is stored also in the remote memory, changing the write-protected page stored in the remote memory to the remote state, and
when the write-protected page is stored only in the local memory, copying a page from the write-protected page and setting the copied page to the inactive state.

### Claim 7 (depends on 2)

The method of claim 2, wherein processing the write access using the second handler comprises
when the write-protected page is not mapped to any process and is stored in the remote memory, setting a page in the local memory that is copied from the write-protected page to the active state,
assigning write permission on the copied page to a write access process, and
setting the write-protected page stored in the remote memory to the remote state and setting write protection thereon.

### Claim 8

An apparatus for processing copy-on-write for supporting a fork in a memory disaggregation system, comprising:
memory in which at least one program is recorded; and
a processor for executing the program,
wherein
when a child process is generated in an event of a fork, the program processes the fork by copying a page table for disaggregated memory of a parent process to the child process and setting write protection on a page of the disaggregated memory, and
when processing write access to the write-protected page, the program uses at least one of a first handler corresponding to access to the write-protected page mapped to the page table, or a second handler corresponding to the write access to the write-protected page that is not mapped to the page table, or a combination thereof.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein
the page of the disaggregated memory is set to an active state or an inactive state depending on whether the page is mapped to a process when the page is stored in local memory, and is set to a remote state when the page is stored in remote memory.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein
when the write-protected page is mapped to a write access process and other processes, the first handler sets a page copied from the write-protected page to the active state and assigns write permission on the copied page to the write access process.

### Claim 11 (depends on 9)

The apparatus of claim 9, wherein
when the write-protected page is mapped only to a write access process, the first handler changes the write-protected page to the active state and assigns write permission on the write-protected page to the write access process,
when the write-protected page is stored also in the remote memory, the first handler changes the write-protected page stored in the remote memory to the remote state, and
when the write-protected page is stored only in the local memory, the first handler copies a page from the write-protected page and sets the copied page to the inactive state.

### Claim 12 (depends on 9)

The apparatus of claim 9, wherein
when the write-protected page is mapped to a process other than a write access process, the second handler sets a page copied from the write-protected page to the active state and assigns write permission on the copied page to the write access process.

### Claim 13 (depends on 9)

The apparatus of claim 9, wherein
when the write-protected page is not mapped to any process and is stored in the local memory, the second handler changes the write-protected page to the active state and assigns write permission on the write-protected page to a write access process,
when the write-protected page is stored also in the remote memory, the second handler changes the write-protected page stored in the remote memory to the remote state, and
when the write-protected page is stored only in the local memory, the second handler copies a page from the write-protected page and sets the copied page to the inactive state.

### Claim 14 (depends on 9)

The apparatus of claim 9, wherein
when the write-protected page is not mapped to any process and is stored in the remote memory, the second handler sets a page in the local memory that is copied from the write-protected page to the active state, assigns write permission on the copied page to a write access process, sets the write-protected page stored in the remote memory to the remote state, and sets write protection thereon.
