[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <ACA922D4-F6A6-4BD6-92CE-39CA97538B1E@dilger.ca>
Date: Fri, 19 Sep 2014 13:48:24 -0600
From: Andreas Dilger <adilger@...ger.ca>
To: TR Reardon <thomas_reardon@...mail.com>
Cc: Theodore Ts'o <tytso@....edu>,
"linux-ext4@...r.kernel.org" <linux-ext4@...r.kernel.org>
Subject: Re: Reserved GDT inode: blocks vs extents
On Sep 19, 2014, at 11:26 AM, TR Reardon <thomas_reardon@...mail.com> wrote:
>> Date: Fri, 19 Sep 2014 12:36:49 -0400
>> From: tytso@....edu
>> To: thomas_reardon@...mail.com
>> CC: linux-ext4@...r.kernel.org
>> Subject: Re: Reserved GDT inode: blocks vs extents
>>
>> On Fri, Sep 19, 2014 at 11:54:39AM -0400, TR Reardon wrote:
>>> Hello all: there's probably a good reason for this, but I'm wondering why inode#7 (reserved GDT blocks) is always created with a block map rather than extent?
>>>
>>> [see ext2fs_create_resize_inode()]
>>
>> But that may be moot, since one of the things that I've been
>> considering is to stop pinning the block group descriptors in memory,
>> and just start reading in memory as they are needed. The rationale is
>> that for a 4TB disk, we're burning 8 MB of memory. And if you have
>> two dozen disks attached to your system, then you're burning 192
>> megabytes of memory, which starts to fairly significant amounts of
>> memory, especially for bookcase NAS servers.
>
> But I'd argue that in many use cases, in particular bookcase NAS servers,
> ext4+vfs should optimize for avoiding spinups rather than reducing RAM usage.
> Would this change increase spinups when scanning for changes, say via rsync?
I think not pinning the group descriptors would be a bad thing. If
we consider that reading block allocation bitmaps to be slow, then it
would be twice as slow having to read the group descriptor from disk
before even knowing which groups have free space for allocation.
I think this kind of change only makes sense if there is some other
in-memory structure (e.g. rbtree) to describe the free space in the
filesystem. That would be a net win, since we wouldn't have to scan
potentially thousands of groups to find free space.
Cheers, Andreas
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists