* convert from ext3 versus fresh format
@ 2010-11-28 21:16 linux_ext4
2010-11-29 5:51 ` Andreas Dilger
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: linux_ext4 @ 2010-11-28 21:16 UTC (permalink / raw)
To: linux-ext4
Hi list,
I have a production system installed on an SSD, whose installer formats
the target drive as ext3 automatically. I've since learned that ext4 is
more suited for use on SSDs and am considering an upgrade to ext4.
I see the procedure on how to convert from ext3 to ext4 on the wiki, and
before I proceed would like to know whether there's an advantage to
formatting as ext4 from the start as opposed to converting after an ext3
format.
In the case that there is a difference, what exactly is sacrificed in
choosing one over the other?
Regards,
-C
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: convert from ext3 versus fresh format
2010-11-28 21:16 convert from ext3 versus fresh format linux_ext4
@ 2010-11-29 5:51 ` Andreas Dilger
2010-11-29 5:52 ` Michael Rubin
2010-11-29 17:29 ` Greg Freemyer
2 siblings, 0 replies; 4+ messages in thread
From: Andreas Dilger @ 2010-11-29 5:51 UTC (permalink / raw)
To: linux_ext4; +Cc: linux-ext4
On 2010-11-28, at 14:16, linux_ext4@proinbox.com wrote:
> I have a production system installed on an SSD, whose installer formats
> the target drive as ext3 automatically. I've since learned that ext4 is
> more suited for use on SSDs and am considering an upgrade to ext4.
>
> I see the procedure on how to convert from ext3 to ext4 on the wiki, and
> before I proceed would like to know whether there's an advantage to
> formatting as ext4 from the start as opposed to converting after an ext3
> format.
It is possible to use the ext4 filesystem code on ext3-formatted filesystems without any conversion being done. Enabling extents will improve performance, and uninit_bg will improve e2fsck performance.
You wouldn't be able to take advantage of flex_bg without reformatting (or some significant surgery to resize2fs).
If the inodes are "large" (256 bytes) then mounting the filesystem with ext4 will allow the inodes to use nanosecond timestamps.
> In the case that there is a difference, what exactly is sacrificed in
> choosing one over the other?
Reformatting and reinstalling and/or restoring from backup into an ext4-formatted filesystem will allow using a few of the features lay out the files with extents, and reduce the metadata overhead. There will be some performance benefits, but I don't think it will necessarily be dramatic.
Cheers, Andreas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: convert from ext3 versus fresh format
2010-11-28 21:16 convert from ext3 versus fresh format linux_ext4
2010-11-29 5:51 ` Andreas Dilger
@ 2010-11-29 5:52 ` Michael Rubin
2010-11-29 17:29 ` Greg Freemyer
2 siblings, 0 replies; 4+ messages in thread
From: Michael Rubin @ 2010-11-29 5:52 UTC (permalink / raw)
To: linux_ext4; +Cc: linux-ext4
On Sun, Nov 28, 2010 at 1:16 PM, <linux_ext4@proinbox.com> wrote:
> I see the procedure on how to convert from ext3 to ext4 on the wiki, and
> before I proceed would like to know whether there's an advantage to
> formatting as ext4 from the start as opposed to converting after an ext3
> format.
We are seeing sizeable improvement on formatting ext4 vs converting
from ext2 on magnetic platters.
I would expect SSDs would also see an improvement due to extents for
ext4 on new files and having no indirect blocks to deal with from
ext3. While the cheaper seeks will make some of the improvements less
impactful, the fewer accesses should help a lot.
Also I don't think an upgrade allows for flex block groups while a
format will. This is something you might want to consider also
depending on how much you want to tune.
> In the case that there is a difference, what exactly is sacrificed in
> choosing one over the other?
AFAIK the only thing sacrificed in formatting vs upgrade is that you
have to preserve your data. If you don't have this concern I would
format cleanly.
mrubin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: convert from ext3 versus fresh format
2010-11-28 21:16 convert from ext3 versus fresh format linux_ext4
2010-11-29 5:51 ` Andreas Dilger
2010-11-29 5:52 ` Michael Rubin
@ 2010-11-29 17:29 ` Greg Freemyer
2 siblings, 0 replies; 4+ messages in thread
From: Greg Freemyer @ 2010-11-29 17:29 UTC (permalink / raw)
To: linux_ext4; +Cc: linux-ext4
On Sun, Nov 28, 2010 at 4:16 PM, <linux_ext4@proinbox.com> wrote:
> Hi list,
>
> I have a production system installed on an SSD, whose installer formats
> the target drive as ext3 automatically. I've since learned that ext4 is
> more suited for use on SSDs and am considering an upgrade to ext4.
If your only driver is SSD discard capability, then use the ext4
driver to work with your ext3 partition. (It's backward compatible.)
Then I would recommend you use the userspace tool wiper.sh / hdparm to
do a once a week or so discard of freespace.
I maintain a page about discard for opensuse that you might find worth reading:
http://en.opensuse.org/SDB:SSD_discard_%28trim%29_support
Greg
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-11-29 17:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-28 21:16 convert from ext3 versus fresh format linux_ext4
2010-11-29 5:51 ` Andreas Dilger
2010-11-29 5:52 ` Michael Rubin
2010-11-29 17:29 ` Greg Freemyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox