Linux swapping/hangs on heavy compilationsSystem hanging when it runs out of memoryGNU/Linux swapping blocks...
Manager is asking me to eat breakfast from now on
What makes MOVEQ quicker than a normal MOVE in 68000 assembly?
Deleting a point in METAFONT
Did I pick the wrong bike?
Counting multiples of 3 up to a given number
Is it possible to have a career in SciComp without contributing to arms research?
Should I work for free if client's requirement changed
I have found a mistake on someone's code published online: what is the protocol?
Formating slide
Do Indians need sepearte Hong Kong visa if we already have Chinese visa
"This used to be my phone number"
How do you name this compound using IUPAC system (including steps)?
Locked-up DOS computer beeped on keypress. What mechanism caused that?
Extract the attribute names from a large number of Shapefiles
What is the intuition for higher homotopy groups not vanishing?
Authorship dispute on a paper that came out of a final report of a course?
Making a Dataset that emulates `ls -tlra`?
Legendre Polynomial Integral over half space
Simplest instruction set that has an c++/C compiler to write an emulator for?
Are there foods that astronauts are explicitly never allowed to eat?
Why are there few or no black super GMs?
What does "mossette" translate to in English
What is the function of "mal" in saying "Das nenn ich mal ein X"?
Why teach C using scanf without talking about command line arguments?
Linux swapping/hangs on heavy compilations
System hanging when it runs out of memoryGNU/Linux swapping blocks systemIncreasing swap space without reinstallationPermanent swapping with lots of free memoryHow safe is it to increase tmpfs to more than physical memory?Is it possible to impose some kind of soft limit on the memory consumption of processes?Hibernate issues on Laptop/PC during high RAM usagelinux - OOM / swap not being usedDo I have a swap space leak in FreeBSD?Why “Sum of RES” not equal to “Mem Used + Swap Used” (Ubuntu 18.04)?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have the following setup: Gentoo Linux, kernel 4.19.52, AMD Ryzen 5 1600, 16G of RAM (of which up to 8G is used as ramdisk - mounted as tmpfs). I have also set up 32G of swap partition. The following issue has been with me for like half a year and a couple of kernels.
When I compile relatively large applications like chromium or firefox, eventually (like half an hour into compilation) my system becomes unresponsive.
From what I have managed to observe, it seems the system starts to swap heavily (the kswapd is using significant % of the CPU), but to my surprise, the actual swap space is almost unused. It looks like for some reason the system runs out of RAM but also does not want to use the swap space.
Any hints or ideas on what to look for? Debugging of the issue is somehow difficult, as everything runs smoothly for like 30-60 mins until it "almost" hang (by that I mean the mouse moves like 1 inch per 30 secs) - which make it also unobservable :(
Maybe someone have come across this issue? I'll be grateful for any tips...
Marek
linux memory swap
migrated from serverfault.com 30 mins ago
This question came from our site for system and network administrators.
add a comment |
I have the following setup: Gentoo Linux, kernel 4.19.52, AMD Ryzen 5 1600, 16G of RAM (of which up to 8G is used as ramdisk - mounted as tmpfs). I have also set up 32G of swap partition. The following issue has been with me for like half a year and a couple of kernels.
When I compile relatively large applications like chromium or firefox, eventually (like half an hour into compilation) my system becomes unresponsive.
From what I have managed to observe, it seems the system starts to swap heavily (the kswapd is using significant % of the CPU), but to my surprise, the actual swap space is almost unused. It looks like for some reason the system runs out of RAM but also does not want to use the swap space.
Any hints or ideas on what to look for? Debugging of the issue is somehow difficult, as everything runs smoothly for like 30-60 mins until it "almost" hang (by that I mean the mouse moves like 1 inch per 30 secs) - which make it also unobservable :(
Maybe someone have come across this issue? I'll be grateful for any tips...
Marek
linux memory swap
migrated from serverfault.com 30 mins ago
This question came from our site for system and network administrators.
do you have some sysctl parameter to try to fix this?
– c4f4t0r
7 hours ago
Please edit your question to add the contents/proc/meminfo
during the problem state.
– John Mahowald
2 hours ago
add a comment |
I have the following setup: Gentoo Linux, kernel 4.19.52, AMD Ryzen 5 1600, 16G of RAM (of which up to 8G is used as ramdisk - mounted as tmpfs). I have also set up 32G of swap partition. The following issue has been with me for like half a year and a couple of kernels.
When I compile relatively large applications like chromium or firefox, eventually (like half an hour into compilation) my system becomes unresponsive.
From what I have managed to observe, it seems the system starts to swap heavily (the kswapd is using significant % of the CPU), but to my surprise, the actual swap space is almost unused. It looks like for some reason the system runs out of RAM but also does not want to use the swap space.
Any hints or ideas on what to look for? Debugging of the issue is somehow difficult, as everything runs smoothly for like 30-60 mins until it "almost" hang (by that I mean the mouse moves like 1 inch per 30 secs) - which make it also unobservable :(
Maybe someone have come across this issue? I'll be grateful for any tips...
Marek
linux memory swap
I have the following setup: Gentoo Linux, kernel 4.19.52, AMD Ryzen 5 1600, 16G of RAM (of which up to 8G is used as ramdisk - mounted as tmpfs). I have also set up 32G of swap partition. The following issue has been with me for like half a year and a couple of kernels.
When I compile relatively large applications like chromium or firefox, eventually (like half an hour into compilation) my system becomes unresponsive.
From what I have managed to observe, it seems the system starts to swap heavily (the kswapd is using significant % of the CPU), but to my surprise, the actual swap space is almost unused. It looks like for some reason the system runs out of RAM but also does not want to use the swap space.
Any hints or ideas on what to look for? Debugging of the issue is somehow difficult, as everything runs smoothly for like 30-60 mins until it "almost" hang (by that I mean the mouse moves like 1 inch per 30 secs) - which make it also unobservable :(
Maybe someone have come across this issue? I'll be grateful for any tips...
Marek
linux memory swap
linux memory swap
asked 7 hours ago
Marek
migrated from serverfault.com 30 mins ago
This question came from our site for system and network administrators.
migrated from serverfault.com 30 mins ago
This question came from our site for system and network administrators.
do you have some sysctl parameter to try to fix this?
– c4f4t0r
7 hours ago
Please edit your question to add the contents/proc/meminfo
during the problem state.
– John Mahowald
2 hours ago
add a comment |
do you have some sysctl parameter to try to fix this?
– c4f4t0r
7 hours ago
Please edit your question to add the contents/proc/meminfo
during the problem state.
– John Mahowald
2 hours ago
do you have some sysctl parameter to try to fix this?
– c4f4t0r
7 hours ago
do you have some sysctl parameter to try to fix this?
– c4f4t0r
7 hours ago
Please edit your question to add the contents
/proc/meminfo
during the problem state.– John Mahowald
2 hours ago
Please edit your question to add the contents
/proc/meminfo
during the problem state.– John Mahowald
2 hours ago
add a comment |
1 Answer
1
active
oldest
votes
Modern browsers are a beast to build. Very likely the virtual memory system is moving lots of pages around, but not enough to significantly page out to disk.
Linux From Scratch reports 6+ GB memory used to build Firefox, and 1.25 GB per thread for Chromium with WebKit.
Get more memory, or reduce the number of jobs with any -j switches. Or use prebuilt binaries...
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%2f531258%2flinux-swapping-hangs-on-heavy-compilations%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
Modern browsers are a beast to build. Very likely the virtual memory system is moving lots of pages around, but not enough to significantly page out to disk.
Linux From Scratch reports 6+ GB memory used to build Firefox, and 1.25 GB per thread for Chromium with WebKit.
Get more memory, or reduce the number of jobs with any -j switches. Or use prebuilt binaries...
add a comment |
Modern browsers are a beast to build. Very likely the virtual memory system is moving lots of pages around, but not enough to significantly page out to disk.
Linux From Scratch reports 6+ GB memory used to build Firefox, and 1.25 GB per thread for Chromium with WebKit.
Get more memory, or reduce the number of jobs with any -j switches. Or use prebuilt binaries...
add a comment |
Modern browsers are a beast to build. Very likely the virtual memory system is moving lots of pages around, but not enough to significantly page out to disk.
Linux From Scratch reports 6+ GB memory used to build Firefox, and 1.25 GB per thread for Chromium with WebKit.
Get more memory, or reduce the number of jobs with any -j switches. Or use prebuilt binaries...
Modern browsers are a beast to build. Very likely the virtual memory system is moving lots of pages around, but not enough to significantly page out to disk.
Linux From Scratch reports 6+ GB memory used to build Firefox, and 1.25 GB per thread for Chromium with WebKit.
Get more memory, or reduce the number of jobs with any -j switches. Or use prebuilt binaries...
answered 2 hours ago
John MahowaldJohn Mahowald
1212 bronze badges
1212 bronze badges
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%2f531258%2flinux-swapping-hangs-on-heavy-compilations%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
do you have some sysctl parameter to try to fix this?
– c4f4t0r
7 hours ago
Please edit your question to add the contents
/proc/meminfo
during the problem state.– John Mahowald
2 hours ago