Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.3 KB

File metadata and controls

43 lines (26 loc) · 1.3 KB

testcase

Testcases for system development

#1 Testcase for Semeru InfiniBand.

Example:

Connect CPU Server and Memory Server

a. Start Memory server by running,
go to directory testcase/Semeru/RemoteMemory
./run_rmem_server_with_rdma_service.sh Case1 execution

b. Start CPU server,
go to directory : linux-4.11-rc8/semeru
make // compile the module
sudo insmod semeru_cpu.ko // insert the CPU server kernel module

After a. and b. CPU server will bind with Memory server.
The Memory server will be mounted as a block device under /dev,
e.g. /dev/rmempool
Until now, the control path can work.

c. To use the Control Path, invoke the syscall explicitly <br> syscall id is 334. The usage example is in Kernel-dev/syscall/user_kernel_copy.c <br>

d. To use the Data Path, need to mount the /dev/rmempool as the swap partition on CPU server.

swapon -s // check current swap partition
swapoff /dev/current-swap-partition // Close current swap partition
mkswap /dev/rmempool // format the fake block device
swapon /dev/rmempool // mount the fake block device as swap partition

And then the Data-Path is controlle by swap mechanism now.

e. Use lxc or docker limit the applications memory usage to trigger swap.