On Thu, 12 Aug 2010 09:48:30 -0600
"Curtis Gedak gedakc-at-gmail.com" wrote:

> Do you have a reproducible case that you can use for testing?

Yes! I just tried the simpler case of growing one single newly created
ext3 test partition in the same extended partition as before. Again
I noted that >80% CPU was consumed by Xorg and >10% by gpartedbin
during the two e2fsck phases. The e2fsck took 5 minutes each. I grew
the partition from 20 to 21 GB. Details are in the attached report
gparted_details_499193_3.htm.

> If so, then to help determine if the problem is related to the amount of 
> verbose feedback provided by the e2fsck command, would you be able to 
> edit, compile, and test your own GParted executable?

Yes, I succeded to compile gparted 0.6.0 on my Debian Sid system, with
and without the -v option to e2fsck in ext3.cc. Unfortunately there was
no difference. In the attached report gparted_details_499193_4.htm you
can see that the -v is really gone.

I also noted the same behaviour when resize2fs is running as with
e2fsck. It seems like it is the animation itself that causes the
delays and high cpu consumption. It doesn't help much if I let some
other window cover the animation.

Regards,
Leif Hornsved
Title: GParted Details

GParted 0.6.0

Libparted 2.3

Grow /dev/sdb7 from 19.53 GiB to 20.51 GiB  00:10:33    ( SUCCESS )
    
calibrate /dev/sdb7  00:00:00    ( SUCCESS )
    
path: /dev/sdb7
start: 102631424
end: 143591423
size: 40960000 (19.53 GiB)
check file system on /dev/sdb7 for errors and (if possible) fix them  00:04:54    ( SUCCESS )
    
e2fsck -f -y -v /dev/sdb7
    
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

11 inodes used (0.00%)
0 non-contiguous files (0.0%)
0 non-contiguous directories (0.0%)
# of inodes with ind/dind/tind blocks: 0/0/0
83625 blocks used (1.63%)
0 bad blocks
1 large file

0 regular files
2 directories
0 character device files
0 block device files
0 fifos
0 links
0 symbolic links (0 fast symbolic links)
0 sockets
--------
2 files
e2fsck 1.41.12 (17-May-2010)
grow partition from 19.53 GiB to 20.51 GiB  00:00:01    ( SUCCESS )
    
old start: 102631424
old end: 143591423
old size: 40960000 (19.53 GiB)
new start: 102631424
new end: 145639423
new size: 43008000 (20.51 GiB)
check file system on /dev/sdb7 for errors and (if possible) fix them  00:05:12    ( SUCCESS )
    
e2fsck -f -y -v /dev/sdb7
    
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

11 inodes used (0.00%)
0 non-contiguous files (0.0%)
0 non-contiguous directories (0.0%)
# of inodes with ind/dind/tind blocks: 0/0/0
83625 blocks used (1.63%)
0 bad blocks
1 large file

0 regular files
2 directories
0 character device files
0 block device files
0 fifos
0 links
0 symbolic links (0 fast symbolic links)
0 sockets
--------
2 files
e2fsck 1.41.12 (17-May-2010)
grow file system to fill the partition  00:00:25    ( SUCCESS )
    
resize2fs /dev/sdb7
    
Resizing the filesystem on /dev/sdb7 to 5376000 (4k) blocks.
The filesystem on /dev/sdb7 is now 5376000 blocks long.

resize2fs 1.41.12 (17-May-2010)

========================================

Title: GParted Details

GParted 0.6.0

Libparted 2.3

Shrink /dev/sdb7 from 20.51 GiB to 4.88 GiB  00:06:26    ( SUCCESS )
    
calibrate /dev/sdb7  00:00:00    ( SUCCESS )
    
path: /dev/sdb7
start: 102631424
end: 145639423
size: 43008000 (20.51 GiB)
check file system on /dev/sdb7 for errors and (if possible) fix them  00:02:25    ( SUCCESS )
    
e2fsck -f -y /dev/sdb7
    
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
test: 11/1320000 files (0.0% non-contiguous), 87641/5376000 blocks
e2fsck 1.41.12 (17-May-2010)
shrink file system  00:02:18    ( SUCCESS )
    
resize2fs /dev/sdb7 5119999K
    
Resizing the filesystem on /dev/sdb7 to 1279999 (4k) blocks.
The filesystem on /dev/sdb7 is now 1279999 blocks long.

resize2fs 1.41.12 (17-May-2010)
shrink partition from 20.51 GiB to 4.88 GiB  00:00:02    ( SUCCESS )
    
old start: 102631424
old end: 145639423
old size: 43008000 (20.51 GiB)
new start: 102631424
new end: 112871423
new size: 10240000 (4.88 GiB)
check file system on /dev/sdb7 for errors and (if possible) fix them  00:01:32    ( SUCCESS )
    
e2fsck -f -y /dev/sdb7
    
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
test: 11/320000 files (0.0% non-contiguous), 24699/1279999 blocks
e2fsck 1.41.12 (17-May-2010)
grow file system to fill the partition  00:00:08    ( SUCCESS )
    
resize2fs /dev/sdb7
    
Resizing the filesystem on /dev/sdb7 to 1280000 (4k) blocks.
The filesystem on /dev/sdb7 is now 1280000 blocks long.

resize2fs 1.41.12 (17-May-2010)

========================================

Reply via email to