lz4 Kernel Module in CentOS without recompiling
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 upgrade
should still patch all fixed bugs.
centos kernel-modules
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.
add a comment |
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 upgrade
should still patch all fixed bugs.
centos kernel-modules
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
add a comment |
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 upgrade
should still patch all fixed bugs.
centos kernel-modules
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 upgrade
should still patch all fixed bugs.
centos kernel-modules
centos kernel-modules
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Dec 30 '14 at 12:06
PhizesPhizes
1114
1114
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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