LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Disabling Linux kernel page zeroing (https://www.linuxquestions.org/questions/linux-newbie-8/disabling-linux-kernel-page-zeroing-4175663483/)

sgeorgiou 10-31-2019 12:31 PM

Disabling Linux kernel page zeroing
 
Hi,

I am trying to disable the kernel's page/memory zeroing in order to gain performance in a safe environment (experimental purpose) while utilizing applications that make heavy use of malloc operation. I have found some function in the kernel's source code such as free_pages_prepare, however, when disabling the associated function or memset (e.g., kernel_poison_pages-> ... -> poison_page ) it crushed the kernel on boot time. Any idea or hints on how I can do that?

Thanks in advance,
Stefanos

pan64 11-01-2019 12:15 PM

since you gave no code, real explanation about the work you made hard to say anything. From the other hand I do not think you can gain significant performance this way.
I would rather try to optimize these malloc calls in those applications (if possible). I do not really understand what do you mean by "safe environment".

sgeorgiou 11-01-2019 02:00 PM

Hello Pan64,

My main concern is to investigate the memory zeroing mechanism performance impact on the Linux systems and not optimise an application.
Therefore, I would like to know i) if it is possible to disable it and recompile the Kernel modules again and ii) if yes how to do it.
By the term "safe environment" I mean with no malicious users.

I did not share any code since I would like to perform some experiments with benchmarks after I disable it.


All times are GMT -5. The time now is 11:03 PM.