Prevent minor defects of the page in real time on linux
source link: https://www.codesd.com/item/prevent-minor-defects-of-the-page-in-real-time-on-linux.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Prevent minor defects of the page in real time on linux
I need to make the process to run in real time as much as possible.
All the communication is done via shared memory - memory mapped files - no system calls at all - it uses busy waiting on shared memory.
The process runs under real time priority and all memory is locked with mlockall(MCL_CURRENT|MCL_FUTURE)
which succeeds and process has enough ulimits
to have all the memory locked.
When I run it on it perf stat -p PID
I still get counts of minor page faults.
I tested this with both process affinity and without.
Question:
Is it possible to eliminate them at all - even minor page faults?
I solved this problem by switching from memory mapped files to POSIX shared memory shm_open
+ memory locking.
Related Articles
Header ('location: index.php') redirects to index.php after refreshing the page for 2 times
Search for a mysql database and view the results in real time on my site
Is there a way to update the ASP page in real time, like Ajax?
How do I prevent automatic reloading of the page after the XMLHttpRequest call?
How to prevent form overwriting when the page is refreshed via PHP
Is there a way to get the total size of files uploaded to a page in real time using Javascript?
dojo.require () prevents Firefox from rendering the page
How to prevent blank publication when the page is refreshed
How to handle the processing of real-time events that triggered before processing the previous event is completed (C #)
Changing the content of the map in real time, Leaflet js
Can I create a Web page to control another web page in real time?
Subtract the digital content from one text field of another and display the results in real time?
Solr 5.4.1 Merge the index in real time
Prevent multiple users on one page at a time
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK