lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4AC46529.4040605@sx.jp.nec.com>
Date:	Thu, 01 Oct 2009 17:15:37 +0900
From:	Kazuya Mio <k-mio@...jp.nec.com>
To:	Greg Freemyer <greg.freemyer@...il.com>
CC:	linux-ext4@...r.kernel.org, Theodore Tso <tytso@....edu>
Subject: Re: [PATCH 1/3] e4defrag: output blocks per extent by -c option

2009/10/01 3:28, Greg Freemyer wrote::
> 2009/9/30 Kazuya Mio <k-mio@...jp.nec.com>:
>> e4defrag with -c option outputs "ratio" that means the levels of
>> fragmentation. However, it's difficult for users to understand, so we will
>> use blocks per extent instead of ratio.
>>
>> Before:
>> # e4defrag -c /mnt/mp1/file
>> <File>                                         now/best          ratio
>> /mnt/mp1/file                                   14/1             0.01%
>>
>>  Total/best extents                             14/1
>>  Fragmentation ratio                            0.01%
>>  Fragmentation score                            0.10
>>  [0-30 no problem: 31-55 a little bit fragmented: 55- needs defrag]
>>  This file(/mnt/mp1/file) does not need defragmentation.
>>  Done.
>>
>> After:
>> # e4defrag -c /mnt/mp1/file
>> <File>                                         now/best        blk/ext
>> /mnt/mp1/file                                   14/1              7142
>>
>>  Total/best extents                             14/1
>>  Average blocks per extent                      7142
>>  Fragmentation score                            0
>>  [0-30 no problem: 31-55 a little bit fragmented: 55- needs defrag]
>>  This file(/mnt/mp1/file) does not need defragmentation.
>>  Done.
> 
> RFC
> 
> If we are going go that far (which I like), how about adding the avg
> extent size in bytes.  (ie. 7142 * blocksize I assume).
> 
> Also a note about the max blocks / extent might be good.
> 
> ie. Add a more or less hard coded line
> Ext4 max blocks per extent     32,768  (128MiB)

Your ideas sound good. How about the following output image?

# e4defrag -c /mnt/mp1/file
<File>                                         now/best         KB/ext
/mnt/mp1/file                                   14/1              4000

 Total/best extents                             14/1
 Min bytes per extent                           1024 KB
 Max bytes per extent                           20489 KB
 Average bytes per extent                       4000 KB
 Fragmentation score                            0
 [0-30 no problem: 31-55 a little bit fragmented: 55- needs defrag]
 This file(/mnt/mp1/file) does not need defragmentation.
 Done.

Regards,

Kazuya Mio
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