public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* e4defrag don't work really well
@ 2023-02-12 18:14 Reindl Harald
  2023-02-16 16:50 ` Eric Sandeen
  0 siblings, 1 reply; 5+ messages in thread
From: Reindl Harald @ 2023-02-12 18:14 UTC (permalink / raw)
  To: linux-ext4


what's wrong with e4defrag that it pretends it reduced th efragments of 
a file to 1 while in the next "e4defrag -c" (why does that only list 5 
files at all) the same file is listed again with the same old frag count?

----------------------------

[root@srv-rhsoft:~]$ e4defrag -c /mnt/data/audio/
e4defrag 1.46.5 (30-Dec-2021)
<Fragmented files>                             now/best       size/ext
1. /mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3
                                                  3/1           2389 KB
2. /mnt/data/audio/Ace Frehley/Second Sighting/Ace Frehley - Fallen 
Angel.mp3
                                                  3/1           2389 KB
3. /mnt/data/audio/Mr. Big/Defying Gravity/Mr. Big - Mean To Me.mp3
                                                  3/1           2389 KB
4. /mnt/data/audio/Juice Newton/Quiet Lies/Juice Newton - Im Gonna Be 
Strong.mp3
                                                  3/1           2389 KB
5. /mnt/data/audio/Vicious Rumors/Something Burning/Vicious Rumors - 
Ballhog.mp3
                                                  3/1           2389 KB

----------------------------

[root@srv-rhsoft:~]$ e4defrag "/mnt/data/audio/Smokie/Solid 
Ground/Smokie - Little Town Flirt.mp3"
e4defrag 1.46.5 (30-Dec-2021)
ext4 defragmentation for /mnt/data/audio/Smokie/Solid Ground/Smokie - 
Little Town Flirt.mp3
[1/1]/mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3: 
        100%    [ OK ]
  Success:                       [1/1]

----------------------------

[root@srv-rhsoft:~]$ e4defrag -c /mnt/data/audio/
e4defrag 1.46.5 (30-Dec-2021)
<Fragmented files>                             now/best       size/ext
1. /mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3
                                                  3/1           2389 KB
2. /mnt/data/audio/Ace Frehley/Second Sighting/Ace Frehley - Fallen 
Angel.mp3
                                                  3/1           2389 KB
3. /mnt/data/audio/Mr. Big/Defying Gravity/Mr. Big - Mean To Me.mp3
                                                  3/1           2389 KB
4. /mnt/data/audio/Juice Newton/Quiet Lies/Juice Newton - Im Gonna Be 
Strong.mp3
                                                  3/1           2389 KB
5. /mnt/data/audio/Vicious Rumors/Something Burning/Vicious Rumors - 
Ballhog.mp3
                                                  3/1           2389 KB


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: e4defrag don't work really well
  2023-02-12 18:14 e4defrag don't work really well Reindl Harald
@ 2023-02-16 16:50 ` Eric Sandeen
  2023-02-16 18:21   ` Reindl Harald
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Sandeen @ 2023-02-16 16:50 UTC (permalink / raw)
  To: Reindl Harald, linux-ext4

On 2/12/23 12:14 PM, Reindl Harald wrote:
> 
> what's wrong with e4defrag that it pretends it reduced th efragments of a file to 1 while in the next "e4defrag -c" (why does that only list 5 files at all) the same file is listed again with the same old frag count?

You might want to examine the actual allocation before and after with "filefrag -v"
which could offer some clues to whether anything was modified by e4defrag.

(I would also suggest that there is no need to defragment a 3-extent 2 megabyte
file, in general.)

-Eric

> ----------------------------
> 
> [root@srv-rhsoft:~]$ e4defrag -c /mnt/data/audio/
> e4defrag 1.46.5 (30-Dec-2021)
> <Fragmented files>                             now/best       size/ext
> 1. /mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3
>                                                  3/1           2389 KB
> 2. /mnt/data/audio/Ace Frehley/Second Sighting/Ace Frehley - Fallen Angel.mp3
>                                                  3/1           2389 KB
> 3. /mnt/data/audio/Mr. Big/Defying Gravity/Mr. Big - Mean To Me.mp3
>                                                  3/1           2389 KB
> 4. /mnt/data/audio/Juice Newton/Quiet Lies/Juice Newton - Im Gonna Be Strong.mp3
>                                                  3/1           2389 KB
> 5. /mnt/data/audio/Vicious Rumors/Something Burning/Vicious Rumors - Ballhog.mp3
>                                                  3/1           2389 KB
> 
> ----------------------------
> 
> [root@srv-rhsoft:~]$ e4defrag "/mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3"
> e4defrag 1.46.5 (30-Dec-2021)
> ext4 defragmentation for /mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3
> [1/1]/mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3:        100%    [ OK ]
>  Success:                       [1/1]
> 
> ----------------------------
> 
> [root@srv-rhsoft:~]$ e4defrag -c /mnt/data/audio/
> e4defrag 1.46.5 (30-Dec-2021)
> <Fragmented files>                             now/best       size/ext
> 1. /mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3
>                                                  3/1           2389 KB
> 2. /mnt/data/audio/Ace Frehley/Second Sighting/Ace Frehley - Fallen Angel.mp3
>                                                  3/1           2389 KB
> 3. /mnt/data/audio/Mr. Big/Defying Gravity/Mr. Big - Mean To Me.mp3
>                                                  3/1           2389 KB
> 4. /mnt/data/audio/Juice Newton/Quiet Lies/Juice Newton - Im Gonna Be Strong.mp3
>                                                  3/1           2389 KB
> 5. /mnt/data/audio/Vicious Rumors/Something Burning/Vicious Rumors - Ballhog.mp3
>                                                  3/1           2389 KB
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: e4defrag don't work really well
  2023-02-16 16:50 ` Eric Sandeen
