RSDL cpu scheduler for 2.6.21-rc3-mm2
Quoted 8 lines · Xavier Bestel
Quoted 3 lines · Con Kolivas
Again I think your test is not a valid testcase. Why use two threads for your encoding with one cpu? Is that what other dedicated desktop OSs would do?
as your scheduler
is "strictly fair", won't that enable trivial DoS by just letting an user fork a multitude of CPU-intensive processes ?
I don't think we have to worry about DoS with this scheduler. Note the load average; it happily wraps.
top - 22:34:02 up 8 min, 0 users, load average: 615.32, 746.30, 929.15
Tasks: 3379 total, 3336 running, 43 sleeping, 0 stopped, 0 zombie Cpu(s): 8.8% user, 21.1% system, 10.0% nice, 56.5% idle, 3.6% IO-wait Mem: 499480k total, 414640k used, 84840k free, 1956k buffers Swap: 1020088k total, 0k used, 1020088k free, 8296k cached
PID PR NI VIRT RES SHR SWAP nFLT nDRT WCHAN S %CPU TIME+ Command
614 39 0 3668 2712 720 956 5 0 rest_init R 1.9 0:09.70 top
845 23 0 3056 1780 932 1276 0 0 wait S 0.0 0:01.96 sh
1 20 0 1440 504 444 936 14 0 rest_init S 0.0 0:00.76 init
4180 28 0 3664 2640 652 1024 0 0 rest_init R 3.5 0:00.40 top
863 39 19 1584 488 412 1096 0 0 rest_init R 0.0 0:00.30 ping
929 39 19 1584 488 412 1096 0 0 rest_init R 0.2 0:00.29 ping
871 39 19 1584 488 412 1096 0 0 rest_init R 0.2 0:00.28 ping
904 39 19 1584 488 412 1096 0 0 rest_init R 0.2 0:00.28 ping
946 39 19 1584 488 412 1096 0 0 rest_init R 0.2 0:00.28 ping
947 39 19 1584 488 412 1096 0 0 rest_init R 0.2 0:00.28 ping
972 39 19 1584 488 412 1096 0 0 rest_init R 0.0 0:00.28 ping
862 39 19 1584 488 412 1096 0 0 rest_init R 0.0 0:00.27 ping
881 39 19 1584 488 412 1096 0 0 rest_init R 0.0 0:00.27 ping
901 39 19 1584 488 412 1096 0 0 rest_init R 0.0 0:00.27 ping
915 39 19 1584 488 412 1096 0 0 rest_init R 0.0 0:00.27 ping
923 39 19 1584 488 412 1096 0 0 rest_init R 0.0 0:00.27 ping
926 39 19 1584 488 412 1096 0 0 rest_init R 0.0 0:00.27 ping
958 39 19 1584 488 412 1096 0 0 rest_init R 0.0 0:00.27 ping
967 39 19 1584 488 412 1096 0 0 rest_init R 0.0 0:00.27 ping
987 39 19 1584 488 412 1096 0 0 rest_init R 0.0 0:00.27 ping
994 39 19 1584 488 412 1096 0 0 rest_init R 0.2 0:00.27 ping Thanks!
--
Al