lz4 Kernel Module in CentOS without recompiling












2















I just installed CentOS 7 on a vServer to play around with.
Usually I use Debian.
Since I had good results, I want to use zswap. I enabled it by putting zswap.enabled=1 zswap.compressor=lz4 in the GRUB_CMDLINE_LINUX in /etc/default/grub



But it falls back to using lzo, because the CentOS 7 Kernel doesn't have the lz4 module, it seems.



Is there any way to add this module without recompiling the whole Kernel? How would this work? Great would be some way to automate it on kernel updates, but that's not that important. (I only install updates manually and without the lz4 and lz4_compress modules nothing breaks, zswap just falls back to lzo)



I want to stay as close as possible to using the package manager. A yum upgradeshould still patch all fixed bugs.









share














bumped to the homepage by Community 19 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Hmmm....if this were any sort of production system, I'd be adding more memory instead of doing this.

    – mdpc
    Sep 3 '14 at 16:55






  • 2





    It is not. Also no matter how much RAM, from my experience zswap is still faster than even swapping to a SSD. Also I have that enabled on a few production machines (Debian Wheezy) without problems.

    – Josef
    Sep 4 '14 at 9:40













  • Point being to avoid swapping in the first place....swapping bad.

    – mdpc
    Sep 4 '14 at 15:25











  • @mdpc While this would be ideal, it is not always possible. I find zswap, or using zram as a swap device to be especially useful on virtual machines with SAN storage due to the alternative of vastly slower disk access. I am very much looking forward to zcache.

    – Phizes
    Dec 30 '14 at 12:08
















2















I just installed CentOS 7 on a vServer to play around with.
Usually I use Debian.
Since I had good results, I want to use zswap. I enabled it by putting zswap.enabled=1 zswap.compressor=lz4 in the GRUB_CMDLINE_LINUX in /etc/default/grub



But it falls back to using lzo, because the CentOS 7 Kernel doesn't have the lz4 module, it seems.



Is there any way to add this module without recompiling the whole Kernel? How would this work? Great would be some way to automate it on kernel updates, but that's not that important. (I only install updates manually and without the lz4 and lz4_compress modules nothing breaks, zswap just falls back to lzo)



I want to stay as close as possible to using the package manager. A yum upgradeshould still patch all fixed bugs.









share














bumped to the homepage by Community 19 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Hmmm....if this were any sort of production system, I'd be adding more memory instead of doing this.

    – mdpc
    Sep 3 '14 at 16:55






  • 2





    It is not. Also no matter how much RAM, from my experience zswap is still faster than even swapping to a SSD. Also I have that enabled on a few production machines (Debian Wheezy) without problems.

    – Josef
    Sep 4 '14 at 9:40













  • Point being to avoid swapping in the first place....swapping bad.

    – mdpc
    Sep 4 '14 at 15:25











  • @mdpc While this would be ideal, it is not always possible. I find zswap, or using zram as a swap device to be especially useful on virtual machines with SAN storage due to the alternative of vastly slower disk access. I am very much looking forward to zcache.

    – Phizes
    Dec 30 '14 at 12:08














2












2








2


1






I just installed CentOS 7 on a vServer to play around with.
Usually I use Debian.
Since I had good results, I want to use zswap. I enabled it by putting zswap.enabled=1 zswap.compressor=lz4 in the GRUB_CMDLINE_LINUX in /etc/default/grub



But it falls back to using lzo, because the CentOS 7 Kernel doesn't have the lz4 module, it seems.



Is there any way to add this module without recompiling the whole Kernel? How would this work? Great would be some way to automate it on kernel updates, but that's not that important. (I only install updates manually and without the lz4 and lz4_compress modules nothing breaks, zswap just falls back to lzo)



I want to stay as close as possible to using the package manager. A yum upgradeshould still patch all fixed bugs.









share














I just installed CentOS 7 on a vServer to play around with.
Usually I use Debian.
Since I had good results, I want to use zswap. I enabled it by putting zswap.enabled=1 zswap.compressor=lz4 in the GRUB_CMDLINE_LINUX in /etc/default/grub



But it falls back to using lzo, because the CentOS 7 Kernel doesn't have the lz4 module, it seems.



Is there any way to add this module without recompiling the whole Kernel? How would this work? Great would be some way to automate it on kernel updates, but that's not that important. (I only install updates manually and without the lz4 and lz4_compress modules nothing breaks, zswap just falls back to lzo)



I want to stay as close as possible to using the package manager. A yum upgradeshould still patch all fixed bugs.







centos kernel-modules





share












share










share



share










asked Sep 3 '14 at 14:19









JosefJosef

165111




165111





