FS#36574 - Freezes on memory overflow

Attached to Project: Arch Linux
Opened by Jakub Okoński (farnoy) - Saturday, 17 August 2013, 14:08 GMT
Last edited by Dave Reisner (falconindy) - Friday, 23 August 2013, 01:44 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hi,

Description:
Since about a week ago, I've been experiencing freezes (audio looping on short duration, display not refreshing, no activity at all). I think they happen when I'm over 90% of ram usage and the swap is below about 200M. I'm running a x86_64 system, with packages updating daily.


Additional info:
I'm using zram from systemd-arch-units 20120915-2, which now I'm realizing does not exist anymore (package URL pointing to https://github.com/falconindy/systemd-arch-units). I will disable it and see if it still crashes

I would provide logs if I knew how to obtain ones just before a crash, `dmesg` only gives logs from current boot.


Steps to reproduce:
Run a memory hog (`google-chrome` in my case), then another one (compile Rust). It freezes on my 4GB machine.

Now that I notices the outdated zram package, I will disable it, but is there something that serves a similar purpose?
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 23 August 2013, 01:44 GMT
Reason for closing:  Not a bug
Additional comments about closing:  This is what happens when you apply into heavy VM pressure and start using swap. Use a faster swap device or add more RAM if you want to avoid it.
Comment by Karol Błażewicz (karol) - Sunday, 18 August 2013, 14:21 GMT
Please search the AUR: https://aur.archlinux.org/packages/zramswap/

systemd journal should have some crash-related info.

Are these freezes fatal i.e. you have to yank the powercord to poweroff/reboot? Can you use kbd/mouse? Can you switch to tty? Does Magic SysRq work https://wiki.archlinux.org/index.php/Keyboard_Shortcuts#Kernel?
Comment by Jakub Okoński (farnoy) - Sunday, 18 August 2013, 15:18 GMT
Logs show only segfault in user process, few seconds after that a freeze happened.

Yes, I need to reset the whole computer, mouse/kbd not responding.

I've disabled zram and had no crashes since, I think it was just an outdated package, I'll try zramswap from AUR.
Comment by Karol Błażewicz (karol) - Sunday, 18 August 2013, 15:54 GMT
Remove 'quiet' from the kernel command line in your bootloader and disable clearing the boot messages to see if there are any problems with zramswap.

I think you should open a forum thread to see what is this issue really about.
I've been using zramswap for a long time and recently I've been experiencing similar hangups. They occurred in various situations and the only thing in common they had that I can think of is pretty high memory usage.
Comment by Jakub Okoński (farnoy) - Sunday, 18 August 2013, 18:26 GMT
Same thing happens with the new zramswap package, I'll try to gather some useful logs next time it happens.
Comment by Jakub Okoński (farnoy) - Monday, 19 August 2013, 01:36 GMT

Loading...