What do I do about a machine that is running out of memory and crashing?
My spouse is running Ubuntu 18.04 on a Thinkpad X1 that has been crashing a lot. Usually he's got a bunch of tabs open but nothing that should crash a relatively powerful laptop.
The machine freezes and the only solution is a power cycle because it is otherwise unresponsive.
I am used to being able to get to another TTY to troubleshoot with ctrl-alt-F3 but that doesn't seem to work on his machine.
One oddity, when I run top it reports zero swap:
KiB Swap: 0 total, 0 free, 0 used
That can't be right, but free confirms it:
amanda@Flatbush:~$ sudo free -h
total used free shared buff/cache available
Mem: 7.7G 5.4G 164M 1.5G 2.1G 516M
Swap: 0B 0B 0B
By contrast, my machine is a few years older than his and works fine. There, free shows:
amanda@mona:~$ sudo free -h
total used free shared buff/cache available
Mem: 7.7G 1.2G 5.1G 237M 1.3G 5.9G
Swap: 7.8G 0B 7.8G
The good machine has way more memory and way more available swap (though to be fair I just fired it up to compare and don't have anything running on it).
I suspect that the issue is connected to the differences in memory but I don't know how to go about fixing it. s
freeze swap
add a comment |
My spouse is running Ubuntu 18.04 on a Thinkpad X1 that has been crashing a lot. Usually he's got a bunch of tabs open but nothing that should crash a relatively powerful laptop.
The machine freezes and the only solution is a power cycle because it is otherwise unresponsive.
I am used to being able to get to another TTY to troubleshoot with ctrl-alt-F3 but that doesn't seem to work on his machine.
One oddity, when I run top it reports zero swap:
KiB Swap: 0 total, 0 free, 0 used
That can't be right, but free confirms it:
amanda@Flatbush:~$ sudo free -h
total used free shared buff/cache available
Mem: 7.7G 5.4G 164M 1.5G 2.1G 516M
Swap: 0B 0B 0B
By contrast, my machine is a few years older than his and works fine. There, free shows:
amanda@mona:~$ sudo free -h
total used free shared buff/cache available
Mem: 7.7G 1.2G 5.1G 237M 1.3G 5.9G
Swap: 7.8G 0B 7.8G
The good machine has way more memory and way more available swap (though to be fair I just fired it up to compare and don't have anything running on it).
I suspect that the issue is connected to the differences in memory but I don't know how to go about fixing it. s
freeze swap
I'm wondering is there a swap partition on this system?
– Soulimane Mammar
Mar 11 at 4:59
@SoulimaneMammar There is a swap partition but it is commented out in/etc/fstabandsudo swaponshows no results.
– Amanda
Mar 11 at 5:07
usefdisk,cfdiskorgpartedto see if that partition really exists on disk. If yes get it running by having the appropriate line inf/etc/fstabotherwise create a swap file and use it
– Soulimane Mammar
Mar 11 at 5:18
add a comment |
My spouse is running Ubuntu 18.04 on a Thinkpad X1 that has been crashing a lot. Usually he's got a bunch of tabs open but nothing that should crash a relatively powerful laptop.
The machine freezes and the only solution is a power cycle because it is otherwise unresponsive.
I am used to being able to get to another TTY to troubleshoot with ctrl-alt-F3 but that doesn't seem to work on his machine.
One oddity, when I run top it reports zero swap:
KiB Swap: 0 total, 0 free, 0 used
That can't be right, but free confirms it:
amanda@Flatbush:~$ sudo free -h
total used free shared buff/cache available
Mem: 7.7G 5.4G 164M 1.5G 2.1G 516M
Swap: 0B 0B 0B
By contrast, my machine is a few years older than his and works fine. There, free shows:
amanda@mona:~$ sudo free -h
total used free shared buff/cache available
Mem: 7.7G 1.2G 5.1G 237M 1.3G 5.9G
Swap: 7.8G 0B 7.8G
The good machine has way more memory and way more available swap (though to be fair I just fired it up to compare and don't have anything running on it).
I suspect that the issue is connected to the differences in memory but I don't know how to go about fixing it. s
freeze swap
My spouse is running Ubuntu 18.04 on a Thinkpad X1 that has been crashing a lot. Usually he's got a bunch of tabs open but nothing that should crash a relatively powerful laptop.
The machine freezes and the only solution is a power cycle because it is otherwise unresponsive.
I am used to being able to get to another TTY to troubleshoot with ctrl-alt-F3 but that doesn't seem to work on his machine.
One oddity, when I run top it reports zero swap:
KiB Swap: 0 total, 0 free, 0 used
That can't be right, but free confirms it:
amanda@Flatbush:~$ sudo free -h
total used free shared buff/cache available
Mem: 7.7G 5.4G 164M 1.5G 2.1G 516M
Swap: 0B 0B 0B
By contrast, my machine is a few years older than his and works fine. There, free shows:
amanda@mona:~$ sudo free -h
total used free shared buff/cache available
Mem: 7.7G 1.2G 5.1G 237M 1.3G 5.9G
Swap: 7.8G 0B 7.8G
The good machine has way more memory and way more available swap (though to be fair I just fired it up to compare and don't have anything running on it).
I suspect that the issue is connected to the differences in memory but I don't know how to go about fixing it. s
freeze swap
freeze swap
edited Mar 11 at 4:32
Amanda
asked Mar 11 at 3:57
AmandaAmanda
4,330104284
4,330104284
I'm wondering is there a swap partition on this system?
– Soulimane Mammar
Mar 11 at 4:59
@SoulimaneMammar There is a swap partition but it is commented out in/etc/fstabandsudo swaponshows no results.
– Amanda
Mar 11 at 5:07
usefdisk,cfdiskorgpartedto see if that partition really exists on disk. If yes get it running by having the appropriate line inf/etc/fstabotherwise create a swap file and use it
– Soulimane Mammar
Mar 11 at 5:18
add a comment |
I'm wondering is there a swap partition on this system?
– Soulimane Mammar
Mar 11 at 4:59
@SoulimaneMammar There is a swap partition but it is commented out in/etc/fstabandsudo swaponshows no results.
– Amanda
Mar 11 at 5:07
usefdisk,cfdiskorgpartedto see if that partition really exists on disk. If yes get it running by having the appropriate line inf/etc/fstabotherwise create a swap file and use it
– Soulimane Mammar
Mar 11 at 5:18
I'm wondering is there a swap partition on this system?
– Soulimane Mammar
Mar 11 at 4:59
I'm wondering is there a swap partition on this system?
– Soulimane Mammar
Mar 11 at 4:59
@SoulimaneMammar There is a swap partition but it is commented out in
/etc/fstab and sudo swapon shows no results.– Amanda
Mar 11 at 5:07
@SoulimaneMammar There is a swap partition but it is commented out in
/etc/fstab and sudo swapon shows no results.– Amanda
Mar 11 at 5:07
use
fdisk, cfdisk or gparted to see if that partition really exists on disk. If yes get it running by having the appropriate line inf /etc/fstab otherwise create a swap file and use it– Soulimane Mammar
Mar 11 at 5:18
use
fdisk, cfdisk or gparted to see if that partition really exists on disk. If yes get it running by having the appropriate line inf /etc/fstab otherwise create a swap file and use it– Soulimane Mammar
Mar 11 at 5:18
add a comment |
1 Answer
1
active
oldest
votes
The description and the free output suggest that the system may be crashing when it runs out of RAM, and swap is not enabled. (Browser tabs can sometimes consume a staggering amount of resources)
One easy solution:
- Add a swap file if there is not an existing swap partition/swapfile.
- Activate swap using
swapon
- Tell him that when the system gets sluggish it's time to close a few tabs.
- If the system remains sluggish with all tabs closed, bring it to you in the sluggish state.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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
});
}
});
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%2faskubuntu.com%2fquestions%2f1124656%2fwhat-do-i-do-about-a-machine-that-is-running-out-of-memory-and-crashing%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
The description and the free output suggest that the system may be crashing when it runs out of RAM, and swap is not enabled. (Browser tabs can sometimes consume a staggering amount of resources)
One easy solution:
- Add a swap file if there is not an existing swap partition/swapfile.
- Activate swap using
swapon
- Tell him that when the system gets sluggish it's time to close a few tabs.
- If the system remains sluggish with all tabs closed, bring it to you in the sluggish state.
add a comment |
The description and the free output suggest that the system may be crashing when it runs out of RAM, and swap is not enabled. (Browser tabs can sometimes consume a staggering amount of resources)
One easy solution:
- Add a swap file if there is not an existing swap partition/swapfile.
- Activate swap using
swapon
- Tell him that when the system gets sluggish it's time to close a few tabs.
- If the system remains sluggish with all tabs closed, bring it to you in the sluggish state.
add a comment |
The description and the free output suggest that the system may be crashing when it runs out of RAM, and swap is not enabled. (Browser tabs can sometimes consume a staggering amount of resources)
One easy solution:
- Add a swap file if there is not an existing swap partition/swapfile.
- Activate swap using
swapon
- Tell him that when the system gets sluggish it's time to close a few tabs.
- If the system remains sluggish with all tabs closed, bring it to you in the sluggish state.
The description and the free output suggest that the system may be crashing when it runs out of RAM, and swap is not enabled. (Browser tabs can sometimes consume a staggering amount of resources)
One easy solution:
- Add a swap file if there is not an existing swap partition/swapfile.
- Activate swap using
swapon
- Tell him that when the system gets sluggish it's time to close a few tabs.
- If the system remains sluggish with all tabs closed, bring it to you in the sluggish state.
answered Mar 11 at 4:57
user535733user535733
8,69622943
8,69622943
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- 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%2faskubuntu.com%2fquestions%2f1124656%2fwhat-do-i-do-about-a-machine-that-is-running-out-of-memory-and-crashing%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
I'm wondering is there a swap partition on this system?
– Soulimane Mammar
Mar 11 at 4:59
@SoulimaneMammar There is a swap partition but it is commented out in
/etc/fstabandsudo swaponshows no results.– Amanda
Mar 11 at 5:07
use
fdisk,cfdiskorgpartedto see if that partition really exists on disk. If yes get it running by having the appropriate line inf/etc/fstabotherwise create a swap file and use it– Soulimane Mammar
Mar 11 at 5:18