Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insmod command in not completed even after hours #3

Open
SonjoyKP opened this issue Feb 7, 2023 · 0 comments
Open

insmod command in not completed even after hours #3

SonjoyKP opened this issue Feb 7, 2023 · 0 comments

Comments

@SonjoyKP
Copy link

SonjoyKP commented Feb 7, 2023

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.
Memory Server Status
dmesg.txt

Any suggestions are very much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant