From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [PATCH prototype] [0/8] Predictive bitmaps for ELF executables From: Nicholas Miell In-Reply-To: References: <20080318104437.966c10ec.akpm@linux-foundation.org> <20080319020440.80379d50.akpm@linux-foundation.org> <20080320090005.GA25734@one.firstfloor.org> <20080321172644.GG2346@one.firstfloor.org> <20080322071755.GP2346@one.firstfloor.org> <1206170695.2438.39.camel@entropy> <20080322091001.GA7264@one.firstfloor.org> Content-Type: text/plain Date: Sun, 23 Mar 2008 22:16:01 -0700 Message-Id: <1206335761.2438.63.camel@entropy> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Ulrich Drepper Cc: Andi Kleen , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: On Sun, 2008-03-23 at 21:20 -0700, Ulrich Drepper wrote: > On Sat, Mar 22, 2008 at 2:10 AM, Andi Kleen wrote: > > > Why not stick the bitmap in an xattr? > > > > xattrs are too small for potentially large binaries and a mess to manage > > (a lot of tools don't know about them) > > It does not matter a bit whether any other tool know about the xattrs. > Binaries will not change after they are created to require changing > the attributes. And it is no problem to not back the data up etc. > One really doesn't want to waste these resources. Actually, yeah, the tools issue is a bit of a red herring now that you mention it -- the only thing that's going to create and use these bitmaps is the kernel, and if bitmap gets lost due to the use of ancient tools, the kernel will just recreate the bitmap the next time the binary runs. > And as far as the size limitation is concerned. It depends on the > limit, which I don't know off hand. But really, really big binaries > don't have to be treated like this anyway. They are not started > frequently enough to justify this. The limit is filesystem dependent -- I think ext2/3s is something like 4k total for attribute names and values per inode. That's more than enough space for the largest executable on my system (emacs at 36788160 bytes) which would have a 1123 byte predictive bitmap (plus space for the name e.g. "system.predictive_bitmap"). The bitmap also could be compressed. -- Nicholas Miell -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org