← Back to team overview

kernel-packages team mailing list archive

[Bug 1518457] Re: kswapd0 100% CPU usage

 

It's crashing on boot with this version. It's related to paging, so it
might be relevant to the issue, so I've attached the full dmesg and
here's the actual crash:

[    3.716345] BUG: unable to handle kernel paging request at 000060ffc0002370
[    3.720056] IP: [<ffffffff811a6ae1>] mem_cgroup_move_account+0xd1/0x250
[    3.720056] PGD 0 
[    3.720056] Oops: 0000 [#1] SMP 
[    3.720056] Modules linked in: ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_tcpudp xt_recent xt_conntrack nf_conntrack iptable_filter ip_tables x_tables autofs4 crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd psmouse floppy pata_acpi
[    3.720056] CPU: 0 PID: 4 Comm: kworker/0:0 Not tainted 3.12.0-031200rc2-generic #201512161751
[    3.720056] Hardware name: Xen HVM domU, BIOS 4.2.amazon 12/07/2015
[    3.720056] Workqueue: events css_killed_work_fn
[    3.720056] task: ffff88003da946b0 ti: ffff88003daac000 task.ti: ffff88003daac000
[    3.720056] RIP: 0010:[<ffffffff811a6ae1>]  [<ffffffff811a6ae1>] mem_cgroup_move_account+0xd1/0x250
[    3.720056] RSP: 0000:ffff88003daadcc8  EFLAGS: 00010046
[    3.720056] RAX: 0000000000000246 RBX: ffff88003d803a60 RCX: 000000000000053e
[    3.720056] RDX: 000060ffc0002358 RSI: 0000000000000001 RDI: ffff88003c4e822c
[    3.720056] RBP: ffff88003daadd20 R08: ffff88003cc55000 R09: 0000000000000004
[    3.720056] R10: ffff88003c4e8000 R11: 0000000000000001 R12: 0000000000000000
[    3.720056] R13: ffffea0000e0e980 R14: ffff88003c4e8000 R15: 0000000000000001
[    3.720056] FS:  0000000000000000(0000) GS:ffff88003fc00000(0000) knlGS:0000000000000000
[    3.720056] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    3.720056] CR2: 000060ffc0002370 CR3: 0000000036754000 CR4: 00000000001406f0
[    3.720056] Stack:
[    3.720056]  ffffffff811a7bc8 ffff88003fffb780 ffffea0000e0e980 ffff88003cc55000
[    3.720056]  ffff88003c4e8000 ffff88003c4e822c ffff880036c1da00 ffffea0000e0e980
[    3.720056]  ffff88003fffbcc0 ffff88003d803a60 ffffea0000e0e9a0 ffff88003daadda8
[    3.720056] Call Trace:
[    3.720056]  [<ffffffff811a7bc8>] ? mem_cgroup_page_lruvec+0x28/0x90
[    3.720056]  [<ffffffff811a8427>] mem_cgroup_reparent_charges+0x257/0x460
[    3.720056]  [<ffffffff811a87df>] mem_cgroup_css_offline+0xaf/0x220
[    3.720056]  [<ffffffff810de897>] offline_css+0x27/0x50
[    3.720056]  [<ffffffff810e199d>] css_killed_work_fn+0x2d/0xa0
[    3.720056]  [<ffffffff81081032>] process_one_work+0x182/0x450
[    3.720056]  [<ffffffff81081dc1>] worker_thread+0x121/0x410
[    3.720056]  [<ffffffff81081ca0>] ? rescuer_thread+0x3d0/0x3d0
[    3.720056]  [<ffffffff81088ba0>] kthread+0xc0/0xd0
[    3.720056]  [<ffffffff81088ae0>] ? kthread_create_on_node+0x120/0x120
[    3.720056]  [<ffffffff816ff4fc>] ret_from_fork+0x7c/0xb0
[    3.720056]  [<ffffffff81088ae0>] ? kthread_create_on_node+0x120/0x120
[    3.720056] Code: d6 00 55 00 4d 85 e4 4c 8b 55 c8 4c 8b 45 c0 0f 85 a5 00 00 00 41 8b 55 18 85 d2 0f 88 99 00 00 00 49 8b 96 30 02 00 00 45 89 fb <4c> 39 5a 18 0f 8c c2 00 00 00 44 89 f9 f7 d9 89 ce 65 48 01 72 
[    3.720056] RIP  [<ffffffff811a6ae1>] mem_cgroup_move_account+0xd1/0x250
[    3.720056]  RSP <ffff88003daadcc8>
[    3.720056] CR2: 000060ffc0002370
[    3.720056] ---[ end trace 9ea086b6da9e6208 ]---

