Re: module vs main kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 3, 2013 at 8:33 AM, Abu Rasheda <rcpilot2010@xxxxxxxxx> wrote:
> I have my implementation of socket APIs,
>
> I sock_unregister(AF_INET); & sock_register(&inet_family_ops), this replaces
> kernel resident socket related calls with my socket related calls. My code
> is loaded as kernel module.
>
> My question, is Linux kernel able to call its own socket call more
> efficiently (less overhead, fewer CPU cycles) than mine ? code is running on
> Intel x86_64 arch.
>
> Any pointer is appreciated.


IMHO, strictly from module vs core kernel code perspective, there is
no speed difference.

The reason is, once the kernel is loaded, it is the kernel itself. So
it is not separated into isolated segment or something like that. Yes
module is loaded into vmalloc-ed memory area, but that's it.

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux