Unusually high nfs_inode_cacheMounting both /dev/sda and /dev/sda1 - how can this be?FileSize referenced in...

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

Min function accepting varying number of arguments in C++17

Does someone need to be connected to my network to sniff HTTP requests?

Is a party consisting of only a bard, a cleric, and a warlock functional long-term?

Recruiter wants very extensive technical details about all of my previous work

Are ETF trackers fundamentally better than individual stocks?

What should tie a collection of short-stories together?

Why is the President allowed to veto a cancellation of emergency powers?

Why one should not leave fingerprints on bulbs and plugs?

Can I use USB data pins as power source

If curse and magic is two sides of the same coin, why the former is forbidden?

Use of undefined constant bloginfo

Brexit - No Deal Rejection

What approach do we need to follow for projects without a test environment?

Gravity magic - How does it work?

It's a yearly task, alright

What's the meaning of “spike” in the context of “adrenaline spike”?

How to simplify this time periods definition interface?

Why doesn't using two cd commands in bash script execute the second command?

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

How to read the value of this capacitor?

Most cost effective thermostat setting: consistent temperature vs. lowest temperature possible

Are there other languages, besides English, where the indefinite (or definite) article varies based on sound?

How do anti-virus programs start at Windows boot?



Unusually high nfs_inode_cache


Mounting both /dev/sda and /dev/sda1 - how can this be?FileSize referenced in PHP Post is unusually highethernet smp_affinity vs /proc/interrupts vs /sys/class/net/ethX/devicelinux redhat 5.4 - swap while memory is still availablememory leak? RHEL 5.5. RSS show ok, almost no free memory left, swap used heavilyAnyone else experiencing high rates of Linux server crashes during a leap second day?Unusually high dentry cache usageWhere did my memory go on linux (no cache/slab/shm/ipcs)Slab usage extremely high?Where is my RAM going?













4















My server is experiencing a high usage of nfs_inode_cache = 11G , im trying to figure out what's consuming all this , i know already that directories with large numbers of entries and deep directory structures are searched and traversed by some java applications.



Is there any way to look into the dentry cache to see what all this memory is (what are the paths that are being cached)?



Here is my slabtop command :



   OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME
8603424 8603424 100% 1.01K 2867808 3 11471232K nfs_inode_cache
3080826 3080737 99% 0.21K 171157 18 684628K dentry_cache
24717 12515 50% 0.52K 3531 7 14124K radix_tree_node
11365 11108 97% 0.74K 2273 5 9092K ext3_inode_cache


Here is my cache pressure :
cat /proc/sys/vm/vfs_cache_pressure
100










share|improve this question

























  • What versions of RHEL are you using? There was a known issue related to this awhile ago. access.redhat.com/solutions/481743

    – jeffatrackaid
    Jan 22 '15 at 19:49
















4















My server is experiencing a high usage of nfs_inode_cache = 11G , im trying to figure out what's consuming all this , i know already that directories with large numbers of entries and deep directory structures are searched and traversed by some java applications.



Is there any way to look into the dentry cache to see what all this memory is (what are the paths that are being cached)?



Here is my slabtop command :



   OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME
8603424 8603424 100% 1.01K 2867808 3 11471232K nfs_inode_cache
3080826 3080737 99% 0.21K 171157 18 684628K dentry_cache
24717 12515 50% 0.52K 3531 7 14124K radix_tree_node
11365 11108 97% 0.74K 2273 5 9092K ext3_inode_cache


Here is my cache pressure :
cat /proc/sys/vm/vfs_cache_pressure
100










share|improve this question

























  • What versions of RHEL are you using? There was a known issue related to this awhile ago. access.redhat.com/solutions/481743

    – jeffatrackaid
    Jan 22 '15 at 19:49














4












4








4


1






My server is experiencing a high usage of nfs_inode_cache = 11G , im trying to figure out what's consuming all this , i know already that directories with large numbers of entries and deep directory structures are searched and traversed by some java applications.



Is there any way to look into the dentry cache to see what all this memory is (what are the paths that are being cached)?



Here is my slabtop command :



   OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME
8603424 8603424 100% 1.01K 2867808 3 11471232K nfs_inode_cache
3080826 3080737 99% 0.21K 171157 18 684628K dentry_cache
24717 12515 50% 0.52K 3531 7 14124K radix_tree_node
11365 11108 97% 0.74K 2273 5 9092K ext3_inode_cache


Here is my cache pressure :
cat /proc/sys/vm/vfs_cache_pressure
100










share|improve this question
