bumped to the homepage by Community 19 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 19 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Hmmm....if this were any sort of production system, I'd be adding more memory instead of doing this.

    – mdpc
    Sep 3 '14 at 16:55






  • 2





    It is not. Also no matter how much RAM, from my experience zswap is still faster than even swapping to a SSD. Also I have that enabled on a few production machines (Debian Wheezy) without problems.

    – Josef
    Sep 4 '14 at 9:40













  • Point being to avoid swapping in the first place....swapping bad.

    – mdpc
    Sep 4 '14 at 15:25











  • @mdpc While this would be ideal, it is not always possible. I find zswap, or using zram as a swap device to be especially useful on virtual machines with SAN storage due to the alternative of vastly slower disk access. I am very much looking forward to zcache.

    – Phizes
    Dec 30 '14 at 12:08



















  • Hmmm....if this were any sort of production system, I'd be adding more memory instead of doing this.

    – mdpc
    Sep 3 '14 at 16:55






  • 2





    It is not. Also no matter how much RAM, from my experience zswap is still faster than even swapping to a SSD. Also I have that enabled on a few production machines (Debian Wheezy) without problems.

    – Josef
    Sep 4 '14 at 9:40













  • Point being to avoid swapping in the first place....swapping bad.

    – mdpc
    Sep 4 '14 at 15:25











  • @mdpc While this would be ideal, it is not always possible. I find zswap, or using zram as a swap device to be especially useful on virtual machines with SAN storage due to the alternative of vastly slower disk access. I am very much looking forward to zcache.

    – Phizes
    Dec 30 '14 at 12:08

















Hmmm....if this were any sort of production system, I'd be adding more memory instead of doing this.

– mdpc
Sep 3 '14 at 16:55





Hmmm....if this were any sort of production system, I'd be adding more memory instead of doing this.

– mdpc
Sep 3 '14 at 16:55




2




2





It is not. Also no matter how much RAM, from my experience zswap is still faster than even swapping to a SSD. Also I have that enabled on a few production machines (Debian Wheezy) without problems.

– Josef
Sep 4 '14 at 9:40







It is not. Also no matter how much RAM, from my experience zswap is still faster than even swapping to a SSD. Also I have that enabled on a few production machines (Debian Wheezy) without problems.

– Josef
Sep 4 '14 at 9:40















Point being to avoid swapping in the first place....swapping bad.

– mdpc
Sep 4 '14 at 15:25





Point being to avoid swapping in the first place....swapping bad.

– mdpc
Sep 4 '14 at 15:25













@mdpc While this would be ideal, it is not always possible. I find zswap, or using zram as a swap device to be especially useful on virtual machines with SAN storage due to the alternative of vastly slower disk access. I am very much looking forward to zcache.

– Phizes
Dec 30 '14 at 12:08





@mdpc While this would be ideal, it is not always possible. I find zswap, or using zram as a swap device to be especially useful on virtual machines with SAN storage due to the alternative of vastly slower disk access. I am very much looking forward to zcache.

– Phizes
Dec 30 '14 at 12:08










1 Answer
1






active

oldest

votes


















1














I have not personally used it, but DKMS is (to me) the most viable solution, as I was looking for the solution to a similar issue of compiling a module on kernel upgrade.




  • Running a script every time a new kernel is
    installed

  • Automatically apply module patch and compile kernel when
    updated?

  • proper way to overwrite debian kernel modules


And the relevant CentOS documentation on building ones own kernel modules.






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%2f153551%2flz4-kernel-module-in-centos-without-recompiling%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














    I have not personally used it, but DKMS is (to me) the most viable solution, as I was looking for the solution to a similar issue of compiling a module on kernel upgrade.




    • Running a script every time a new kernel is
      installed

    • Automatically apply module patch and compile kernel when
      updated?

    • proper way to overwrite debian kernel modules


    And the relevant CentOS documentation on building ones own kernel modules.






    share|improve this answer




























      1














      I have not personally used it, but DKMS is (to me) the most viable solution, as I was looking for the solution to a similar issue of compiling a module on kernel upgrade.




      • Running a script every time a new kernel is
        installed

      • Automatically apply module patch and compile kernel when
        updated?

      • proper way to overwrite debian kernel modules


      And the relevant CentOS documentation on building ones own kernel modules.






      share|improve this answer


























        1












        1








        1







        I have not personally used it, but DKMS is (to me) the most viable solution, as I was looking for the solution to a similar issue of compiling a module on kernel upgrade.




        • Running a script every time a new kernel is
          installed

        • Automatically apply module patch and compile kernel when
          updated?

        • proper way to overwrite debian kernel modules


        And the relevant CentOS documentation on building ones own kernel modules.






        share|improve this answer













        I have not personally used it, but DKMS is (to me) the most viable solution, as I was looking for the solution to a similar issue of compiling a module on kernel upgrade.




        • Running a script every time a new kernel is
          installed

        • Automatically apply module patch and compile kernel when
          updated?

        • proper way to overwrite debian kernel modules


        And the relevant CentOS documentation on building ones own kernel modules.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 30 '14 at 12:06









        PhizesPhizes

        1114




        1114






























            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%2f153551%2flz4-kernel-module-in-centos-without-recompiling%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 rewrite equation of hyperbola in standard form

            No ethernet ip address in my vocore2