@ 2023-02-16 18:21   ` Reindl Harald
  2023-02-16 19:56     ` Eric Sandeen
  0 siblings, 1 reply; 5+ messages in thread
From: Reindl Harald @ 2023-02-16 18:21 UTC (permalink / raw)
  To: Eric Sandeen, linux-ext4



Am 16.02.23 um 17:50 schrieb Eric Sandeen:
> On 2/12/23 12:14 PM, Reindl Harald wrote:
>>
>> what's wrong with e4defrag that it pretends it reduced th efragments of a file to 1 while in the next "e4defrag -c" (why does that only list 5 files at all) the same file is listed again with the same old frag count?
> 
> You might want to examine the actual allocation before and after with "filefrag -v"
> which could offer some clues to whether anything was modified by e4defrag.
> 
> (I would also suggest that there is no need to defragment a 3-extent 2 megabyte
> file, in general.)

it's not a question if it's needed

the point is it pretends "Success: [1/1]" but a following "e4defrag -c" 
still says "now/best 3/1"

>> ----------------------------
>>
>> [root@srv-rhsoft:~]$ e4defrag -c /mnt/data/audio/
>> e4defrag 1.46.5 (30-Dec-2021)
>> <Fragmented files>                             now/best       size/ext
>> 1. /mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3
>>                                                   3/1           2389 KB
>> 2. /mnt/data/audio/Ace Frehley/Second Sighting/Ace Frehley - Fallen Angel.mp3
>>                                                   3/1           2389 KB
>> 3. /mnt/data/audio/Mr. Big/Defying Gravity/Mr. Big - Mean To Me.mp3
>>                                                   3/1           2389 KB
>> 4. /mnt/data/audio/Juice Newton/Quiet Lies/Juice Newton - Im Gonna Be Strong.mp3
>>                                                   3/1           2389 KB
>> 5. /mnt/data/audio/Vicious Rumors/Something Burning/Vicious Rumors - Ballhog.mp3
>>                                                   3/1           2389 KB
>>
>> ----------------------------
>>
>> [root@srv-rhsoft:~]$ e4defrag "/mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3"
>> e4defrag 1.46.5 (30-Dec-2021)
>> ext4 defragmentation for /mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3
>> [1/1]/mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3:        100%    [ OK ]
>>   Success:                       [1/1]
>>
>> ----------------------------
>>
>> [root@srv-rhsoft:~]$ e4defrag -c /mnt/data/audio/
>> e4defrag 1.46.5 (30-Dec-2021)
>> <Fragmented files>                             now/best       size/ext
>> 1. /mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3
>>                                                   3/1           2389 KB
>> 2. /mnt/data/audio/Ace Frehley/Second Sighting/Ace Frehley - Fallen Angel.mp3
>>                                                   3/1           2389 KB
>> 3. /mnt/data/audio/Mr. Big/Defying Gravity/Mr. Big - Mean To Me.mp3
>>                                                   3/1           2389 KB
>> 4. /mnt/data/audio/Juice Newton/Quiet Lies/Juice Newton - Im Gonna Be Strong.mp3
>>                                                   3/1           2389 KB
>> 5. /mnt/data/audio/Vicious Rumors/Something Burning/Vicious Rumors - Ballhog.mp3
>>                                                   3/1           2389 KB

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: e4defrag don't work really well
  2023-02-16 18:21   ` Reindl Harald
@ 2023-02-16 19:56     ` Eric Sandeen
  2023-02-16 20:35       ` Reindl Harald
  0 siblings, 1 reply; 5+ messages in thread
From: Eric Sandeen @ 2023-02-16 19:56 UTC (permalink / raw)
  To: Reindl Harald, linux-ext4

On 2/16/23 12:21 PM, Reindl Harald wrote:
> 
> 
> Am 16.02.23 um 17:50 schrieb Eric Sandeen:
>> On 2/12/23 12:14 PM, Reindl Harald wrote:
>>>
>>> what's wrong with e4defrag that it pretends it reduced th efragments of a file to 1 while in the next "e4defrag -c" (why does that only list 5 files at all) the same file is listed again with the same old frag count?
>>
>> You might want to examine the actual allocation before and after with "filefrag -v"
>> which could offer some clues to whether anything was modified by e4defrag.
>>
>> (I would also suggest that there is no need to defragment a 3-extent 2 megabyte
>> file, in general.)
> 
> it's not a question if it's needed
> 
> the point is it pretends "Success: [1/1]" but a following "e4defrag -c" still says "now/best 3/1"

I understand. It seems that your irritation at my parenthetical caused you
to skip over the request for more information from filefrag, though.

-Eric

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: e4defrag don't work really well
  2023-02-16 19:56     ` Eric Sandeen
