-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdesign_doc.txt
36 lines (28 loc) · 1.12 KB
/
design_doc.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
LabStor Client Init:
1. LabStor Client connects to LabStor Server
2. LabStor Server sends registers client
3. LabStor Server sends client the following:
- Userspace SHMEM
- 1MB for QPs
- 16MB for latency-sensitive I/O
- Can request up to 512MB of memory
- Runtime memory (for sharing namespace)
4. LabStor Client responds with the SHMEM
Memory Allocation
1. There are three types of memory: shared and DMA
2. Shared memory is used only for communicating with LabRuntime.
3. DMA is used for I/O. Can be communicated with LabRuntime.
- DMA may be the same as SHMEM
4. Kernel is used for communication with the kernel.
ipc_manager_->Malloc(LABSTOR_SHMEM, pid)
ipc_manager_->Malloc(LABSTOR_DMA, pid)
ipc_manager_->Malloc(LABSTOR_KERNEL, pid)
ipc_manager_->GetQueuePair(this, rq, LABSTOR_QP_ORDERED, pid)
ipc_manager_->GetQueuePair(this, rq, LABSTOR_QP_UNORDERED, pid)
Userspace processes always communicate with root LabStor Runtime
LabMods may be assigned to different runtimes.
PROCESS A:
QP: Shared between PA and PB
QP.Enqueue(rq, modA)
PROCESS B:
QP: Shared between PB