MemLiner
MemLiner copied to clipboard
insmod command in not completed even after hours
Hello, I was trying to set up the MemLiner environment in the CloudLab. I was following the instructions from the GitHub page (README.md). I was able to follow "1. Build & Install MemLiner" section successfully, then when I am trying to connect the CPU server and Memory server nodes in the "2.1 Connect the CPU server with the memory server" I face some difficulties.
In manage_rswap_client.sh:
I get the "fallocate: file: fallocate failed: Operation not supported" error while executing the following command:
sudo fallocate -l ${SWAP_PARTITION_SIZE} ${swap_file}
I attempted to bypass the command by using update the code like this:
if ! sudo fallocate -l ${SWAP_PARTITION_SIZE} ${swap_file} then sudo dd if=/dev/zero of=${swap_file} bs=48M count=1K fi
This dd command can create the swap file. But after creating the swap partition, the manage_rswap_client.sh cannot load the specified kernel modules into the kernel using the insmod command. It gets stuck after displaying the "insmod ./rswap-client.ko" message:
sonjoyp@cpu-server:~/MemLiner/scripts/client$ ./manage_rswap_client.sh install
Ubuntu
Close current swap partition && Create swap file
Nothing to close.
Current swap partition:
Create a file, ~/swapfile, with size 48G as swap device.
fallocate: fallocate failed: Operation not supported
1024+0 records in
1024+0 records out
51539607552 bytes (52 GB, 48 GiB) copied, 530.516 s, 97.1 MB/s
49G /users/sonjoyp/swapfile
Mount the /users/sonjoyp/swapfile as swap device
Setting up swapspace version 1, size = 48 GiB (51539603456 bytes)
no label, UUID=b701af82-cc69-4ace-834e-730f6156eb6f
Filename Type Size Used Priority
/users/sonjoyp/swapfile file 50331644 0 -2
insmod ./rswap-client.ko
I have also attached the dmesg command output and memory server status screenshot for your references.
dmesg.txt
Any suggestions are very much appreciated.