LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2019, 01:31 PM   #1
sgeorgiou
LQ Newbie
 
Registered: Oct 2019
Posts: 2

Rep: Reputation: Disabled
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
 
Old 11-01-2019, 01:15 PM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,599

Rep: Reputation: 4358Reputation: 4358Reputation: 4358Reputation: 4358Reputation: 4358Reputation: 4358Reputation: 4358Reputation: 4358Reputation: 4358Reputation: 4358Reputation: 4358
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".
 
Old 11-01-2019, 03:00 PM   #3
sgeorgiou
LQ Newbie
 
Registered: Oct 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Zeroing harddrive bunjusnus Linux - Newbie 4 03-16-2009 12:59 PM
hard disk zeroing rockarolla Linux - Software 4 08-25-2008 01:29 AM
Zeroing out ununsed space in a ext3 partition saravkrish Linux - General 2 11-19-2004 04:10 PM
Zeroing free space? RyanBarnard Linux - Software 2 09-23-2004 07:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration