From owner-freebsd-questions@freebsd.org Thu Jul 9 01:11:07 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id EF2A235B986 for ; Thu, 9 Jul 2020 01:11:07 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by mx1.freebsd.org (Postfix) with ESMTP id 4B2J5k546kz4K5P for ; Thu, 9 Jul 2020 01:11:06 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from [192.168.43.113] (unknown [172.58.139.209]) (Authenticated sender: galtsev) by kicp.uchicago.edu (Postfix) with ESMTPSA id 575E04E639 for ; Wed, 8 Jul 2020 20:11:00 -0500 (CDT) Subject: Re: Are there any real advantages of ext4 over ext2 ? To: freebsd-questions@freebsd.org References: <20200708215903.73fe7f9b.freebsd@edvax.de> From: Valeri Galtsev Message-ID: <87d3cc8d-7cba-1024-6708-6ffbc3d7b0ab@kicp.uchicago.edu> Date: Wed, 8 Jul 2020 20:10:58 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200708215903.73fe7f9b.freebsd@edvax.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4B2J5k546kz4K5P X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=uchicago.edu (policy=none); spf=none (mx1.freebsd.org: domain of galtsev@kicp.uchicago.edu has no SPF policy when checking 128.135.20.70) smtp.mailfrom=galtsev@kicp.uchicago.edu X-Spamd-Result: default: False [1.75 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.27)[0.271]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_SPAM_MEDIUM(0.29)[0.291]; RCPT_COUNT_ONE(0.00)[1]; RECEIVED_SPAMHAUS_PBL(0.00)[172.58.139.209:received]; NEURAL_SPAM_LONG(0.09)[0.093]; R_SPF_NA(0.00)[no SPF record]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:160, ipnet:128.135.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[uchicago.edu : No valid SPF, No valid DKIM,none] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2020 01:11:08 -0000 On 7/8/20 2:59 PM, Polytropon wrote: > On Wed, 8 Jul 2020 23:40:12 +0530, Manish Jain wrote: >> I have a dual boot computer with FreeBSD and Linux. >> >> My Linux partitions are ext4 simply because ext4 is now the default >> under Linux. However, ext4 is not supported directly by FreeBSD. As a >> result, writing to those filesystems from FreeBSD is painfully slow (via >> fuse). >> >> It is notable that ext2fs is directly supported by FreeBSD. > > You are talking about different levels of support - by the > kernel or by a kernel module, for read-only or read/write. > > > >> ext4 supports huge files (in terra bytes) [...] > > Prefix: tera. Tera, 10^12 != terra, earth. ;-) > No, no, that was really fun to read! I for one make fun a bit differently, when it is realy large munber of TBs I say: Terror-bytes ;-) Valeri > > >> [...] and filesystems (in thousands >> of peta bytes). But very few people have such files/filesystems. At >> least, don't - my use case is max 64 GB file, max 500 GB filesystem. > > If you have such a case, ext4 is possibly an option, but there > are other filesystems that might be better suited to hold > extremely large files withing even larger filesystems. > > > >> So I wonder are there any real advantages of ext4 over ext2 ? > > In my experience, ext4 is more stable than ext2, and therefore > can cope with potential filesystem problems better. Furthermore, > it's more recent, so it's not entirely impossible that ext2 > support will be removed sometimes in the future. > > However, for the case of a "data exchange partition to be used > for FreeBSD and Linux in read/write mode", ext2 can definitely > be called a lowest common denominator. That doesn't mean it is > superior to more recent native filesystems, but for _that_ case, > it surely is a valid choice. > > > -- ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++