@ 2023-02-16 20:35       ` Reindl Harald
  0 siblings, 0 replies; 5+ messages in thread
From: Reindl Harald @ 2023-02-16 20:35 UTC (permalink / raw)
  To: linux-ext4



Am 16.02.23 um 20:56 schrieb Eric Sandeen:
> On 2/16/23 12:21 PM, Reindl Harald wrote:
>>
>> Am 16.02.23 um 17:50 schrieb Eric Sandeen:
>>> On 2/12/23 12:14 PM, Reindl Harald wrote:
>>>>
>>>> what's wrong with e4defrag that it pretends it reduced th efragments of a file to 1 while in the next "e4defrag -c" (why does that only list 5 files at all) the same file is listed again with the same old frag count?
>>>
>>> You might want to examine the actual allocation before and after with "filefrag -v"
>>> which could offer some clues to whether anything was modified by e4defrag.
>>>
>>> (I would also suggest that there is no need to defragment a 3-extent 2 megabyte
>>> file, in general.)
>>
>> it's not a question if it's needed
>>
>> the point is it pretends "Success: [1/1]" but a following "e4defrag -c" still says "now/best 3/1"
> 
> I understand. It seems that your irritation at my parenthetical caused you
> to skip over the request for more information from filefrag, though

wehn you call e4defrag *multiple* times it seems to have the expected 
result - erratic operations like this are terrible

also why it's operating over files with already only 1 xtend is also a 
mircale for me - it takes ages to run it over a folder with some hundret 
MB and seems to rewrite each and every file

-----------------

BTW: it's a bad idea that your personal address forwards to gmail - 
google is rejecting any forwarded mail from a proper configured domain 
using SPF

[root@srv-rhsoft:~]$ filefrag "/mnt/data/audio/Smokie/Solid 
Ground/Smokie - Little Town Flirt.mp3"
/mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3: 3 
extents found

[root@srv-rhsoft:~]$ e4defrag "/mnt/data/audio/Smokie/Solid 
Ground/Smokie - Little Town Flirt.mp3"
e4defrag 1.46.5 (30-Dec-2021)
ext4 defragmentation for /mnt/data/audio/Smokie/Solid Ground/Smokie - 
Little Town Flirt.mp3
[1/1]/mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3: 
        100%    [ OK ]
  Success:                       [1/1]

[root@srv-rhsoft:~]$ filefrag "/mnt/data/audio/Smokie/Solid 
Ground/Smokie - Little Town Flirt.mp3"
/mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3: 2 
extents found

[root@srv-rhsoft:~]$ e4defrag "/mnt/data/audio/Smokie/Solid 
Ground/Smokie - Little Town Flirt.mp3"
e4defrag 1.46.5 (30-Dec-2021)
ext4 defragmentation for /mnt/data/audio/Smokie/Solid Ground/Smokie - 
Little Town Flirt.mp3
[1/1]/mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3: 
        100%    [ OK ]
  Success:                       [1/1]

[root@srv-rhsoft:~]$ filefrag "/mnt/data/audio/Smokie/Solid 
Ground/Smokie - Little Town Flirt.mp3"
/mnt/data/audio/Smokie/Solid Ground/Smokie - Little Town Flirt.mp3: 1 
extent found

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-02-16 20:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-12 18:14 e4defrag don't work really well Reindl Harald
2023-02-16 16:50 ` Eric Sandeen
2023-02-16 18:21   ` Reindl Harald
2023-02-16 19:56     ` Eric Sandeen
2023-02-16 20:35       ` Reindl Harald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox