<div dir="ltr">On Erlang 18.1, my  application run several weeks, and I found one scheduler hanging for several hourse (But work fine on Erlang-17.5 fine for several months ! ), here is my experiment:<div><br>0) my application run several weeks</div><div>1) attach</div><div>2) run one process on each scheduler</div><div><div>5> [erlang:spawn(fun() -> erlang:process_flag(scheduler, I), io:format("Id: ~p~n", [I]) end) || I <- lists:seq(1, 24) ].</div><div>Id: 1</div><div>Id: 2</div><div>Id: 3</div><div>Id: 4</div><div>Id: 6</div><div>Id: 5</div><div>Id: 7</div><div>Id: 8</div><div>Id: 9</div><div>Id: 10</div><div>Id: 11</div><div>Id: 13</div><div>Id: 12</div><div>Id: 14</div><div>Id: 15</div><div>Id: 16</div><div>Id: 17</div><div>Id: 18</div><div>Id: 19</div><div>Id: 21</div><div>Id: 22</div><div>Id: 24</div><div>Id: 23</div></div><div><br></div><div>But scheduler-20 not responsed !.</div><div><br></div><div>This is run queue length:</div><div><div>6> erlang:statistics(run_queues).</div><div>{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0}</div></div><div><br></div><div>The run queue length of scheduler-20 is 1, and increased by when I rerun [erlang:spawn(fun() -> erlang:process_flag(scheduler, I), io:format("Id: ~p~n", [I]) end) || I <- lists:seq(1, 24) ].</div><div><br></div><div><br></div><div>Here is the callstack of scheduler-20, and most schedulers's callstack are the same:</div><div><div><br></div><div>#0  0x0000003895ee4049 in syscall () from /lib64/libc.so.6</div><div>#1  0x000000000060f71e in ethr_event_twait ()</div><div>#2  0x00000000004d9edc in scheduler_wait ()</div><div>#3  0x00000000004e5926 in schedule ()</div><div>#4  0x00000000004383c3 in process_main ()</div><div>#5  0x00000000004d431f in sched_thread_func ()</div><div>#6  0x000000000060ee12 in thr_wrapper ()</div><div>#7  0x0000003896207851 in start_thread () from /lib64/libpthread.so.0</div><div>#8  0x0000003895ee767d in clone () from /lib64/libc.so.6</div></div><div><br></div><div>But after several hours scheduler-20 resume again !</div><div><br></div><div>Max Feng</div><div><br></div><div><br></div></div>