Re: [PATCH] ext4: add a configurable parameter to prevent endless loop in ext4_mb_discard_group_p

2021-04-15 Thread Wen Yang
在 2021/4/11 下午12:25, Theodore Ts'o 写道: On Sun, Apr 11, 2021 at 03:45:01AM +0800, Wen Yang wrote: At this time, some logs are lost. It is suspected that the hard disk itself is faulty. If you have a kernel crash dump, that means you can extract out the dmesg buffer, correct? Is there any

Re: [PATCH] ext4: add a configurable parameter to prevent endless loop in ext4_mb_discard_group_p

2021-04-10 Thread Theodore Ts'o
On Sun, Apr 11, 2021 at 03:45:01AM +0800, Wen Yang wrote: > At this time, some logs are lost. It is suspected that the hard disk itself > is faulty. If you have a kernel crash dump, that means you can extract out the dmesg buffer, correct? Is there any I/O error messages in the kernel log? What

Re: [PATCH] ext4: add a configurable parameter to prevent endless loop in ext4_mb_discard_group_p

2021-04-10 Thread Wen Yang
在 2021/4/9 下午1:47, riteshh 写道: On 21/04/09 02:50AM, Wen Yang wrote: On Apr 7, 2021, at 5:16 AM, riteshh wrote: On 21/04/07 03:01PM, Wen Yang wrote: From: Wen Yang The kworker has occupied 100% of the CPU for several days: PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 68086

Re: [PATCH] ext4: add a configurable parameter to prevent endless loop in ext4_mb_discard_group_p

2021-04-09 Thread riteshh
On 21/04/09 12:18PM, Jan Kara wrote: > On Fri 09-04-21 11:17:33, riteshh wrote: > > On 21/04/09 02:50AM, Wen Yang wrote: > > > > On Apr 7, 2021, at 5:16 AM, riteshh wrote: > > > >> > > > >> On 21/04/07 03:01PM, Wen Yang wrote: > > > >>> From: Wen Yang > > > >>> > > > >>> The kworker has occupied

Re: [PATCH] ext4: add a configurable parameter to prevent endless loop in ext4_mb_discard_group_p

2021-04-09 Thread Jan Kara
On Fri 09-04-21 11:17:33, riteshh wrote: > On 21/04/09 02:50AM, Wen Yang wrote: > > > On Apr 7, 2021, at 5:16 AM, riteshh wrote: > > >> > > >> On 21/04/07 03:01PM, Wen Yang wrote: > > >>> From: Wen Yang > > >>> > > >>> The kworker has occupied 100% of the CPU for several days: > > >>> PID USER

Re: [PATCH] ext4: add a configurable parameter to prevent endless loop in ext4_mb_discard_group_p

2021-04-08 Thread riteshh
On 21/04/09 02:50AM, Wen Yang wrote: > > On Apr 7, 2021, at 5:16 AM, riteshh wrote: > >> > >> On 21/04/07 03:01PM, Wen Yang wrote: > >>> From: Wen Yang > >>> > >>> The kworker has occupied 100% of the CPU for several days: > >>> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > >>>

Re: [PATCH] ext4: add a configurable parameter to prevent endless loop in ext4_mb_discard_group_p

2021-04-08 Thread Andreas Dilger
On Apr 8, 2021, at 12:50 PM, Wen Yang wrote: > > Hi Ritesh and Andreas, > > Thank you for your reply. Since there is still a faulty machine, we have > analyzed it again and found it is indeed a very special case: > > > crash> struct ext4_group_info 8813bb5f72d0 > struct ext4_group_info {

Re: [PATCH] ext4: add a configurable parameter to prevent endless loop in ext4_mb_discard_group_p

2021-04-08 Thread Wen Yang
> On Apr 7, 2021, at 5:16 AM, riteshh wrote: >> >> On 21/04/07 03:01PM, Wen Yang wrote: >>> From: Wen Yang >>> >>> The kworker has occupied 100% of the CPU for several days: >>> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND >>> 68086 root 20 0 00 0 R 100.0 0.0 9718:18