mke2fs options for very large filesystems

Jeff Dinisco jeff at jettis.com
Wed Feb 9 14:07:41 UTC 2005


Ted,

Could you explain why filesystem performance will degrade when the last
5% is used?  I have several 1TB filesystems w/ only 1% reserved.  The
man page describes this space as "reserved for the super-user".  I
always assumed this was a buffer for root to be able to perform
operations on a full filesystem.  It seems as though 10GB is more than
enough.  Is this not the case?  

Thanks.

 - Jeff

-----Original Message-----
From: ext3-users-bounces at redhat.com
[mailto:ext3-users-bounces at redhat.com] On Behalf Of Theodore Ts'o
Sent: Tuesday, February 08, 2005 9:03 PM
To: kwijibo at zianet.com; ext3 users list
Subject: Re: mke2fs options for very large filesystems

On Tue, Feb 08, 2005 at 12:59:53PM -0700, Andreas Dilger wrote:
> On Feb 08, 2005  08:00 -0700, kwijibo at zianet.com wrote:
> > Just as a side note but do you really want to reserve 5%
> > of your 2TB partition for root?

The filesystem performance will degrade if you eat into the last 5%,
but as long as you're willing to live with this tradeoff, and assuming
you don't need to reserve space for things like log files, then sure,
you can always drop the percentage.

> > Another side question on this. Is it possible to make mkfs
> > accept non-integer values for the reserved percentage?
> > It is getting to the point these days where partitions
> > are getting so big that even 1% is becoming quite a waste.
> > However it would still be good to have some space reserved.
> 
> The value is stored in the kernel as a blocks count, so it is possible
> to store any value there.  It should be possible to change the mke2fs
> and tune2fs option parsing to accept a float there.  I think you can
> set this manually via debugfs and "ssv" (in the latest e2fsprogs there
> is also a command to set a single superblock value).

The officially supported to set a specific number of reserved blocks is

	tune2fs -r <number_of_reserved_blocks> <filesystem-device-file>

Since mke2fs sometimes is used in install floppies, etc., I decided
there was no point to drag in floating point routines, especially when
you can always set the number of reserved blocks directly using
tune2fs -r after you create the filesystem.

					- Ted

_______________________________________________
Ext3-users mailing list
Ext3-users at redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users




More information about the Ext3-users mailing list