From: Ralf Baechle <ralf@linux-mips.org>
To: "Måns Rullgård" <mans@mansr.com>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] MIPS: Use ARCH_USE_BUILTIN_BSWAP.
Date: Tue, 29 Sep 2015 16:27:46 +0200 [thread overview]
Message-ID: <20150929142745.GD2505@linux-mips.org> (raw)
In-Reply-To: <yw1x1tdhqrhn.fsf@unicorn.mansr.com>
On Tue, Sep 29, 2015 at 02:34:12PM +0100, Måns Rullgård wrote:
> >> >> text data bss dec hex filename
> >> >> 3996071 155804 88992 4240867 40b5e3 vmlinux ip22 baseline
> >> >> 3985687 159900 88992 4234579 409d53 vmlinux ip22 + bswap patch
> >> >> 6913157 378552 251024 7542733 7317cd vmlinux ip27 baseline
> >> >> 6878581 378552 251024 7508157 7290bd vmlinux ip27 + bswap patch
> >> >> 5773777 268752 187424 6229953 5f0fc1 vmlinux malta baseline
> >> >> 5773401 268752 187424 6229577 5f0e49 vmlinux malta + bswap patch
> >> >
> >> > A still unexplained effect of this patch and the reason why I have not
> >> > committed this patch is the increase of the data size for the ip22
> >> > configuration by 4096 bytes. There is no change in data size expected.
> >> > Also this affects only the test with ip22_defconfig not any of the others
> >> > I've tried.
> >>
> >> Have you checked which object file(s) the increase comes from?
> >
> > The data size difference is created in the final link stage. data for
> > all inividual .o files even vmlinux.o; only vmlinux differs.
>
> Could it be an alignment thing. Check if the alignment of some data
> section has changed from something smaller to 4096.
Almost. Alignment has changed but 8k alignment of init_thread_union
forced the linker to waste an extra 4k.
I always knew this could happen but never actually observed this. Hard to
avoid but it's yet another reason to minimize stack size which on MIPS
may be up to 4 pages for 64 bit kernels with 4k pages.
Ralf
prev parent reply other threads:[~2015-09-29 14:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-29 10:28 [PATCH] MIPS: Use ARCH_USE_BUILTIN_BSWAP Ralf Baechle
2015-09-29 11:52 ` Ralf Baechle
2015-09-29 11:59 ` Måns Rullgård
2015-09-29 12:09 ` Ralf Baechle
2015-09-29 13:28 ` Ralf Baechle
2015-09-29 13:34 ` Måns Rullgård
2015-09-29 14:27 ` Ralf Baechle [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150929142745.GD2505@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=mans@mansr.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.