Which process uses what pages?

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











up vote
2
down vote

favorite












I have memory fragmented on my Linux system. Is there a way to find out what pages (in terms of order) and how many of them are used by each process running?







share|improve this question



















  • you mean open files by each process...lsof
    – SivaPrasath
    Jun 7 at 11:18











  • @SivaPrasath, I mean memory pages used by long-running processes. For instance, the process has memory cache, caching some strings with different length (from 4Kb to 128Kb). Is there a way to find out how many memory pages does the process uses for each page order? In my case I don't know what process fragments memory... As far as I know lsof shows the amount of files opened by process.
    – sys463
    Jun 7 at 11:22











  • Do you mean how a process uses its virtual memory? Or the physical memory backing that virtual memory? And, is there some practical issue with measurable effects related to this?
    – ilkkachu
    Jun 7 at 12:12










  • @ilkkachu, I think, physical memory. My system is suffering from memory fragmentation, that's why I'm asking. I've posted a question here some time ago. unix.stackexchange.com/questions/440155/…
    – sys463
    Jun 7 at 12:30















up vote
2
down vote

favorite












I have memory fragmented on my Linux system. Is there a way to find out what pages (in terms of order) and how many of them are used by each process running?







share|improve this question



















  • you mean open files by each process...lsof
    – SivaPrasath
    Jun 7 at 11:18











  • @SivaPrasath, I mean memory pages used by long-running processes. For instance, the process has memory cache, caching some strings with different length (from 4Kb to 128Kb). Is there a way to find out how many memory pages does the process uses for each page order? In my case I don't know what process fragments memory... As far as I know lsof shows the amount of files opened by process.
    – sys463
    Jun 7 at 11:22











  • Do you mean how a process uses its virtual memory? Or the physical memory backing that virtual memory? And, is there some practical issue with measurable effects related to this?
    – ilkkachu
    Jun 7 at 12:12










  • @ilkkachu, I think, physical memory. My system is suffering from memory fragmentation, that's why I'm asking. I've posted a question here some time ago. unix.stackexchange.com/questions/440155/…
    – sys463
    Jun 7 at 12:30













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I have memory fragmented on my Linux system. Is there a way to find out what pages (in terms of order) and how many of them are used by each process running?







share|improve this question











I have memory fragmented on my Linux system. Is there a way to find out what pages (in terms of order) and how many of them are used by each process running?









share|improve this question










share|improve this question




share|improve this question









asked Jun 7 at 11:16









sys463

889




889











  • you mean open files by each process...lsof
    – SivaPrasath
    Jun 7 at 11:18











  • @SivaPrasath, I mean memory pages used by long-running processes. For instance, the process has memory cache, caching some strings with different length (from 4Kb to 128Kb). Is there a way to find out how many memory pages does the process uses for each page order? In my case I don't know what process fragments memory... As far as I know lsof shows the amount of files opened by process.
    – sys463
    Jun 7 at 11:22











  • Do you mean how a process uses its virtual memory? Or the physical memory backing that virtual memory? And, is there some practical issue with measurable effects related to this?
    – ilkkachu
    Jun 7 at 12:12










  • @ilkkachu, I think, physical memory. My system is suffering from memory fragmentation, that's why I'm asking. I've posted a question here some time ago. unix.stackexchange.com/questions/440155/…
    – sys463
    Jun 7 at 12:30

















  • you mean open files by each process...lsof
    – SivaPrasath
    Jun 7 at 11:18











  • @SivaPrasath, I mean memory pages used by long-running processes. For instance, the process has memory cache, caching some strings with different length (from 4Kb to 128Kb). Is there a way to find out how many memory pages does the process uses for each page order? In my case I don't know what process fragments memory... As far as I know lsof shows the amount of files opened by process.
    – sys463
    Jun 7 at 11:22











  • Do you mean how a process uses its virtual memory? Or the physical memory backing that virtual memory? And, is there some practical issue with measurable effects related to this?
    – ilkkachu
    Jun 7 at 12:12










  • @ilkkachu, I think, physical memory. My system is suffering from memory fragmentation, that's why I'm asking. I've posted a question here some time ago. unix.stackexchange.com/questions/440155/…
    – sys463
    Jun 7 at 12:30
















