Ubuntu 16.04 with no swap freezes when running out of memory

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








up vote
2
down vote

favorite
1












I have an up-to-date 16.04 64bit system with 24GB of memory, configured without swap. Sometimes due to the nature of my work (multiple VirtualBox VMs running, Eclipse running, Firefox and Chrome running etc) my system runs out of memory and instead of killing the processes with the larger memory footprint it just freezes and becomes unusable and then I have to hard reboot. Why is this the case?










share|improve this question





















  • I think that, even if you have 24GB or RAM, you need at least 5 GB of RAM (in my opinion the best would be 24GB). Maybe there is a problem with swapiness... if you run in a terminal as root the command: sysctl vm.swappiness what it returns?
    – LilloX
    Mar 13 at 10:16










  • It returns: vm.swappiness = 60
    – Tryfon Farmakakis
    Mar 13 at 11:14










  • You can try, as root, to execute sysctl vm.swappiness=0 . This disable the swap, maybe the system try to allocate the swap even if there is not...
    – LilloX
    Mar 13 at 11:18










  • Nope, this didn't change anything, as expected since I don't have any swap file as I explained before.
    – Tryfon Farmakakis
    Mar 14 at 13:30










  • @TryfonFarmakakis did you find a solution? could you help me?
    – Soorena
    Apr 10 at 9:10














up vote
2
down vote

favorite
1












I have an up-to-date 16.04 64bit system with 24GB of memory, configured without swap. Sometimes due to the nature of my work (multiple VirtualBox VMs running, Eclipse running, Firefox and Chrome running etc) my system runs out of memory and instead of killing the processes with the larger memory footprint it just freezes and becomes unusable and then I have to hard reboot. Why is this the case?










share|improve this question





















  • I think that, even if you have 24GB or RAM, you need at least 5 GB of RAM (in my opinion the best would be 24GB). Maybe there is a problem with swapiness... if you run in a terminal as root the command: sysctl vm.swappiness what it returns?
    – LilloX
    Mar 13 at 10:16










  • It returns: vm.swappiness = 60
    – Tryfon Farmakakis
    Mar 13 at 11:14










  • You can try, as root, to execute sysctl vm.swappiness=0 . This disable the swap, maybe the system try to allocate the swap even if there is not...
    – LilloX
    Mar 13 at 11:18










  • Nope, this didn't change anything, as expected since I don't have any swap file as I explained before.
    – Tryfon Farmakakis
    Mar 14 at 13:30










  • @TryfonFarmakakis did you find a solution? could you help me?
    – Soorena
    Apr 10 at 9:10












up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





I have an up-to-date 16.04 64bit system with 24GB of memory, configured without swap. Sometimes due to the nature of my work (multiple VirtualBox VMs running, Eclipse running, Firefox and Chrome running etc) my system runs out of memory and instead of killing the processes with the larger memory footprint it just freezes and becomes unusable and then I have to hard reboot. Why is this the case?










share|improve this question













I have an up-to-date 16.04 64bit system with 24GB of memory, configured without swap. Sometimes due to the nature of my work (multiple VirtualBox VMs running, Eclipse running, Firefox and Chrome running etc) my system runs out of memory and instead of killing the processes with the larger memory footprint it just freezes and becomes unusable and then I have to hard reboot. Why is this the case?







16.04 swap memory-usage






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 13 at 10:05









Tryfon Farmakakis

111




111











  • I think that, even if you have 24GB or RAM, you need at least 5 GB of RAM (in my opinion the best would be 24GB). Maybe there is a problem with swapiness... if you run in a terminal as root the command: sysctl vm.swappiness what it returns?
    – LilloX
    Mar 13 at 10:16










  • It returns: vm.swappiness = 60
    – Tryfon Farmakakis
    Mar 13 at 11:14










  • You can try, as root, to execute sysctl vm.swappiness=0 . This disable the swap, maybe the system try to allocate the swap even if there is not...
    – LilloX
    Mar 13 at 11:18










  • Nope, this didn't change anything, as expected since I don't have any swap file as I explained before.
    – Tryfon Farmakakis
    Mar 14 at 13:30










  • @TryfonFarmakakis did you find a solution? could you help me?
    – Soorena
    Apr 10 at 9:10
















  • I think that, even if you have 24GB or RAM, you need at least 5 GB of RAM (in my opinion the best would be 24GB). Maybe there is a problem with swapiness... if you run in a terminal as root the command: sysctl vm.swappiness what it returns?
    – LilloX
    Mar 13 at 10:16










  • It returns: vm.swappiness = 60
    – Tryfon Farmakakis
    Mar 13 at 11:14










  • You can try, as root, to execute sysctl vm.swappiness=0 . This disable the swap, maybe the system try to allocate the swap even if there is not...
    – LilloX
    Mar 13 at 11:18










  • Nope, this didn't change anything, as expected since I don't have any swap file as I explained before.
    – Tryfon Farmakakis
    Mar 14 at 13:30










  • @TryfonFarmakakis did you find a solution? could you help me?
    – Soorena
    Apr 10 at 9:10















I think that, even if you have 24GB or RAM, you need at least 5 GB of RAM (in my opinion the best would be 24GB). Maybe there is a problem with swapiness... if you run in a terminal as root the command: sysctl vm.swappiness what it returns?
– LilloX
Mar 13 at 10:16




I think that, even if you have 24GB or RAM, you need at least 5 GB of RAM (in my opinion the best would be 24GB). Maybe there is a problem with swapiness... if you run in a terminal as root the command: sysctl vm.swappiness what it returns?
– LilloX
Mar 13 at 10:16












It returns: vm.swappiness = 60
– Tryfon Farmakakis
Mar 13 at 11:14




It returns: vm.swappiness = 60
– Tryfon Farmakakis
Mar 13 at 11:14












You can try, as root, to execute sysctl vm.swappiness=0 . This disable the swap, maybe the system try to allocate the swap even if there is not...
– LilloX
Mar 13 at 11:18




You can try, as root, to execute sysctl vm.swappiness=0 . This disable the swap, maybe the system try to allocate the swap even if there is not...
– LilloX
Mar 13 at 11:18












Nope, this didn't change anything, as expected since I don't have any swap file as I explained before.
– Tryfon Farmakakis
Mar 14 at 13:30




Nope, this didn't change anything, as expected since I don't have any swap file as I explained before.
– Tryfon Farmakakis
Mar 14 at 13:30












@TryfonFarmakakis did you find a solution? could you help me?
– Soorena
Apr 10 at 9:10




@TryfonFarmakakis did you find a solution? could you help me?
– Soorena
Apr 10 at 9:10















active

oldest

votes











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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1014481%2fubuntu-16-04-with-no-swap-freezes-when-running-out-of-memory%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1014481%2fubuntu-16-04-with-no-swap-freezes-when-running-out-of-memory%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491