From: "Vaneet Narang" <v.narang@samsung.com>
To: "Ard Biesheuvel" <ard.biesheuvel@linaro.org>,
"Maninder Singh" <maninder1.s@samsung.com>
Cc: "Russell King" <linux@armlinux.org.uk>,
"Nicolas Pitre" <nicolas.pitre@linaro.org>,
"ssantosh@kernel.org" <ssantosh@kernel.org>,
"Pratyush Anand" <panand@redhat.com>,
"Arnd Bergmann" <arnd@arndb.de>,
"Chris Brandt" <chris.brandt@renesas.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Ajeet Kumar Yadav" <ajeet.y@samsung.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"PANKAJ MISHRA" <pankaj.m@samsung.com>
Subject: Re: [PATCH 1/1] arm/module: maximum utilization of module area.
Date: Mon, 12 Dec 2016 10:08:36 +0000 [thread overview]
Message-ID: <20161212100836epcms5p2679e36dab1af137e07ecb33970362463@epcms5p2> (raw)
In-Reply-To: <CGME20161206091317epcas3p3702de092ecce4ac079b27180dd48c744@epcas3p3.samsung.com>
[-- Attachment #1: Type: text/plain, Size: 1449 bytes --]
Hi Ard,
>> +#ifndef CONFIG_THUMB2_KERNEL
>> +#define MODULES_START ALIGN((unsigned long)_etext - SZ_32M, PAGE_SIZE)
>
>On a multi_v7_defconfig kernel, the text size is >8 MB, which means
>you are only adding ~7 MB to the module area, while consuming 16 MB of
>additional address space.
I am not sure if 16MB virtual address space will make any difference on embedded
systems where physical memory is already less than virtual address space.
if required address space wastage can be reduced by keeping TASK_SIZE as
PAGE_OFFSET - 24MB like below
#define MODULES_VADDR (PAGE_OFFSET - SZ_24M)
#define TASK_SIZE (UL(CONFIG_PAGE_OFFSET) - UL(SZ_24M))
> Given that 20 MB modules are very uncommon,
Size of all modules can be 20MB, this seems to be normal scenario.
>I think it is better to enable CONFIG_ARM_MODULE_PLTS instead. That
CONFIG_ARM_MODULE_PLTS has function call overhead as it refers PLT table
while calling kernel functions. Also size of modules will also gets increased a bit.
So using short calls from modules to kernel will be faster.
These changes trying to utilize best available space for kernel modules for
making short calls.
So CONFIG_ARM_MODULE_PLTS is not required when modules
can be accomdated within 20MB.
>way, there is no need to update these defaults for everyone.
>
>> +#else
>> +#define MODULES_START MODULES_VADDR
Thanks & Regards,
Vaneet Narang
next prev parent reply other threads:[~2016-12-12 10:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-06 8:29 Maninder Singh
2016-12-06 9:13 ` Ard Biesheuvel
2016-12-06 15:57 ` Nicolas Pitre
[not found] ` <CGME20161206091317epcas3p3702de092ecce4ac079b27180dd48c744@epcas3p3.samsung.com>
2016-12-12 10:08 ` Vaneet Narang [this message]
2016-12-12 10:23 ` Russell King - ARM Linux
[not found] ` <CGME20161212102403epcas4p2e039072e2acdc3d20c1b8ac86e823375@epcas4p2.samsung.com>
2016-12-12 11:22 ` Vaneet Narang
2016-12-12 12:56 ` Russell King - ARM Linux
2016-12-12 15:28 ` Nicolas Pitre
2016-12-12 16:57 ` Ard Biesheuvel
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=20161212100836epcms5p2679e36dab1af137e07ecb33970362463@epcms5p2 \
--to=v.narang@samsung.com \
--cc=ajeet.y@samsung.com \
--cc=ard.biesheuvel@linaro.org \
--cc=arnd@arndb.de \
--cc=chris.brandt@renesas.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=maninder1.s@samsung.com \
--cc=nicolas.pitre@linaro.org \
--cc=panand@redhat.com \
--cc=pankaj.m@samsung.com \
--cc=ssantosh@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®