From: Dave Jones Subject: Re: [PATCH] ext4: optimize ext4_es_shrink() Date: Fri, 1 Mar 2013 11:11:30 -0500 Message-ID: <20130301161130.GA24367@redhat.com> References: <20130227174553.GA224@x4> <20130227184912.GA19624@thunk.org> <20130227185625.GA224@x4> <20130227191923.GA1121@redhat.com> <20130227192907.GB14253@thunk.org> <20130227201217.GD14253@thunk.org> <20130301033005.GA7081@redhat.com> <20130301040039.GA4452@thunk.org> <20130301050029.GB4452@thunk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "gnehzuil.liu" , Zheng Liu , "linux-ext4@vger.kernel.org" To: "Theodore Ts'o" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:21289 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751058Ab3CAQLl (ORCPT ); Fri, 1 Mar 2013 11:11:41 -0500 Content-Disposition: inline In-Reply-To: <20130301050029.GB4452@thunk.org> Sender: linux-ext4-owner@vger.kernel.org List-ID: On Fri, Mar 01, 2013 at 12:00:29AM -0500, Theodore Ts'o wrote: > When the system is under memory pressure, ext4_es_srhink() will get > called very often. So optimize returning the number of items in the > file system's extent status cache by keeping a per-filesystem count, > instead of calculating it each time by scanning all of the inodes in > the extent status cache. > > Also rename the slab used for the extent status cache to be > "ext4_extent_status" so it's obviousl the slab in question is created > by ext4. Seems to work with no ill effects afaics. thanks, Dave