| To: | "Ralf Baechle" <ralf@linux-mips.org> |
|---|---|
| Subject: | Re: [PATCH 1/7] signals: reduce {setup,restore}_sigcontext sizes |
| From: | "Franck Bui-Huu" <vagabon.xyz@gmail.com> |
| Date: | Wed, 24 Jan 2007 13:25:27 +0100 |
| Cc: | linux-mips@linux-mips.org, "Franck Bui-Huu" <fbuihuu@gmail.com> |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IMCG2Joifk6bbEYi/RHViHaBvFUiChU0FO+7cP2WJlZtdbVQrlqYe3U/lKyiGqD8qDvEGXILzgHoo/1uxCgOca2XCU+HP8AWR+5ZyTp8bKyerPBIO5NK/fRbJmZU80t70/vjZcbF08tcPALfmk5xPgK8rmrCFprUuggEl0AQyVg= |
| In-reply-to: | <20070123143814.GE18083@linux-mips.org> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1169561903878-git-send-email-fbuihuu@gmail.com> <11695619031540-git-send-email-fbuihuu@gmail.com> <20070123143814.GE18083@linux-mips.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
On 1/23/07, Ralf Baechle <ralf@linux-mips.org> wrote: On Tue, Jan 23, 2007 at 03:18:17PM +0100, Franck Bui-Huu wrote: > From: Franck Bui-Huu <fbuihuu@gmail.com> > > This trivial change reduces considerably code size of these > 2 functions callers. For instance, here is the figures for > arch/kernel/signal.o objects: > > text data bss dec hex filename > 11972 0 0 11972 2ec4 arch/mips/kernel/signal.o~old > 5380 0 0 5380 1504 arch/mips/kernel/signal.o~new Have you ran any benchmarks on this? Unrolling the loops used to make a noticable difference.
OK, I ran a micro benchmark on setup_frame() which calls
setup_sigcontext(). I got the execution time of setup_frame() by
counting the number of cycles spent in it (by using cp0_count
register).
Without this patchset applied it takes about 14600 cycles for
setup_frame() execution whereas with this patchset applied it takes
10300 cycles. These figures are averages.
So it appears that this patchset has a positive impact on both size and speed.
thanks
--
Franck
|
| Previous by Date: | Re: [PATCH] MMC: au1xmmc R6 response support, Pierre Ossman |
|---|---|
| Next by Date: | Re: [PATCH] seq_file conversion: APM on mips, Pavel Machek |
| Previous by Thread: | Re: [PATCH 1/7] signals: reduce {setup,restore}_sigcontext sizes, Ralf Baechle |
| Next by Thread: | [PATCH 2/7] signal: do not inline functions in signal-common.h, Franck Bui-Huu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |