[[PageOutline]] = Using Mosix to run Osaka code = == 1.Mosix Installation == {{{ $ sudo aptitude install build-essential libncurses5-dev $ cd mosix-2.24.2.2 $ sudo ./mosix.install }}} [[BR]] == 2.Test Process Migration == * Our cluster has two nodes(mosix & mosix01) * Test auto process migration {{{ #### mosix #### $ mosrun -b testload & $ mosrun -b testload & $ mosrun -b testload & $ mosrun -b testload & }}} * Check Process status * mosix {{{ $ mosps -h PID WHERE FROM CLASS FRZ TTY CMD 18542 here here local - pts/0 mosrun -b testload 18544 here here local - pts/0 mosrun -b testload 18546 here here local - pts/0 mosrun -b testload 18548 mosix01.nchc.org.tw here local - pts/0 mosrun -b testload }}} {{{ mon }}} [[Image(mosix_mon.png)]] {{{ $ top top - 17:40:33 up 2 days, 50 min, 3 users, load average: 2.99, 2.33, 1.14 Tasks: 149 total, 4 running, 143 sleeping, 2 stopped, 0 zombie Cpu(s): 74.1%us, 0.1%sy, 0.0%ni, 25.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2038304k total, 623276k used, 1415028k free, 150076k buffers Swap: 3903752k total, 0k used, 3903752k free, 140268k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 18545 root 20 0 2648 2420 96 R 100 0.1 7:29.47 testload 18543 root 20 0 2648 2424 96 R 100 0.1 7:28.13 testload 18547 root 20 0 2648 2420 96 R 100 0.1 7:28.52 testload }}} * mosix01 {{{ $ top top - 17:39:59 up 2 days, 1:00, 3 users, load average: 1.00, 0.74, 0.34 Tasks: 147 total, 2 running, 144 sleeping, 1 stopped, 0 zombie Cpu(s): 25.0%us, 0.0%sy, 0.0%ni, 75.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 3989504k total, 568724k used, 3420780k free, 148288k buffers Swap: 3903752k total, 0k used, 3903752k free, 63040k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 30155 root 20 0 2648 2440 0 R 100 0.1 6:50.38 remoted }}} [[BR]] == 3.Runing OpenMP Code in Mosix == [[BR]] == Reference ==