-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME_EXAMPLE
60 lines (33 loc) · 2.44 KB
/
README_EXAMPLE
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
The lkvm tool has to be replicated in all nodes.(Like POPCORN-LINUX)
The easist way to do it is using a shared file system.
In our test case, we have a /share which is shared around 4 nodes, echo0, echo1, echo4 and echo5.
We can create a soft link to the working directory.
Example:
ln -s /share/eurosys/fragvisor-kvmtool/ $YOURWORKING_DIR/
!!!!!! It is also OK to just copy, but please let it reside in the same path in all machines!!!(and compiled)
Please remember to run the ./msg_pophype4node.sh to turn on the message layer
On the first time, please use ./run.sh 1 1 0
this will allow both lkvm and guest kernel to be compiled.
While next time, if you didn't change the lkvm or guest kernel, you can just bypass the compilation part by doing just ./run.sh 0 0 0
You should open 4 terminals for each node.
In the first experiment, you would run the pre-built ramdisk image ramdisk_NPB_ATC.gz
Once the Fragvisor is booting, please keep press 'Enter' to allow the output generate correctly, until you see the network ping is up.
When you press 'Enter' and there is no more output,
It takes 2 min to finish, you should see
========================
| auto_setup.sh ALL DONE |
========================
This indicate all have done, otherwise please keep press 'Enter' even there shows stable 'bash-5.0#'
you can try use ifconfig to check the ip address of the guest Fragvisor VM
In our test ramdisk, it would be 10.4.4.222, you can open another extra terminal, to use ssh [email protected] to login into this Fragvisor VM
Because the origin terminal is using emulated serial port, it would be extremly slow, the ssh can make it as fast as normal VM you were expected.
Once you login, you can try use a simple way to test Fragvisor.
By running taskset -c 0/1/2/3 yes > /dev/null, depending on which vCPU you will let this burn loop to run,
while in the meantime, you might use htop/top on those echo0/1/4/5 terminal to check the CPU usage, for example,
if the taskset -c 3 > /dev/null is running inside, normally the 4th vCPU of Fragvisor would be the echo1 machine,
you would expect that echo1 machine will have a CPU is fully running.
For the different benchmark shown in the appendix of our paper, we have prepared 3 different ramdisk
they are 1. ramdisk_NPB_ATC.gz (Nginx), 2. ramdisk_lemp_4php.gz (LEMP) 3. ramdisk_openlambda.gz (OpenLambda)
Kindly please comment in the run.sh file to choose which ramdisk you gona use.
This is all for our test.
Thanks.