From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by ozlabs.org (Postfix) with ESMTP id 26395B7CEE for ; Wed, 24 Mar 2010 21:03:09 +1100 (EST) Received: by fxm24 with SMTP id 24so1992931fxm.23 for ; Wed, 24 Mar 2010 03:03:07 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20100323194401.0B7724C022@gemini.denx.de> References: <4BA865D4.1090403@freemail.hu> <20100323194401.0B7724C022@gemini.denx.de> Date: Wed, 24 Mar 2010 13:03:05 +0300 Message-ID: Subject: Re: Linux patches for XIP on MPC8xx? From: Vitaly Wool To: Wolfgang Denk Content-Type: text/plain; charset=ISO-8859-1 Cc: linuxppc-dev Development , Wolfgang Grandegger , =?ISO-8859-1?Q?N=E9meth_M=E1rton?= List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, > There were very few tests done with later kernel versions, and in all > practical system configurations we tested we found that XIP did not > give real benefits. Usually execution from flash was slower than when > running from RAM, and even booting a (inevitably uncompressed) kernel > from flash is typically slower than loading a compressed image to RUM > and booting from there. at some point we were testing some hybrid approaches for XIP and that gave some nice results. First of all, the kernel should not necessarily be uncompressed. Because .data and friend sections are copied to RAM anyway, you can compress them. Besides, we had the "weird" XIP kernel version with only run-once code run as XIP (like .initdata), copying the rest of kernel to RAM in the background while initializing things, and it was really fast and didn't produce performance penalty on the further execution. > So except for some highly specialized applications (you may also call > these "exotic" configurations) XIP for the Linux kernel does not make > much sense to me. Well, I'd put it this way: plain XIP usage is obsolete in the most cases, but the idea is still viable if you apply it right :) Thanks, Vitaly