you mean open files by each process...lsof
– SivaPrasath
Jun 7 at 11:18





you mean open files by each process...lsof
– SivaPrasath
Jun 7 at 11:18













@SivaPrasath, I mean memory pages used by long-running processes. For instance, the process has memory cache, caching some strings with different length (from 4Kb to 128Kb). Is there a way to find out how many memory pages does the process uses for each page order? In my case I don't know what process fragments memory... As far as I know lsof shows the amount of files opened by process.
– sys463
Jun 7 at 11:22





@SivaPrasath, I mean memory pages used by long-running processes. For instance, the process has memory cache, caching some strings with different length (from 4Kb to 128Kb). Is there a way to find out how many memory pages does the process uses for each page order? In my case I don't know what process fragments memory... As far as I know lsof shows the amount of files opened by process.
– sys463
Jun 7 at 11:22













Do you mean how a process uses its virtual memory? Or the physical memory backing that virtual memory? And, is there some practical issue with measurable effects related to this?
– ilkkachu
Jun 7 at 12:12




Do you mean how a process uses its virtual memory? Or the physical memory backing that virtual memory? And, is there some practical issue with measurable effects related to this?
– ilkkachu
Jun 7 at 12:12












@ilkkachu, I think, physical memory. My system is suffering from memory fragmentation, that's why I'm asking. I've posted a question here some time ago. unix.stackexchange.com/questions/440155/…
– sys463
Jun 7 at 12:30





@ilkkachu, I think, physical memory. My system is suffering from memory fragmentation, that's why I'm asking. I've posted a question here some time ago. unix.stackexchange.com/questions/440155/…
– sys463
Jun 7 at 12:30











1 Answer
1






active

oldest

votes

















up vote
1
down vote













You can get information from /proc/<PID>/maps.



Example:



$ cat /proc/3618/maps 
00400000-005ce000 r-xp 00000000 fd:00 78541 /usr/sbin/<service>
007cd000-00811000 rw-p 001cd000 fd:00 78541 /usr/sbin/<service>


If you are concerned by pages which are really in RAM, use mincore & msync






share|improve this answer





















    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: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448406%2fwhich-process-uses-what-pages%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    You can get information from /proc/<PID>/maps.



    Example:



    $ cat /proc/3618/maps 
    00400000-005ce000 r-xp 00000000 fd:00 78541 /usr/sbin/<service>
    007cd000-00811000 rw-p 001cd000 fd:00 78541 /usr/sbin/<service>


    If you are concerned by pages which are really in RAM, use mincore & msync






    share|improve this answer

























      up vote
      1
      down vote













      You can get information from /proc/<PID>/maps.



      Example:



      $ cat /proc/3618/maps 
      00400000-005ce000 r-xp 00000000 fd:00 78541 /usr/sbin/<service>
      007cd000-00811000 rw-p 001cd000 fd:00 78541 /usr/sbin/<service>


      If you are concerned by pages which are really in RAM, use mincore & msync






      share|improve this answer























        up vote
        1
        down vote










        up vote
        1
        down vote









        You can get information from /proc/<PID>/maps.



        Example:



        $ cat /proc/3618/maps 
        00400000-005ce000 r-xp 00000000 fd:00 78541 /usr/sbin/<service>
        007cd000-00811000 rw-p 001cd000 fd:00 78541 /usr/sbin/<service>


        If you are concerned by pages which are really in RAM, use mincore & msync






        share|improve this answer













        You can get information from /proc/<PID>/maps.



        Example:



        $ cat /proc/3618/maps 
        00400000-005ce000 r-xp 00000000 fd:00 78541 /usr/sbin/<service>
        007cd000-00811000 rw-p 001cd000 fd:00 78541 /usr/sbin/<service>


        If you are concerned by pages which are really in RAM, use mincore & msync







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jun 7 at 11:35









        SivaPrasath

        4,26711939




        4,26711939






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448406%2fwhich-process-uses-what-pages%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay