Re: Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.

2014-04-22 Thread Darrick J. Wong
On Tue, Apr 22, 2014 at 11:19:32AM +0530, Amit Sahrawat wrote: > Hi Darrick, > > Thanks for the reply, sorry for responding late. > > On Wed, Apr 16, 2014 at 11:16 PM, Darrick J. Wong > wrote: > > On Wed, Apr 16, 2014 at 01:21:34PM +0530, Amit Sahrawat wrote: > >> Sorry Ted, if it caused the con

Re: Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.

2014-04-21 Thread Amit Sahrawat
Hi Darrick, Thanks for the reply, sorry for responding late. On Wed, Apr 16, 2014 at 11:16 PM, Darrick J. Wong wrote: > On Wed, Apr 16, 2014 at 01:21:34PM +0530, Amit Sahrawat wrote: >> Sorry Ted, if it caused the confusion. >> >> There were actually 2 parts to the problem, the logs in the first

Re: Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.

2014-04-16 Thread Darrick J. Wong
On Wed, Apr 16, 2014 at 01:21:34PM +0530, Amit Sahrawat wrote: > Sorry Ted, if it caused the confusion. > > There were actually 2 parts to the problem, the logs in the first mail > were from the original situation – where in there were many block > groups and error prints also showed that. > > EX

Re: Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.

2014-04-16 Thread Amit Sahrawat
Sorry Ted, if it caused the confusion. There were actually 2 parts to the problem, the logs in the first mail were from the original situation – where in there were many block groups and error prints also showed that. EXT4-fs error (device sda1): ext4_mb_generate_buddy:742: group 1493, 0 clusters

Re: Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.

2014-04-15 Thread Andreas Dilger
On Apr 15, 2014, at 11:07 PM, Theodore Ts'o wrote: > On Wed, Apr 16, 2014 at 10:30:10AM +0530, Amit Sahrawat wrote: >> 4) Corrupt the block group ‘1’ by writing all ‘1’, we had one file >> with all 1’s, so using ‘dd’ – >> dd if=i_file of=/dev/sdb1 bs=4096 seek=17 count=1 >> After this mount the

Re: Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.

2014-04-15 Thread Theodore Ts'o
On Wed, Apr 16, 2014 at 10:30:10AM +0530, Amit Sahrawat wrote: > 4)Corrupt the block group ‘1’ by writing all ‘1’, we had one file > with all 1’s, so using ‘dd’ – > dd if=i_file of=/dev/sdb1 bs=4096 seek=17 count=1 > After this mount the partition – create few random size files and then > ran

Re: Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.

2014-04-15 Thread Amit Sahrawat
Thanks Ted, for the detailed reply. We could not retain the original HDD – on which we got the issue. In order to replicate the problem we did steps like this: 1) Make 250MB partition 2) Format the partition with blocksize ‘4K’ 3) Using dumpe2fs – get the block group information Gro

Re: Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.

2014-04-15 Thread Theodore Ts'o
On Tue, Apr 15, 2014 at 01:24:26PM +0530, Amit Sahrawat wrote: > Initially in normal write path, when the disk was almost full – we got > hung for the ‘sync’ because the flusher (which is busy in the > writepages is not responding). Before the hung task, we also found the > logs like: > > EXT4-fs

Ext4: deadlock occurs when running fsstress and ENOSPC errors are seen.

2014-04-15 Thread Amit Sahrawat
Initially in normal write path, when the disk was almost full – we got hung for the ‘sync’ because the flusher (which is busy in the writepages is not responding). Before the hung task, we also found the logs like: EXT4-fs error (device sda1): ext4_mb_generate_buddy:742: group 1493, 0 clusters in