linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Regarding module size change in ARM kernel
@ 2014-07-16 16:51 Venkateswar Rao Goli
  2014-07-16 18:45 ` Russell King - ARM Linux
  0 siblings, 1 reply; 2+ messages in thread
From: Venkateswar Rao Goli @ 2014-07-16 16:51 UTC (permalink / raw)
  To: linux-arm-kernel

Hi there,

I'm running out of module size memory i.e, 14MB  ( CONFIG_HIGHMEM is
enabled in config ) . I've tried to increase by changing as below,
could you please let us know if it would cause any regressions in any
of the application or scenario ?

linux-3.8.13-2.2/arch/arm/include/asm/memory.h  ?

NEW:
#define TASK_SIZE               (UL(CONFIG_PAGE_OFFSET) - 18*1024*1024)
#define MODULES_VADDR           (PAGE_OFFSET - 18*1024*1024)

OLD:
#define TASK_SIZE               (UL(CONFIG_PAGE_OFFSET) - UL(SZ_16M))
#define MODULES_VADDR           (PAGE_OFFSET - 16*1024*1024)


kernel version     :   3.8.13-2.2 #3 SMP
CPU model name      :    ARMv7 Processor rev 2 (v7l)


Regards,
Venkat Goli

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Regarding module size change in ARM kernel
  2014-07-16 16:51 Regarding module size change in ARM kernel Venkateswar Rao Goli
@ 2014-07-16 18:45 ` Russell King - ARM Linux
  0 siblings, 0 replies; 2+ messages in thread
From: Russell King - ARM Linux @ 2014-07-16 18:45 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Jul 16, 2014 at 05:51:16PM +0100, Venkateswar Rao Goli wrote:
> Hi there,
> 
> I'm running out of module size memory i.e, 14MB  ( CONFIG_HIGHMEM is
> enabled in config ) .

Quite simply, don't have such big modules.  Really.  If you're filling
14MB you're doing something very wrong.

> I've tried to increase by changing as below,
> could you please let us know if it would cause any regressions in any
> of the application or scenario ?

You're increasing the chances that the module text won't be able to reach
the kernel text, and so relocations will fail.  18MB should work fine
provided your kernel is no larger than 14MB.

But seriously, do something about your huge modules.  Filling 14MB is
just insane.

-- 
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-16 18:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-16 16:51 Regarding module size change in ARM kernel Venkateswar Rao Goli
2014-07-16 18:45 ` Russell King - ARM Linux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).