Module vs Kernel main performacne
From: Mulyadi Santosa <hidden>
Date: 2012-05-30 16:45:54
Hi... On Wed, May 30, 2012 at 11:51 AM, Abu Rasheda [off-list ref] wrote:
When you say, LKM area is prepared with vmalloc is it for code / executable you refering too ?
Yes, AFAIK memory area code and static data in linux kernel module is allocated via vmalloc().
if so will it matter for data copy ?
see my previous reply :)
Point # 2. Some one was saying that on atleast MIPS it takes more cycle to call kernel main function from module because of log jump. Does it apply to x86_64 to ?
IIRC long jump means jumping more than 64 KB...but that's in real mode in 32 bit...so I am not sure whether it still applies in protected mode.
To teat above two should I make my module part of static kernel ?
good idea....i think you can try that... :) -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com