** Attachment added: "kswapd0-kernel-oops.txt"
   https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1518457/+attachment/4535981/+files/kswapd0-kernel-oops.txt

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1518457

Title:
  kswapd0 100% CPU usage

Status in linux package in Ubuntu:
  In Progress

Bug description:
  As per bug 721896 and various others:

  I'm on an AWS t2.micro instance (Xeon E5-2670, 991MiB of memory).
  Occasionally (about once a day), kswapd0 falls into a busy loop and
  spins on 100% CPU usage indefinitely. This can be provoked by
  copying/writing large files (e.g. dding a 256MB file), but it happens
  occasionally otherwise. System memory usage (not including
  buffers/caches) currently sits at 36%, which is typical[1]. Initially
  I had no swap space configured; I've since tried enabling a 256MB swap
  file, but the problem continues to occur and no swap space is used.
  The system can be recovered with `echo 1 > /proc/sys/vm/drop_caches`.

  Happy to provide further information/take further debugging actions.

  
  [1] Full output from `free`:
               total       used       free     shared    buffers     cached
  Mem:       1014936     483448     531488      28556       9756     112700
  -/+ buffers/cache:     360992     653944
  Swap:       262140          0     262140

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: linux-image-4.2.0-18-generic 4.2.0-18.22
  ProcVersionSignature: Ubuntu 4.2.0-18.22-generic 4.2.3
  Uname: Linux 4.2.0-18-generic x86_64
  AlsaDevices:
   total 0
   crw-rw---- 1 root audio 116,  1 Nov 19 19:40 seq
   crw-rw---- 1 root audio 116, 33 Nov 19 19:40 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.19.1-0ubuntu5
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  Date: Fri Nov 20 20:44:30 2015
  Ec2AMI: ami-1c552a76
  Ec2AMIManifest: (unknown)
  Ec2AvailabilityZone: us-east-1d
  Ec2InstanceType: t2.micro
  Ec2Kernel: unavailable
  Ec2Ramdisk: unavailable
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb: Error: command ['lsusb'] failed with exit code 1: unable to initialize libusb: -99
  MachineType: Xen HVM domU
  PciMultimedia:
   
  ProcEnviron:
   TERM=screen
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 xen
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.2.0-18-generic root=UUID=35bc01f4-4602-4823-976e-508edef899df ro console=tty1 console=ttyS0 net.ifnames=0
  RelatedPackageVersions:
   linux-restricted-modules-4.2.0-18-generic N/A
   linux-backports-modules-4.2.0-18-generic  N/A
   linux-firmware                            N/A
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UdevLog: Error: [Errno 2] No such file or directory: '/var/log/udev'
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 05/06/2015
  dmi.bios.vendor: Xen
  dmi.bios.version: 4.2.amazon
  dmi.chassis.type: 1
  dmi.chassis.vendor: Xen
  dmi.modalias: dmi:bvnXen:bvr4.2.amazon:bd05/06/2015:svnXen:pnHVMdomU:pvr4.2.amazon:cvnXen:ct1:cvr:
  dmi.product.name: HVM domU
  dmi.product.version: 4.2.amazon
  dmi.sys.vendor: Xen

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1518457/+subscriptions


References