I want to avoid 'clear_page' calls for system processes

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












So, I have a tightly controlled, heavy graphics system running on a custom build of android for a client.



I want to avoid calls to 'clear_page()' in the memory manager so there will be more cpu for other things, but just for system processes launched from '/system'. Yes, I know it would affect security. Performance is more important for this application.



What would be a good way to do this, with minimum changes in kernel-space ? I'm thinking that the kernel could check to see if the 'cmdline' for the thread starts with '/system' and then set a flag to avoid the 'clear_page' call?










share|improve this question







New contributor




Dallasite is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite












    So, I have a tightly controlled, heavy graphics system running on a custom build of android for a client.



    I want to avoid calls to 'clear_page()' in the memory manager so there will be more cpu for other things, but just for system processes launched from '/system'. Yes, I know it would affect security. Performance is more important for this application.



    What would be a good way to do this, with minimum changes in kernel-space ? I'm thinking that the kernel could check to see if the 'cmdline' for the thread starts with '/system' and then set a flag to avoid the 'clear_page' call?










    share|improve this question







    New contributor




    Dallasite is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      So, I have a tightly controlled, heavy graphics system running on a custom build of android for a client.



      I want to avoid calls to 'clear_page()' in the memory manager so there will be more cpu for other things, but just for system processes launched from '/system'. Yes, I know it would affect security. Performance is more important for this application.



      What would be a good way to do this, with minimum changes in kernel-space ? I'm thinking that the kernel could check to see if the 'cmdline' for the thread starts with '/system' and then set a flag to avoid the 'clear_page' call?










      share|improve this question







      New contributor




      Dallasite is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      So, I have a tightly controlled, heavy graphics system running on a custom build of android for a client.



      I want to avoid calls to 'clear_page()' in the memory manager so there will be more cpu for other things, but just for system processes launched from '/system'. Yes, I know it would affect security. Performance is more important for this application.



      What would be a good way to do this, with minimum changes in kernel-space ? I'm thinking that the kernel could check to see if the 'cmdline' for the thread starts with '/system' and then set a flag to avoid the 'clear_page' call?







      kernel optimization






      share|improve this question







      New contributor




      Dallasite is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Dallasite is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Dallasite is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Nov 16 at 19:46









      Dallasite

      1




      1




      New contributor




      Dallasite is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Dallasite is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Dallasite is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          Dallasite is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482230%2fi-want-to-avoid-clear-page-calls-for-system-processes%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Dallasite is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          Dallasite is a new contributor. Be nice, and check out our Code of Conduct.












          Dallasite is a new contributor. Be nice, and check out our Code of Conduct.











          Dallasite is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482230%2fi-want-to-avoid-clear-page-calls-for-system-processes%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown






          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)