My server is experiencing a high usage of nfs_inode_cache = 11G , im trying to figure out what's consuming all this , i know already that directories with large numbers of entries and deep directory structures are searched and traversed by some java applications.



Is there any way to look into the dentry cache to see what all this memory is (what are the paths that are being cached)?



Here is my slabtop command :



   OBJS ACTIVE  USE OBJ SIZE  SLABS OBJ/SLAB CACHE SIZE NAME
8603424 8603424 100% 1.01K 2867808 3 11471232K nfs_inode_cache
3080826 3080737 99% 0.21K 171157 18 684628K dentry_cache
24717 12515 50% 0.52K 3531 7 14124K radix_tree_node
11365 11108 97% 0.74K 2273 5 9092K ext3_inode_cache


Here is my cache pressure :
cat /proc/sys/vm/vfs_cache_pressure
100







linux redhat memory






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 17 '14 at 12:04







user1335838

















asked Jun 17 '14 at 10:36









user1335838user1335838

214




214













  • What versions of RHEL are you using? There was a known issue related to this awhile ago. access.redhat.com/solutions/481743

    – jeffatrackaid
    Jan 22 '15 at 19:49



















  • What versions of RHEL are you using? There was a known issue related to this awhile ago. access.redhat.com/solutions/481743

    – jeffatrackaid
    Jan 22 '15 at 19:49

















What versions of RHEL are you using? There was a known issue related to this awhile ago. access.redhat.com/solutions/481743

– jeffatrackaid
Jan 22 '15 at 19:49





What versions of RHEL are you using? There was a known issue related to this awhile ago. access.redhat.com/solutions/481743

– jeffatrackaid
Jan 22 '15 at 19:49










1 Answer
1






active

oldest

votes


















1














Are you experiencing any issue? What does your RAM usage looks like? (ex. free -m)



It's perfectly normal for Linux to use whatever's RAM available for caching - some of it will show through slabtop (dentries, inodes, etc.) and the rest through free -m' cached memory (pagecache/swapcache).



/proc/sys/vm/vfs_cache_pressure controls the proportions by which the kernel will free them. 100 is the default "fair" setting. Reducing this value favors pruning pagecache (i.e. file contents) while increasing it favors pruning filesystem metadata (inodes, etc...). In any case, cache pruning will happen only under memory presure; if you have plenty of unused memory the kernel will keep it used for caching.



Probably a much more important setting is vm.swappiness - this one controls the kernel's behavior to swap out memory vs. reclaim cache memory. The default value is good in most cases, but if you see processes hung/swapped out during periods of intensive IO with way more cached ram than you need then you most likely want to reduce this one. Additionally, if you have huge amount of memory and a fairly old kernel you may need to adjust one of these parameters as well (either the *bytes or *ratio, not both!):




  • dirty_background_bytes

  • dirty_background_ratio

  • dirty_bytes

  • dirty_ratio


All these settings are fully documented here: https://www.kernel.org/doc/Documentation/sysctl/vm.txt



However if you're not experiencing any issue, hung processes, excessive swapping out, etc. then I suggest not changing the defaults.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "2"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f605700%2funusually-high-nfs-inode-cache%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    Are you experiencing any issue? What does your RAM usage looks like? (ex. free -m)



    It's perfectly normal for Linux to use whatever's RAM available for caching - some of it will show through slabtop (dentries, inodes, etc.) and the rest through free -m' cached memory (pagecache/swapcache).



    /proc/sys/vm/vfs_cache_pressure controls the proportions by which the kernel will free them. 100 is the default "fair" setting. Reducing this value favors pruning pagecache (i.e. file contents) while increasing it favors pruning filesystem metadata (inodes, etc...). In any case, cache pruning will happen only under memory presure; if you have plenty of unused memory the kernel will keep it used for caching.



    Probably a much more important setting is vm.swappiness - this one controls the kernel's behavior to swap out memory vs. reclaim cache memory. The default value is good in most cases, but if you see processes hung/swapped out during periods of intensive IO with way more cached ram than you need then you most likely want to reduce this one. Additionally, if you have huge amount of memory and a fairly old kernel you may need to adjust one of these parameters as well (either the *bytes or *ratio, not both!):




    • dirty_background_bytes

    • dirty_background_ratio

    • dirty_bytes

    • dirty_ratio


    All these settings are fully documented here: https://www.kernel.org/doc/Documentation/sysctl/vm.txt



    However if you're not experiencing any issue, hung processes, excessive swapping out, etc. then I suggest not changing the defaults.






    share|improve this answer






























      1














      Are you experiencing any issue? What does your RAM usage looks like? (ex. free -m)



      It's perfectly normal for Linux to use whatever's RAM available for caching - some of it will show through slabtop (dentries, inodes, etc.) and the rest through free -m' cached memory (pagecache/swapcache).



      /proc/sys/vm/vfs_cache_pressure controls the proportions by which the kernel will free them. 100 is the default "fair" setting. Reducing this value favors pruning pagecache (i.e. file contents) while increasing it favors pruning filesystem metadata (inodes, etc...). In any case, cache pruning will happen only under memory presure; if you have plenty of unused memory the kernel will keep it used for caching.



      Probably a much more important setting is vm.swappiness - this one controls the kernel's behavior to swap out memory vs. reclaim cache memory. The default value is good in most cases, but if you see processes hung/swapped out during periods of intensive IO with way more cached ram than you need then you most likely want to reduce this one. Additionally, if you have huge amount of memory and a fairly old kernel you may need to adjust one of these parameters as well (either the *bytes or *ratio, not both!):




      • dirty_background_bytes

      • dirty_background_ratio

      • dirty_bytes

      • dirty_ratio


      All these settings are fully documented here: https://www.kernel.org/doc/Documentation/sysctl/vm.txt



      However if you're not experiencing any issue, hung processes, excessive swapping out, etc. then I suggest not changing the defaults.






      share|improve this answer




























        1












        1








        1







        Are you experiencing any issue? What does your RAM usage looks like? (ex. free -m)



        It's perfectly normal for Linux to use whatever's RAM available for caching - some of it will show through slabtop (dentries, inodes, etc.) and the rest through free -m' cached memory (pagecache/swapcache).



        /proc/sys/vm/vfs_cache_pressure controls the proportions by which the kernel will free them. 100 is the default "fair" setting. Reducing this value favors pruning pagecache (i.e. file contents) while increasing it favors pruning filesystem metadata (inodes, etc...). In any case, cache pruning will happen only under memory presure; if you have plenty of unused memory the kernel will keep it used for caching.



        Probably a much more important setting is vm.swappiness - this one controls the kernel's behavior to swap out memory vs. reclaim cache memory. The default value is good in most cases, but if you see processes hung/swapped out during periods of intensive IO with way more cached ram than you need then you most likely want to reduce this one. Additionally, if you have huge amount of memory and a fairly old kernel you may need to adjust one of these parameters as well (either the *bytes or *ratio, not both!):




        • dirty_background_bytes

        • dirty_background_ratio

        • dirty_bytes

        • dirty_ratio


        All these settings are fully documented here: https://www.kernel.org/doc/Documentation/sysctl/vm.txt



        However if you're not experiencing any issue, hung processes, excessive swapping out, etc. then I suggest not changing the defaults.






        share|improve this answer















        Are you experiencing any issue? What does your RAM usage looks like? (ex. free -m)



        It's perfectly normal for Linux to use whatever's RAM available for caching - some of it will show through slabtop (dentries, inodes, etc.) and the rest through free -m' cached memory (pagecache/swapcache).



        /proc/sys/vm/vfs_cache_pressure controls the proportions by which the kernel will free them. 100 is the default "fair" setting. Reducing this value favors pruning pagecache (i.e. file contents) while increasing it favors pruning filesystem metadata (inodes, etc...). In any case, cache pruning will happen only under memory presure; if you have plenty of unused memory the kernel will keep it used for caching.



        Probably a much more important setting is vm.swappiness - this one controls the kernel's behavior to swap out memory vs. reclaim cache memory. The default value is good in most cases, but if you see processes hung/swapped out during periods of intensive IO with way more cached ram than you need then you most likely want to reduce this one. Additionally, if you have huge amount of memory and a fairly old kernel you may need to adjust one of these parameters as well (either the *bytes or *ratio, not both!):




        • dirty_background_bytes

        • dirty_background_ratio

        • dirty_bytes

        • dirty_ratio


        All these settings are fully documented here: https://www.kernel.org/doc/Documentation/sysctl/vm.txt



        However if you're not experiencing any issue, hung processes, excessive swapping out, etc. then I suggest not changing the defaults.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 1 min ago

























        answered May 13 '15 at 5:10









        Thomas Guyot-SionnestThomas Guyot-Sionnest

        31114




        31114






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f605700%2funusually-high-nfs-inode-cache%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

            As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

            Список ссавців Італії Природоохоронні статуси | Список |...

            Українські прізвища Зміст Історичні відомості |...