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] [day] [month] [year] [list]
Message-ID: <4FC7D83A.40003@redhat.com>
Date:	Thu, 31 May 2012 15:44:42 -0500
From:	Eric Sandeen <sandeen@...hat.com>
To:	ext4 development <linux-ext4@...r.kernel.org>
Subject: Re: [PATCH] mke2fs: enable bigalloc if -C is specified

On 5/31/12 11:52 AM, Eric Sandeen wrote:
> If -C is specified w/o -O bigalloc it has no effect and generates
> no error.  If a cluster size is specified, that should imply
> bigalloc.

Hm, so should -O bigalloc even be supported (or documented), or should
this always be done via -C XXXX?  It seems better to specify the size
rather than have some other -O option which picks an (arbitrary?) default
of 16x.

I'm also wondering what kind of guidance we should offer for choosing
cluster sizes - or if we should default to a cluster size given either
fs size, inode count, or combinations thereof.

I think the hard cold truth is that ext4 just isn't sufficiently scalable
at larger sizes without a larger cluster size, so I'm inclined to start
thinking about choosing some increasing cluster sizes as defaults, what
do you think?

And finally, is this stuff robust enough to start documenting in
the manpages yet?  I'm not sure the enospc problems have been worked
out yet...

-Eric

> Signed-off-by: Eric Sandeen <sandeen@...hat.com>
> ---
> 
> diff --git a/misc/mke2fs.c b/misc/mke2fs.c
> index 7ec8cc2..d1944dc 100644
> --- a/misc/mke2fs.c
> +++ b/misc/mke2fs.c
> @@ -1351,6 +1351,8 @@ profile_error:
>  					optarg);
>  				exit(1);
>  			}
> +			fs_param.s_feature_ro_compat |=
> +					EXT4_FEATURE_RO_COMPAT_BIGALLOC;
>  			break;
>  		case 'D':
>  			direct_io = 1;
> 
> 

--
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