<div dir="ltr"><div>Dear All,<br><br></div><div>I am trying to simulate provided algorithms in LITMUS-RT using qemu. But with my current configuration only G-EDF is properly working and generating simulation output. But with the P-EDF, C-EDF and PFAIR I am getting the same error '<span style="color:rgb(255,0,0)">could not migrate to target partition or cluster.: Invalid argument</span>'.<br>
<br></div><div>I have also had a look on guest cache level on qemu that is max L2.<br></div><div><br></div><div>Requesting suggestion to resolve the problem. <br></div><div><br><br></div><div>I booted the guest using the following command:<br>
"<br>sudo qemu-system-x86_64 -enable-kvm -cpu host,level=9 -smp 2 -hda /home/sdas/iso/ubuntu.backing.qcow2.img -m 2056 -name "ubuntu-qemu-cjk" -nographic -kernel /home/sdas/litexp/litmus-rt/arch/x86_64/boot/bzImage -append "console=ttyS0,115200 root=/dev/sda1" -gdb tcp::12345 -net nic -net tap,ifname=tap0,script=no -net user,hostfwd=tcp::2222-:22<br>
" <br></div><div>I have also tried with '-smp 2/ -smp 4/-smp 16/ -smp 8,sockets=2,cores=2,threads=2 ' none of them worked.<br><br><br></div><div><br></div>Command prompt output from the guest generated while using experiment-scripts :<br>
'<br><i>root@ubuntu-qemu:~/experiment-scripts-modified# ./gen_exps.py -f tasks=10 level=L2 C-EDF<br>Creating experiments with C-EDF generator...<br>Experiments saved in /root/experiment-scripts-modified/exps.<br>root@ubuntu-qemu:~/experiment-scripts-modified# ./run_exps.py <br>
Reading schedules from exps/*.<br>[Exp exps/sched=C-EDF]: Loading experiment 1 of 1.<br>[Exp exps/sched=C-EDF]: Enabling Sched Trace<br>[Exp exps/sched=C-EDF]: Enabling Logger<br>[Exp exps/sched=C-EDF]: Writing 1 proc entries<br>
[Exp exps/sched=C-EDF]: Starting 2 regular tracers<br>[Exp exps/sched=C-EDF]: Switching to C-EDF<br>[Exp exps/sched=C-EDF]: Starting 10 tasks<br>[Exp exps/sched=C-EDF]: Sleeping until tasks are ready for release...<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 17 50 30<br>
Non-zero return 234: /root/liblitmus/rtspin -w -p 1 45 200 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 1 10 50 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 73 200 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 1 54 200 30<br>
Non-zero return 234: /root/liblitmus/rtspin -w -p 1 8 25 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 3 25 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 6 50 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 24 100 30<br>
Non-zero return 234: /root/liblitmus/rtspin -w -p 1 57 200 30<br>[Exp exps/sched=C-EDF]: Killing all tasks<br>[Exp exps/sched=C-EDF]: Stopping regular tracers<br>[Exp exps/sched=C-EDF]: Switching back to Linux scheduler<br>
Failed experiment exps/sched=C-EDF<br>Task 0 failed with status: 234<br>Task 0 failed with status: 234<br>Task 0 failed with status: 234<br>Task 0 failed with status: 234<br>...7 more task errors...<br>Check dmesg, tmp/exec-out.txt, and tmp/exec-err.txt<br>
no crontab for root<br>Experiments ran: 1 of 1<br> Successful: 0<br> Failed: 1<br> Already Done: 0<br> Invalid Environment: 0<br>root@ubuntu-qemu:~/experiment-scripts-modified# ./gen_exps.py -f tasks=10 level=L2 P-EDF<br>
Creating experiments with P-EDF generator...<br>Experiments saved in /root/experiment-scripts-modified/exps.<br>root@ubuntu-qemu:~/experiment-scripts-modified# ./run_exps.py <br>Reading schedules from exps/*.<br>[Exp exps/sched=PSN-EDF]: Loading experiment 1 of 1.<br>
[Exp exps/sched=PSN-EDF]: Enabling Sched Trace<br>[Exp exps/sched=PSN-EDF]: Enabling Logger<br>[Exp exps/sched=PSN-EDF]: Writing 0 proc entries<br>[Exp exps/sched=PSN-EDF]: Starting 2 regular tracers<br>[Exp exps/sched=PSN-EDF]: Switching to PSN-EDF<br>
[Exp exps/sched=PSN-EDF]: Starting 10 tasks<br>[Exp exps/sched=PSN-EDF]: Sleeping until tasks are ready for release...<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 5 25 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 1 10 100 30<br>
Non-zero return 234: /root/liblitmus/rtspin -w -p 1 7 25 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 21 100 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 1 3 25 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 10 50 30<br>
Non-zero return 234: /root/liblitmus/rtspin -w -p 1 7 25 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 13 100 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 64 200 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 1 73 200 30<br>
[Exp exps/sched=PSN-EDF]: Killing all tasks<br>[Exp exps/sched=PSN-EDF]: Stopping regular tracers<br>[Exp exps/sched=PSN-EDF]: Switching back to Linux scheduler<br>Failed experiment exps/sched=PSN-EDF<br>Task 0 failed with status: 234<br>
Task 0 failed with status: 234<br>Task 0 failed with status: 234<br>Task 0 failed with status: 234<br>...7 more task errors...<br>Check dmesg, tmp/exec-out.txt, and tmp/exec-err.txt<br>no crontab for root<br>Experiments ran: 1 of 1<br>
Successful: 0<br> Failed: 1<br> Already Done: 0<br> Invalid Environment: 0<br>root@ubuntu-qemu:~/experiment-scripts-modified# ./gen_exps.py -f tasks=10 level=L2 PFAIR<br>Creating experiments with PFAIR generator...<br>
Experiments saved in /root/experiment-scripts-modified/exps.<br>root@ubuntu-qemu:~/experiment-scripts-modified# ./run_exps.py <br>Reading schedules from exps/*.<br>[Exp exps/sched=PFAIR]: Loading experiment 1 of 1.<br>[Exp exps/sched=PFAIR]: Enabling Sched Trace<br>
[Exp exps/sched=PFAIR]: Enabling Logger<br>[Exp exps/sched=PFAIR]: Writing 1 proc entries<br>[Exp exps/sched=PFAIR]: Starting 2 regular tracers<br>[Exp exps/sched=PFAIR]: Switching to PFAIR<br>[Exp exps/sched=PFAIR]: Starting 10 tasks<br>
[Exp exps/sched=PFAIR]: Sleeping until tasks are ready for release...<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 15 50 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 1 47 200 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 1 13 100 30<br>
Non-zero return 234: /root/liblitmus/rtspin -w -p 0 37 100 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 1 75 200 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 9 50 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 1 6 25 30<br>
Non-zero return 234: /root/liblitmus/rtspin -w -p 0 61 200 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 1 16 50 30<br>Non-zero return 234: /root/liblitmus/rtspin -w -p 0 20 200 30<br>[Exp exps/sched=PFAIR]: Killing all tasks<br>
[Exp exps/sched=PFAIR]: Stopping regular tracers<br>[Exp exps/sched=PFAIR]: Switching back to Linux scheduler<br>Failed experiment exps/sched=PFAIR<br>Task 0 failed with status: 234<br>Task 0 failed with status: 234<br>Task 0 failed with status: 234<br>
Task 0 failed with status: 234<br>...7 more task errors...<br>Check dmesg, tmp/exec-out.txt, and tmp/exec-err.txt<br>no crontab for root<br>Experiments ran: 1 of 1<br> Successful: 0<br> Failed: 1<br>
Already Done: 0<br> Invalid Environment: 0<br>root@ubuntu-qemu:~/experiment-scripts-modified# ./gen_exps.py -f tasks=10 level=L2 G-EDF<br>Creating experiments with G-EDF generator...<br>Experiments saved in /root/experiment-scripts-modified/exps.<br>
root@ubuntu-qemu:~/experiment-scripts-modified# ./run_exps.py <br>Reading schedules from exps/*.<br>[Exp exps/sched=GSN-EDF]: Loading experiment 1 of 1.<br>[Exp exps/sched=GSN-EDF]: Stopping regular tracers<br>Experiment already completed at '/root/experiment-scripts-modified/run-data/sched=GSN-EDF'<br>
no crontab for root<br>Experiments ran: 1 of 1<br> Successful: 0<br> Failed: 0<br> Already Done: 1<br> Invalid Environment: 0<br>root@ubuntu-qemu:~/experiment-scripts-modified# </i><br>
<br><br>' <br><div><div><br><br></div></div></div>