[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#781003: marked as done (linux-image-3.16.0-4-amd64: Swaps to death when user launches memory-hungry process)



Your message dated Mon, 23 Mar 2015 16:13:16 +0000
with message-id <1427127196.32382.36.camel@decadent.org.uk>
and subject line Re: Bug#781003: linux-image-3.16.0-4-amd64: Swaps to death when user launches memory-hungry process
has caused the Debian Bug report #781003,
regarding linux-image-3.16.0-4-amd64: Swaps to death when user launches memory-hungry process
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
781003: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781003
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: src:linux
Version: 3.16.7-ckt7-1
Severity: normal

Dear Maintainer,

when a memory-hungry process is started (by normal user, not root) and the system has swap (on slow rotating drive), it takes about 20 minutes for the OOM killer to kill the process. During this time, even mouse poiter lags and the system is totally unusable. Invoking OOM using alt+sysrq+f does not help.

Steps to reproduce: multiple use-cases are provided.

1) Run the following code.

#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <string.h>

int main(int argc, char **argv) {
  uint64_t * chunk;

#define aloc_size 1024*1024

  int howmuch = 0;
  while(1) {
    chunk = malloc(aloc_size * 8);
    howmuch++;
    for(int i = 0; i<aloc_size; i++) {
      chunk[i] = i;
    }
    printf("Allocated %i MiB\n", howmuch*8);
  }

}


2) Or enter "make -j" (as mistyped "make -j 4") in some bigger project (e.g. GQRX).

3) Or visit NASA observatory with Iceweasel and open several gigantic JPEGs. (http://earthobservatory.nasa.gov/NaturalHazards/view.php?id=79765)

(tested on systems with 2 GB and 8 GB RAM)

Expected result: the offending processes are killed by OOM killer.

Workaround: when turning off swap, OOM killer solves the problem in several seconds. But when swap is on, it waits until it is full which takes a long time.


-- Package-specific info:
** Version:
Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01)

** Command line:
BOOT_IMAGE=/vmlinuz-3.16.0-4-amd64 root=/dev/mapper/dell-root ro quiet

** Tainted: O (4096)
 * Out-of-tree module has been loaded.

** Model information
sys_vendor: Dell Inc.                
product_name: OptiPlex 745                 
product_version: 
chassis_vendor: Dell Inc.                
chassis_version: 
bios_vendor: Dell Inc.                
bios_version: 2.4.1 
board_vendor: Dell Inc.          
board_name: 0GX297
board_version:    

** Loaded modules:
binfmt_misc
pci_stub
vboxpci(O)
vboxnetadp(O)
vboxnetflt(O)
vboxdrv(O)
ipt_MASQUERADE
iptable_nat
nf_conntrack_ipv4
nf_defrag_ipv4
nf_nat_ipv4
nf_nat
nf_conntrack
ip_tables
x_tables
usblp
joydev
snd_hda_codec_analog
snd_hda_codec_generic
snd_hda_intel
snd_hda_controller
snd_hda_codec
snd_hwdep
snd_pcm_oss
iTCO_wdt
iTCO_vendor_support
evdev
dcdbas
snd_mixer_oss
snd_pcm
coretemp
snd_seq_midi
kvm_intel
i915
kvm
pcspkr
lpc_ich
mfd_core
snd_seq_midi_event
snd_rawmidi
psmouse
serio_raw
snd_seq
snd_seq_device
snd_timer
i2c_i801
snd
video
drm_kms_helper
drm
shpchp
i2c_algo_bit
i2c_core
soundcore
tpm_tis
tpm
button
acpi_cpufreq
processor
thermal_sys
fuse
parport_pc
ppdev
lp
parport
autofs4
ext4
crc16
mbcache
jbd2
xts
gf128mul
algif_skcipher
af_alg
dm_crypt
dm_mod
sg
sd_mod
crc_t10dif
crct10dif_generic
sr_mod
cdrom
crct10dif_common
hid_generic
ata_generic
usbhid
hid
ata_piix
libata
scsi_mod
tg3
ptp
pps_core
libphy
ehci_pci
uhci_hcd
ehci_hcd
usbcore
usb_common

** USB devices:
Bus 006 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 0529:0001 Aladdin Knowledge Systems HASP v0.06
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 03f0:7d04 Hewlett-Packard DeskJet F2100 Printer series
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 046d:c31d Logitech, Inc. Media Keyboard K200
Bus 001 Device 002: ID 0458:003a KYE Systems Corp. (Mouse Systems) NetScroll+ Mini Traveler / Genius NetScroll 120
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages linux-image-3.16.0-4-amd64 depends on:
ii  debconf [debconf-2.0]                   1.5.55
ii  initramfs-tools [linux-initramfs-tool]  0.119
ii  kmod                                    18-3
ii  linux-base                              3.5
ii  module-init-tools                       18-3

Versions of packages linux-image-3.16.0-4-amd64 recommends:
ii  firmware-linux-free  3.3
ii  irqbalance           1.0.6-3

Versions of packages linux-image-3.16.0-4-amd64 suggests:
pn  debian-kernel-handbook  <none>
ii  grub-pc                 2.02~beta2-21
pn  linux-doc-3.16          <none>

Versions of packages linux-image-3.16.0-4-amd64 is related to:
pn  firmware-atheros        <none>
pn  firmware-bnx2           <none>
pn  firmware-bnx2x          <none>
pn  firmware-brcm80211      <none>
pn  firmware-intelwimax     <none>
pn  firmware-ipw2x00        <none>
pn  firmware-ivtv           <none>
pn  firmware-iwlwifi        <none>
pn  firmware-libertas       <none>
pn  firmware-linux          <none>
pn  firmware-linux-nonfree  <none>
pn  firmware-myricom        <none>
pn  firmware-netxen         <none>
pn  firmware-qlogic         <none>
pn  firmware-ralink         <none>
pn  firmware-realtek        <none>
pn  xen-hypervisor          <none>

-- debconf information:
  linux-image-3.16.0-4-amd64/postinst/depmod-error-initrd-3.16.0-4-amd64: false
  linux-image-3.16.0-4-amd64/prerm/removing-running-kernel-3.16.0-4-amd64: true
  linux-image-3.16.0-4-amd64/postinst/mips-initrd-3.16.0-4-amd64:

--- End Message ---
--- Begin Message ---
On Mon, 2015-03-23 at 03:07 +0100, Jan Hrach wrote:
> Package: src:linux
> Version: 3.16.7-ckt7-1
> Severity: normal
> 
> Dear Maintainer,
> 
> when a memory-hungry process is started (by normal user, not root) and
> the system has swap (on slow rotating drive), it takes about 20
> minutes for the OOM killer to kill the process. During this time, even
> mouse poiter lags and the system is totally unusable. Invoking OOM
> using alt+sysrq+f does not help.
[...]

Yes.  Consider using a smaller swap partition.

Ben.

-- 
Ben Hutchings
If you seem to know what you are doing, you'll be given more to do.

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply to: