What is an alternative for zcache?

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












6















I want to use a high-speed swap device or zram as "page cache", so that page data can be dropped automatically when the system is out of memory.



Apparently, zcache has been discontinued. Is there an available alternative? If yes, which one?



bcache doesn't seem to drop data when there's no memory available.










share|improve this question
























  • How do you define "page cache"? Do you mean memory management scheme, a.k.a. swap? If so, bcache has nothing to do with it.

    – Adam Ryczkowski
    Jun 27 '17 at 14:23











  • @AdamRyczkowski In computing, a page cache, sometimes also called disk cache

    – illiterate
    Jun 28 '17 at 7:47











  • You English is difficult to understand, and you seem to mix unrelated concepts, so the noise level in your question is rather high. That's why I asked for clarification.

    – Adam Ryczkowski
    Jun 30 '17 at 16:57











  • You ask about how to use swap device as "page cache". You control which swap devices the kernel should use (and their priorities) with swapon and swapoff commands. It doesn't matter what is the actual storage for the device, whether it is a zram, disk partition, or bcache.

    – Adam Ryczkowski
    Jun 30 '17 at 16:59












  • I'm sorry for my express way,in fact I trying find a alternative for zcache @AdamRyczkowski thank you.

    – illiterate
    Jul 1 '17 at 4:49
















6















I want to use a high-speed swap device or zram as "page cache", so that page data can be dropped automatically when the system is out of memory.



Apparently, zcache has been discontinued. Is there an available alternative? If yes, which one?



bcache doesn't seem to drop data when there's no memory available.










share|improve this question
























  • How do you define "page cache"? Do you mean memory management scheme, a.k.a. swap? If so, bcache has nothing to do with it.

    – Adam Ryczkowski
    Jun 27 '17 at 14:23











  • @AdamRyczkowski In computing, a page cache, sometimes also called disk cache

    – illiterate
    Jun 28 '17 at 7:47











  • You English is difficult to understand, and you seem to mix unrelated concepts, so the noise level in your question is rather high. That's why I asked for clarification.

    – Adam Ryczkowski
    Jun 30 '17 at 16:57











  • You ask about how to use swap device as "page cache". You control which swap devices the kernel should use (and their priorities) with swapon and swapoff commands. It doesn't matter what is the actual storage for the device, whether it is a zram, disk partition, or bcache.

    – Adam Ryczkowski
    Jun 30 '17 at 16:59












  • I'm sorry for my express way,in fact I trying find a alternative for zcache @AdamRyczkowski thank you.

    – illiterate
    Jul 1 '17 at 4:49














6












6








6


0






I want to use a high-speed swap device or zram as "page cache", so that page data can be dropped automatically when the system is out of memory.



Apparently, zcache has been discontinued. Is there an available alternative? If yes, which one?



bcache doesn't seem to drop data when there's no memory available.










share|improve this question
















I want to use a high-speed swap device or zram as "page cache", so that page data can be dropped automatically when the system is out of memory.



Apparently, zcache has been discontinued. Is there an available alternative? If yes, which one?



bcache doesn't seem to drop data when there's no memory available.







linux-kernel swap cache zram






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 23 '17 at 13:19







illiterate

















asked Jun 27 '17 at 8:34









illiterateilliterate

8211




8211












  • How do you define "page cache"? Do you mean memory management scheme, a.k.a. swap? If so, bcache has nothing to do with it.

    – Adam Ryczkowski
    Jun 27 '17 at 14:23











  • @AdamRyczkowski In computing, a page cache, sometimes also called disk cache

    – illiterate
    Jun 28 '17 at 7:47











  • You English is difficult to understand, and you seem to mix unrelated concepts, so the noise level in your question is rather high. That's why I asked for clarification.

    – Adam Ryczkowski
    Jun 30 '17 at 16:57











  • You ask about how to use swap device as "page cache". You control which swap devices the kernel should use (and their priorities) with swapon and swapoff commands. It doesn't matter what is the actual storage for the device, whether it is a zram, disk partition, or bcache.

    – Adam Ryczkowski
    Jun 30 '17 at 16:59












  • I'm sorry for my express way,in fact I trying find a alternative for zcache @AdamRyczkowski thank you.

    – illiterate
    Jul 1 '17 at 4:49


















  • How do you define "page cache"? Do you mean memory management scheme, a.k.a. swap? If so, bcache has nothing to do with it.

    – Adam Ryczkowski
    Jun 27 '17 at 14:23











  • @AdamRyczkowski In computing, a page cache, sometimes also called disk cache

    – illiterate
    Jun 28 '17 at 7:47











  • You English is difficult to understand, and you seem to mix unrelated concepts, so the noise level in your question is rather high. That's why I asked for clarification.

    – Adam Ryczkowski
    Jun 30 '17 at 16:57











  • You ask about how to use swap device as "page cache". You control which swap devices the kernel should use (and their priorities) with swapon and swapoff commands. It doesn't matter what is the actual storage for the device, whether it is a zram, disk partition, or bcache.

    – Adam Ryczkowski
    Jun 30 '17 at 16:59












  • I'm sorry for my express way,in fact I trying find a alternative for zcache @AdamRyczkowski thank you.

    – illiterate
    Jul 1 '17 at 4:49

















How do you define "page cache"? Do you mean memory management scheme, a.k.a. swap? If so, bcache has nothing to do with it.

– Adam Ryczkowski
Jun 27 '17 at 14:23





How do you define "page cache"? Do you mean memory management scheme, a.k.a. swap? If so, bcache has nothing to do with it.

– Adam Ryczkowski
Jun 27 '17 at 14:23













@AdamRyczkowski In computing, a page cache, sometimes also called disk cache

– illiterate
Jun 28 '17 at 7:47





@AdamRyczkowski In computing, a page cache, sometimes also called disk cache

– illiterate
Jun 28 '17 at 7:47













You English is difficult to understand, and you seem to mix unrelated concepts, so the noise level in your question is rather high. That's why I asked for clarification.

– Adam Ryczkowski
Jun 30 '17 at 16:57





You English is difficult to understand, and you seem to mix unrelated concepts, so the noise level in your question is rather high. That's why I asked for clarification.

– Adam Ryczkowski
Jun 30 '17 at 16:57













You ask about how to use swap device as "page cache". You control which swap devices the kernel should use (and their priorities) with swapon and swapoff commands. It doesn't matter what is the actual storage for the device, whether it is a zram, disk partition, or bcache.

– Adam Ryczkowski
Jun 30 '17 at 16:59






You ask about how to use swap device as "page cache". You control which swap devices the kernel should use (and their priorities) with swapon and swapoff commands. It doesn't matter what is the actual storage for the device, whether it is a zram, disk partition, or bcache.

– Adam Ryczkowski
Jun 30 '17 at 16:59














I'm sorry for my express way,in fact I trying find a alternative for zcache @AdamRyczkowski thank you.

– illiterate
Jul 1 '17 at 4:49






I'm sorry for my express way,in fact I trying find a alternative for zcache @AdamRyczkowski thank you.

– illiterate
Jul 1 '17 at 4:49











1 Answer
1






active

oldest

votes


















6














Indeed zcache appears to have been discontinued, as it was removed from kernel 3.11 for being effectively obsolete. The commit message of zcache removal reads




staging: zcache: delete it



zcache is obsolete and not used anymore, Bob Liu has rewritten it and
is submitting it for inclusion through the main -mm tree, as it should
have been done in the first place...




It appears that Bob Liu's submission never got into mainline.



Now, the way I understand it, the page cache is automatically "dropped" (cleared) in an out-of-memory scenario. zcache actually implemented compression so it could maintain more filesystem pages (also known as "vfs cache" or "inode/dentry cache") before being dropped.



The Linux kernel has zswap today that implements compressed disk-based swapping, but doesn't compress filesystem pages.



I am not aware of a current day alternative for zcache.



Perhaps as a workaround, if you are concerned with performance degradation due to filesystem pages being freed, consider tuning vm.vfs_cache_pressure as instructed here.



For normal workloads it's safe to just settle with zswap.



Additional reading:



  1. zram vs zswap vs zcache Ultimate guide: when to use which one

  2. Zswap, Zram, Zcache desktop usage scenarios

  3. zswap (Arch Linux Wiki)

  4. Cleancache and Frontswap (LWN)

  5. The Case for Compressed Caching in Virtual Memory Systems





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',
    autoActivateHeartbeat: false,
    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
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f373631%2fwhat-is-an-alternative-for-zcache%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









    6














    Indeed zcache appears to have been discontinued, as it was removed from kernel 3.11 for being effectively obsolete. The commit message of zcache removal reads




    staging: zcache: delete it



    zcache is obsolete and not used anymore, Bob Liu has rewritten it and
    is submitting it for inclusion through the main -mm tree, as it should
    have been done in the first place...




    It appears that Bob Liu's submission never got into mainline.



    Now, the way I understand it, the page cache is automatically "dropped" (cleared) in an out-of-memory scenario. zcache actually implemented compression so it could maintain more filesystem pages (also known as "vfs cache" or "inode/dentry cache") before being dropped.



    The Linux kernel has zswap today that implements compressed disk-based swapping, but doesn't compress filesystem pages.



    I am not aware of a current day alternative for zcache.



    Perhaps as a workaround, if you are concerned with performance degradation due to filesystem pages being freed, consider tuning vm.vfs_cache_pressure as instructed here.



    For normal workloads it's safe to just settle with zswap.



    Additional reading:



    1. zram vs zswap vs zcache Ultimate guide: when to use which one

    2. Zswap, Zram, Zcache desktop usage scenarios

    3. zswap (Arch Linux Wiki)

    4. Cleancache and Frontswap (LWN)

    5. The Case for Compressed Caching in Virtual Memory Systems





    share|improve this answer





























      6














      Indeed zcache appears to have been discontinued, as it was removed from kernel 3.11 for being effectively obsolete. The commit message of zcache removal reads




      staging: zcache: delete it



      zcache is obsolete and not used anymore, Bob Liu has rewritten it and
      is submitting it for inclusion through the main -mm tree, as it should
      have been done in the first place...




      It appears that Bob Liu's submission never got into mainline.



      Now, the way I understand it, the page cache is automatically "dropped" (cleared) in an out-of-memory scenario. zcache actually implemented compression so it could maintain more filesystem pages (also known as "vfs cache" or "inode/dentry cache") before being dropped.



      The Linux kernel has zswap today that implements compressed disk-based swapping, but doesn't compress filesystem pages.



      I am not aware of a current day alternative for zcache.



      Perhaps as a workaround, if you are concerned with performance degradation due to filesystem pages being freed, consider tuning vm.vfs_cache_pressure as instructed here.



      For normal workloads it's safe to just settle with zswap.



      Additional reading:



      1. zram vs zswap vs zcache Ultimate guide: when to use which one

      2. Zswap, Zram, Zcache desktop usage scenarios

      3. zswap (Arch Linux Wiki)

      4. Cleancache and Frontswap (LWN)

      5. The Case for Compressed Caching in Virtual Memory Systems





      share|improve this answer



























        6












        6








        6







        Indeed zcache appears to have been discontinued, as it was removed from kernel 3.11 for being effectively obsolete. The commit message of zcache removal reads




        staging: zcache: delete it



        zcache is obsolete and not used anymore, Bob Liu has rewritten it and
        is submitting it for inclusion through the main -mm tree, as it should
        have been done in the first place...




        It appears that Bob Liu's submission never got into mainline.



        Now, the way I understand it, the page cache is automatically "dropped" (cleared) in an out-of-memory scenario. zcache actually implemented compression so it could maintain more filesystem pages (also known as "vfs cache" or "inode/dentry cache") before being dropped.



        The Linux kernel has zswap today that implements compressed disk-based swapping, but doesn't compress filesystem pages.



        I am not aware of a current day alternative for zcache.



        Perhaps as a workaround, if you are concerned with performance degradation due to filesystem pages being freed, consider tuning vm.vfs_cache_pressure as instructed here.



        For normal workloads it's safe to just settle with zswap.



        Additional reading:



        1. zram vs zswap vs zcache Ultimate guide: when to use which one

        2. Zswap, Zram, Zcache desktop usage scenarios

        3. zswap (Arch Linux Wiki)

        4. Cleancache and Frontswap (LWN)

        5. The Case for Compressed Caching in Virtual Memory Systems





        share|improve this answer















        Indeed zcache appears to have been discontinued, as it was removed from kernel 3.11 for being effectively obsolete. The commit message of zcache removal reads




        staging: zcache: delete it



        zcache is obsolete and not used anymore, Bob Liu has rewritten it and
        is submitting it for inclusion through the main -mm tree, as it should
        have been done in the first place...




        It appears that Bob Liu's submission never got into mainline.



        Now, the way I understand it, the page cache is automatically "dropped" (cleared) in an out-of-memory scenario. zcache actually implemented compression so it could maintain more filesystem pages (also known as "vfs cache" or "inode/dentry cache") before being dropped.



        The Linux kernel has zswap today that implements compressed disk-based swapping, but doesn't compress filesystem pages.



        I am not aware of a current day alternative for zcache.



        Perhaps as a workaround, if you are concerned with performance degradation due to filesystem pages being freed, consider tuning vm.vfs_cache_pressure as instructed here.



        For normal workloads it's safe to just settle with zswap.



        Additional reading:



        1. zram vs zswap vs zcache Ultimate guide: when to use which one

        2. Zswap, Zram, Zcache desktop usage scenarios

        3. zswap (Arch Linux Wiki)

        4. Cleancache and Frontswap (LWN)

        5. The Case for Compressed Caching in Virtual Memory Systems






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 26 at 19:58

























        answered Jul 1 '17 at 5:58









        Marc.2377Marc.2377

        285224




        285224



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f373631%2fwhat-is-an-alternative-for-zcache%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

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

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay