diff --git "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/note.md" "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/note.md" index 92fa3c390103bade07fb18c4cc21ddd3f21687a5..80f08073c7f9f24bca93c2f608b471751473db7a 100644 --- "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/note.md" +++ "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/note.md" @@ -89,3 +89,63 @@ cat /proc/15363/stat sudo taskset -c 0 ./RR-FIFO.sh ``` 经过多次测试发现实验结果无法在ubuntu18.04 多核处理(非虚拟机)器下复现 + + + +```bash +# cat ./sched-10044; cat ./sched-10045; cat ./sched-10047 +RR-FIFO-sched (10044, #threads: 1) +------------------------------------------------------------------- +se.exec_start : 1473599.031275 +se.vruntime : 0.418531 +se.sum_exec_runtime : 18913.682586 +se.nr_migrations : 0 +nr_switches : 199 +nr_voluntary_switches : 1 +nr_involuntary_switches : 198 +se.load.weight : 1024 +policy : 2 +prio : 9 +clock-delta : 30 +mm->numa_scan_seq : 0 +numa_migrations, 0 +numa_faults_memory, 0, 0, 1, 0, -1 +numa_faults_memory, 1, 0, 0, 0, -1 +Thu Oct 10 00:39:52 CST 2019 +RR-FIFO-sched (10045, #threads: 1) +------------------------------------------------------------------- +se.exec_start : 1474798.304037 +se.vruntime : 0.529281 +se.sum_exec_runtime : 18889.077331 +se.nr_migrations : 0 +nr_switches : 200 +nr_voluntary_switches : 1 +nr_involuntary_switches : 199 +se.load.weight : 1024 +policy : 2 +prio : 9 +clock-delta : 30 +mm->numa_scan_seq : 0 +numa_migrations, 0 +numa_faults_memory, 0, 0, 1, 0, -1 +numa_faults_memory, 1, 0, 0, 0, -1 +Thu Oct 10 00:39:53 CST 2019 +RR-FIFO-sched (10047, #threads: 1) +------------------------------------------------------------------- +se.exec_start : 1441128.799297 +se.vruntime : 0.601009 +se.sum_exec_runtime : 18957.767662 +se.nr_migrations : 0 +nr_switches : 26 +nr_voluntary_switches : 1 +nr_involuntary_switches : 25 +se.load.weight : 1024 +policy : 1 +prio : 4 +clock-delta : 30 +mm->numa_scan_seq : 0 +numa_migrations, 0 +numa_faults_memory, 0, 0, 1, 0, -1 +numa_faults_memory, 1, 0, 0, 0, -1 +Thu Oct 10 00:39:19 CST 2019 +``` diff --git "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/RR-FIFO-sched" "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/RR-FIFO-sched" old mode 100644 new mode 100755 diff --git "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/RR-FIFO.sh" "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/RR-FIFO.sh" old mode 100644 new mode 100755 index 123b27406798feb4d90f16097babe0117208ab0e..cbc454cd7d7f4a86d3950c1ff56403d6f9cf4335 --- "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/RR-FIFO.sh" +++ "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/RR-FIFO.sh" @@ -1,3 +1,4 @@ +#!/bin/sh ./RR-FIFO-sched 2 90& ./RR-FIFO-sched 2 90& sleep 5s diff --git "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-10044" "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-10044" new file mode 100644 index 0000000000000000000000000000000000000000..b4d0b89f216121e13c4d1ad8ba0ad39b21faa205 --- /dev/null +++ "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-10044" @@ -0,0 +1,18 @@ +RR-FIFO-sched (10044, #threads: 1) +------------------------------------------------------------------- +se.exec_start : 1473599.031275 +se.vruntime : 0.418531 +se.sum_exec_runtime : 18913.682586 +se.nr_migrations : 0 +nr_switches : 199 +nr_voluntary_switches : 1 +nr_involuntary_switches : 198 +se.load.weight : 1024 +policy : 2 +prio : 9 +clock-delta : 30 +mm->numa_scan_seq : 0 +numa_migrations, 0 +numa_faults_memory, 0, 0, 1, 0, -1 +numa_faults_memory, 1, 0, 0, 0, -1 +Thu Oct 10 00:39:52 CST 2019 diff --git "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-10045" "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-10045" new file mode 100644 index 0000000000000000000000000000000000000000..425d8458e863ac27524e67d83adfee636ee1f6f0 --- /dev/null +++ "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-10045" @@ -0,0 +1,18 @@ +RR-FIFO-sched (10045, #threads: 1) +------------------------------------------------------------------- +se.exec_start : 1474798.304037 +se.vruntime : 0.529281 +se.sum_exec_runtime : 18889.077331 +se.nr_migrations : 0 +nr_switches : 200 +nr_voluntary_switches : 1 +nr_involuntary_switches : 199 +se.load.weight : 1024 +policy : 2 +prio : 9 +clock-delta : 30 +mm->numa_scan_seq : 0 +numa_migrations, 0 +numa_faults_memory, 0, 0, 1, 0, -1 +numa_faults_memory, 1, 0, 0, 0, -1 +Thu Oct 10 00:39:53 CST 2019 diff --git "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-10047" "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-10047" new file mode 100644 index 0000000000000000000000000000000000000000..44b22630232be8e802bbf3c52b24cdda59d93fda --- /dev/null +++ "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-10047" @@ -0,0 +1,18 @@ +RR-FIFO-sched (10047, #threads: 1) +------------------------------------------------------------------- +se.exec_start : 1441128.799297 +se.vruntime : 0.601009 +se.sum_exec_runtime : 18957.767662 +se.nr_migrations : 0 +nr_switches : 26 +nr_voluntary_switches : 1 +nr_involuntary_switches : 25 +se.load.weight : 1024 +policy : 1 +prio : 4 +clock-delta : 30 +mm->numa_scan_seq : 0 +numa_migrations, 0 +numa_faults_memory, 0, 0, 1, 0, -1 +numa_faults_memory, 1, 0, 0, 0, -1 +Thu Oct 10 00:39:19 CST 2019 diff --git "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-9978" "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-9978" new file mode 100644 index 0000000000000000000000000000000000000000..f1e02eb1b2a7b8e8d2c4aa345f92fe7925ae6ca0 --- /dev/null +++ "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-9978" @@ -0,0 +1,18 @@ +RR-FIFO-sched (9978, #threads: 1) +------------------------------------------------------------------- +se.exec_start : 1339893.754405 +se.vruntime : 0.091420 +se.sum_exec_runtime : 18937.981656 +se.nr_migrations : 0 +nr_switches : 216 +nr_voluntary_switches : 1 +nr_involuntary_switches : 215 +se.load.weight : 1024 +policy : 2 +prio : 9 +clock-delta : 30 +mm->numa_scan_seq : 0 +numa_migrations, 0 +numa_faults_memory, 0, 0, 1, 0, -1 +numa_faults_memory, 1, 0, 0, 0, -1 +Thu Oct 10 00:37:38 CST 2019 diff --git "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-9979" "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-9979" new file mode 100644 index 0000000000000000000000000000000000000000..0d502a207d5466b9cacc9dd33f1e4bb5adc3f274 --- /dev/null +++ "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-9979" @@ -0,0 +1,18 @@ +RR-FIFO-sched (9979, #threads: 1) +------------------------------------------------------------------- +se.exec_start : 1338701.038256 +se.vruntime : 0.333911 +se.sum_exec_runtime : 18895.037839 +se.nr_migrations : 0 +nr_switches : 200 +nr_voluntary_switches : 1 +nr_involuntary_switches : 199 +se.load.weight : 1024 +policy : 2 +prio : 9 +clock-delta : 30 +mm->numa_scan_seq : 0 +numa_migrations, 0 +numa_faults_memory, 0, 0, 1, 0, -1 +numa_faults_memory, 1, 0, 0, 0, -1 +Thu Oct 10 00:37:37 CST 2019 diff --git "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-9981" "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-9981" new file mode 100644 index 0000000000000000000000000000000000000000..1601987108e382d710613b24e8e1c18db2163e8d --- /dev/null +++ "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/code/sched-9981" @@ -0,0 +1,18 @@ +RR-FIFO-sched (9981, #threads: 1) +------------------------------------------------------------------- +se.exec_start : 1306152.623005 +se.vruntime : 0.552251 +se.sum_exec_runtime : 18980.983010 +se.nr_migrations : 0 +nr_switches : 26 +nr_voluntary_switches : 1 +nr_involuntary_switches : 25 +se.load.weight : 1024 +policy : 1 +prio : 4 +clock-delta : 20 +mm->numa_scan_seq : 0 +numa_migrations, 0 +numa_faults_memory, 0, 0, 1, 0, -1 +numa_faults_memory, 1, 0, 0, 0, -1 +Thu Oct 10 00:37:04 CST 2019 diff --git "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/pic/3-17a.png" "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/pic/3-17a.png" new file mode 100644 index 0000000000000000000000000000000000000000..498f18d8b78eb29d2222c2ba6169411e87125def Binary files /dev/null and "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/pic/3-17a.png" differ diff --git "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/pic/3-17b.png" "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/pic/3-17b.png" new file mode 100644 index 0000000000000000000000000000000000000000..f0684a25d204e493b9cac43ee8dd8252c4e98c00 Binary files /dev/null and "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/pic/3-17b.png" differ diff --git "a/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/pic/3-17c.png" "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/pic/3-17c.png" new file mode 100644 index 0000000000000000000000000000000000000000..b0bc612971686e92ff7c5906997f86749094a864 Binary files /dev/null and "b/3.\350\277\233\347\250\213\350\260\203\345\272\246/record/pic/3-17c.png" differ