This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Performance boost by writing an application in Kernel space rather than kernel space

Hi Experts,

I would like to write an application, which will better choice !!

1. Writing a simple application in the User space and invoked during startup and run the system forever. (It seems to be easy but not meeting the time critical event)

 

(or)

 

2. Configure the kernel and disable the unwanted hardware modules and put the application in to the kernel thread. So it will be preemptive and tightly packed with less latency.

  • What is your type of application and could you explain a bit on your requirement ?
  • Hi Lyf,

    Running an application on user space and Kernel space has its own list of advantages and disadvantages.

    It should be decided upon the project requirements like "How frequently the application will request kernel to interact with the hardware, number of threads the app possess and the scheduling mechanisms to switch between the threads, memory management, resource management e.t.c.

    You might be the better person to analyse the pros and cons of each method which will be suitable for your project as you will have the better understanding of the project than anybody else.

    Regards,

    Shankari.

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.

    --------------------------------------------------------------------------------------------------------

  • Hi Shankari,

    Thanks for the valuable suggestions.

    I would like to run the preemptive based task switch.

    Is it possible to achieve the real time functionality using the Linux kernel 3.12 and above ?

    How could it be profiled ?

    Regards,
    Lyf
  • Hi Lyf,

    If you want to write Application - you can do this only in a User Space. All in a kernel space will be driver or module, but not Application. I strongly recommend to write Application only in a User Space.

    BR
    Ivan