Re: [PATCH v3] scheduler: enhancement to show_state_filter and SysRq

2017-08-09 Thread Yafang Shao
2017-08-10 0:42 GMT+08:00 Peter Zijlstra : > On Wed, Aug 09, 2017 at 05:26:14PM +0800, Yafang Shao wrote: >> 2017-08-09 17:09 GMT+08:00 Peter Zijlstra : >> > On Wed, Aug 09, 2017 at 04:01:49PM +0800, Yafang Shao wrote: >> >> 2017-08-09 15:43 GMT+08:00 Peter Zijlstra : >> >> > On Wed, Aug 09, 2017 a

Re: [PATCH v3] scheduler: enhancement to show_state_filter and SysRq

2017-08-09 Thread Peter Zijlstra
On Wed, Aug 09, 2017 at 05:26:14PM +0800, Yafang Shao wrote: > 2017-08-09 17:09 GMT+08:00 Peter Zijlstra : > > On Wed, Aug 09, 2017 at 04:01:49PM +0800, Yafang Shao wrote: > >> 2017-08-09 15:43 GMT+08:00 Peter Zijlstra : > >> > On Wed, Aug 09, 2017 at 06:31:28PM +0800, Yafang Shao wrote: > >> >> So

Re: [PATCH v3] scheduler: enhancement to show_state_filter and SysRq

2017-08-09 Thread Yafang Shao
2017-08-09 17:09 GMT+08:00 Peter Zijlstra : > On Wed, Aug 09, 2017 at 04:01:49PM +0800, Yafang Shao wrote: >> 2017-08-09 15:43 GMT+08:00 Peter Zijlstra : >> > On Wed, Aug 09, 2017 at 06:31:28PM +0800, Yafang Shao wrote: >> >> Sometimes we want to get tasks in TASK_RUNNING sepcifically, >> >> instea

Re: [PATCH v3] scheduler: enhancement to show_state_filter and SysRq

2017-08-09 Thread Peter Zijlstra
On Wed, Aug 09, 2017 at 04:01:49PM +0800, Yafang Shao wrote: > 2017-08-09 15:43 GMT+08:00 Peter Zijlstra : > > On Wed, Aug 09, 2017 at 06:31:28PM +0800, Yafang Shao wrote: > >> Sometimes we want to get tasks in TASK_RUNNING sepcifically, > >> instead of dump all tasks. > >> > >> For example, when t

Re: [PATCH v3] scheduler: enhancement to show_state_filter and SysRq

2017-08-09 Thread Yafang Shao
2017-08-09 15:43 GMT+08:00 Peter Zijlstra : > On Wed, Aug 09, 2017 at 06:31:28PM +0800, Yafang Shao wrote: >> Sometimes we want to get tasks in TASK_RUNNING sepcifically, >> instead of dump all tasks. >> >> For example, when the loadavg are high, we want to dump >> tasks in TASK_RUNNING and TASK_UN

Re: [PATCH v3] scheduler: enhancement to show_state_filter and SysRq

2017-08-09 Thread Peter Zijlstra
On Wed, Aug 09, 2017 at 06:31:28PM +0800, Yafang Shao wrote: > Sometimes we want to get tasks in TASK_RUNNING sepcifically, > instead of dump all tasks. > > For example, when the loadavg are high, we want to dump > tasks in TASK_RUNNING and TASK_UNINTERRUPTIBLE, which contribute > to system load.

[PATCH v3] scheduler: enhancement to show_state_filter and SysRq

2017-08-08 Thread Yafang Shao
Sometimes we want to get tasks in TASK_RUNNING sepcifically, instead of dump all tasks. For example, when the loadavg are high, we want to dump tasks in TASK_RUNNING and TASK_UNINTERRUPTIBLE, which contribute to system load. But mostly there're lots of tasks in Sleep state, which occupies almost a