PAE regression: OOM with just a few sleeps

Bug #1098961 reported by Paul Szabo
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

There is a spurious OOM issue with PAE kernel: it will suffer an OOM
crash just by running a few processes.
Please see also
  http://bugs.debian.org/695182
and discussion on <email address hidden> e.g.
  http://marc.info/?l=linux-mm&m=135801969519193&w=2
I wonder whether
  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1098342
is related.

The issue is a regression with PAE, reproduced and verified on my
home PC with 3GB RAM.

My PC was running kernel linux-image-3.2.0-35-generic so it showed:
  psz@DellE520:~$ uname -a
  Linux DellE520 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5 17:45:18 UTC 2012 i686 i686 i386 GNU/Linux
  psz@DellE520:~$ free -l
               total used free shared buffers cached
  Mem: 3087972 692256 2395716 0 18276 427116
  Low: 861464 71372 790092
  High: 2226508 620884 1605624
  -/+ buffers/cache: 246864 2841108
  Swap: 20000920 258364 19742556
Then it handled the "sleep test"
  bash -c 'n=0; while [ $n -lt 33000 ]; do sleep 600 & ((n=n+1)); ((m=n%500)); if [ $m -lt 1 ]; then echo -n "$n - "; date; free -l; sleep 1; fi; done'
just fine, stopped only by "max user processes" (default setting of
"ulimit -u 23964"), or raising that limit stopped when the machine ran
out of PID space; there was no OOM.

Installing and running the PAE kernel so it showed:
  psz@DellE520:~$ uname -a
  Linux DellE520 3.2.0-35-generic-pae #55-Ubuntu SMP Wed Dec 5 18:04:39 UTC 2012 i686 i686 i386 GNU/Linux
  psz@DellE520:~$ free -l
               total used free shared buffers cached
  Mem: 3087620 681188 2406432 0 167332 352296
  Low: 865208 214080 651128
  High: 2222412 467108 1755304
  -/+ buffers/cache: 161560 2926060
  Swap: 20000920 0 20000920
and re-trying the "sleep test", it ran into OOM after 18000 or so sleeps
and crashed/froze so I had to press the POWER button to recover.

Cheers, Paul

Paul Szabo <email address hidden> http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics University of Sydney Australia
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
ApportVersion: 2.0.1-0ubuntu15.1
Architecture: i386
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: psz 2190 F.... pulseaudio
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xdfddc000 irq 45'
   Mixer name : 'SigmaTel STAC9227'
   Components : 'HDA:83847618,102801dd,00100201'
   Controls : 38
   Simple ctrls : 21
CurrentDmesg: [ 28.160013] eth0: no IPv6 routers present
DistroRelease: Ubuntu 12.04
HibernationDevice: RESUME=UUID=9d2bf7ac-9b0a-4082-ac45-f4d3c8e32c23
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Dell Inc. Dell DM061
MarkForUpload: True
Package: linux (not installed)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=C
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: root=/dev/mapper/isw_cheedcedhh_DadMirroredTB4 ro quiet splash
ProcVersionSignature: Ubuntu 3.2.0-35.55-generic-pae 3.2.34
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-35-generic-pae N/A
 linux-backports-modules-3.2.0-35-generic-pae N/A
 linux-firmware 1.79.1
RfKill:

Tags: precise
Uname: Linux 3.2.0-35-generic-pae i686
UpgradeStatus: Upgraded to precise on 2012-04-27 (260 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
WifiSyslog: Jan 13 06:42:46 DellE520 NetworkManager[1384]: <info> Unmanaged Device found; state CONNECTED forced. (see http://bugs.launchpad.net/bugs/191889)
WpaSupplicantLog:

dmi.bios.date: 03/23/2007
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 2.2.1
dmi.board.name: 0WG864
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 6
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr2.2.1:bd03/23/2007:svnDellInc.:pnDellDM061:pvr:rvnDellInc.:rn0WG864:rvr:cvnDellInc.:ct6:cvr:
dmi.product.name: Dell DM061
dmi.sys.vendor: Dell Inc.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1098961

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: precise
Revision history for this message
Paul Szabo (psz-maths) wrote : AcpiTables.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Paul Szabo (psz-maths) wrote : AlsaDevices.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : ArecordDevices.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : BootDmesg.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : Card0.Codecs.codec.2.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : Lspci.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : Lsusb.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : PciMultimedia.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : ProcModules.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : PulseList.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : UdevDb.txt

apport information

Revision history for this message
Paul Szabo (psz-maths) wrote : UdevLog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.8 kernel[0] (Not a kernel in the daily directory) and install both the linux-image and linux-image-extra .deb packages.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.8-rc3-raring/

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Paul Szabo (psz-maths) wrote :
Download full text (5.8 KiB)

Tested "latest upstream kernel": the mainline kernel does NOT fix the bug.
Tag 'kernel-bug-exists-upstream' added, bug marked as 'Confirmed'.

More verbose blurb below.

Cheers, Paul

Paul Szabo <email address hidden> http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics University of Sydney Australia

---

I grabbed the files
http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.8-rc3-raring/linux-image-3.8.0-030800rc3-generic_3.8.0-030800rc3.201301092235_i386.deb
http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.8-rc3-raring/linux-image-extra-3.8.0-030800rc3-generic_3.8.0-030800rc3.201301092235_i386.deb
so they looked like

psz@DellE520:~$ ls -l linux*
-rw-r--r-- 1 psz psz 12884368 Jan 16 19:47 linux-image-3.8.0-030800rc3-generic_3.8.0-030800rc3.201301092235_i386.deb
-rw-r--r-- 1 psz psz 30134224 Jan 16 19:49 linux-image-extra-3.8.0-030800rc3-generic_3.8.0-030800rc3.201301092235_i386.deb
psz@DellE520:~$

and I installed them:

psz@DellE520:~$ sudo dpkg -i linux*
[sudo] password for psz:
Selecting previously unselected package linux-image-3.8.0-030800rc3-generic.
(Reading database ... 193268 files and directories currently installed.)
Unpacking linux-image-3.8.0-030800rc3-generic (from linux-image-3.8.0-030800rc3-generic_3.8.0-030800rc3.201301092235_i386.deb) ...
Done.
Selecting previously unselected package linux-image-extra-3.8.0-030800rc3-generic.
Unpacking linux-image-extra-3.8.0-030800rc3-generic (from linux-image-extra-3.8.0-030800rc3-generic_3.8.0-030800rc3.201301092235_i386.deb) ...
Setting up linux-image-3.8.0-030800rc3-generic (3.8.0-030800rc3.201301092235) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-030800rc3-generic /boot/vmlinuz-3.8.0-030800rc3-generic
update-initramfs: Generating /boot/initrd.img-3.8.0-030800rc3-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.8.0-030800rc3-generic /boot/vmlinuz-3.8.0-030800rc3-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.8.0-030800rc3-generic /boot/vmlinuz-3.8.0-030800rc3-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.8.0-030800rc3-generic /boot/vmlinuz-3.8.0-030800rc3-generic
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-3.8.0-030800rc3-generic
Found kernel: /boot/vmlinuz-3.2.0-35-generic-pae
Found kernel: /boot/vmlinuz-3.2.0-35-generic
Found kernel: /boot/memtest86+.bin
Replacing config file /run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done

Setting up linux-image-extra-3.8.0-030800rc3-generic (3.8.0-030800rc3.201301092235) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.0-030800rc3-generic /boot/vmlinuz-3.8.0-030800rc3-generic
update-initramfs: Generating /boot/initrd.img-3.8.0-030800rc3-...

Read more...

tags: added: kernel-bug-exists-upstream
removed: apport-collected precise
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Paul Szabo, as per http://www.dell.com/support/drivers/us/en/19/driverdetails?driverid=R157196 an update is available for your BIOS (2.4.0). If you update to this, does it change anything?

If not, could you please both specify what happened, and provide the output of the following terminal command:
sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date

Thank you for your understanding.

tags: added: bios-outdated-2.4.0 needs-upstream-testing precise regression-potential
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Paul Szabo (psz-maths) wrote :
Download full text (18.1 KiB)

Dear Christopher,

Thanks for the hint about the BIOS.
I updated it, the BIOS version went from 2.2.1 to 2.4.0.

With the new BIOS and running non-PAE kernel:
  psz@DellE520:~$ uname -a
  Linux DellE520 3.2.0-51-generic #77-Ubuntu SMP Wed Jul 24 20:21:10 UTC 2013 i686 i686 i386 GNU/Linux
  psz@DellE520:~$ free -l
               total used free shared buffers cached
  Mem: 3087960 1128504 1959456 0 152800 705708
  Low: 861452 213880 647572
  High: 2226508 914624 1311884
  -/+ buffers/cache: 269996 2817964
  Swap: 20000920 0 20000920
it handled the "sleep test"
  bash -c 'n=0; while [ $n -lt 33000 ]; do sleep 600 & ((n=n+1)); ((m=n%500)); if [ $m -lt 1 ]; then echo -n "$n - "; date; free -l; sleep 1; fi; done'
just fine (as expected), running out of "max user processes" because of
default setting of "ulimit -u 23964".

Installing the PAE kernel and rebooting (of course with new BIOS):
  psz@DellE520:~$ uname -a
  Linux DellE520 3.2.0-51-generic-pae #77-Ubuntu SMP Wed Jul 24 20:40:32 UTC 2013 i686 i686 i386 GNU/Linux
  psz@DellE520:~$ free -l
               total used free shared buffers cached
  Mem: 3087592 610740 2476852 0 112796 344216
  Low: 865180 160496 704684
  High: 2222412 450244 1772168
  -/+ buffers/cache: 153728 2933864
  Swap: 20000920 0 20000920
(has default setting "ulimit -u 23960") and re-trying the "sleep test",
things went bad after 22500 processes. The graphics console crashed,
with X saying "your graphics device is running in low-resolution mode"
or somesuch, and with no mouse or keyboard response so could not click
the OK button. Hitting Alt-Ctrl-F2 worked and got a getty login.
Looking with ps, there were no sleep processes left running.
In /var/log/syslog I found:

Aug 8 20:01:48 DellE520 kernel: [ 341.000570] oom_kill_process: 39 callbacks suppressed
Aug 8 20:01:48 DellE520 kernel: [ 341.000578] bash invoked oom-killer: gfp_mask=0x84d0, order=0, oom_adj=0, oom_score_adj=0
Aug 8 20:01:48 DellE520 kernel: [ 341.000584] bash cpuset=/ mems_allowed=0
Aug 8 20:01:48 DellE520 kernel: [ 341.000589] Pid: 2375, comm: bash Not tainted 3.2.0-51-generic-pae #77-Ubuntu
Aug 8 20:01:48 DellE520 kernel: [ 341.000593] Call Trace:
Aug 8 20:01:48 DellE520 kernel: [ 341.000605] [<c10fa6c5>] dump_header.isra.6+0x85/0xc0
Aug 8 20:01:48 DellE520 kernel: [ 341.000612] [<c10fa8fc>] oom_kill_process+0x5c/0x80
Aug 8 20:01:48 DellE520 kernel: [ 341.000617] [<c10fad15>] out_of_memory+0xc5/0x1c0
Aug 8 20:01:48 DellE520 kernel: [ 341.000623] [<c10febcc>] __alloc_pages_nodemask+0x72c/0x740
Aug 8 20:01:48 DellE520 kernel: [ 341.000630] [<c10fec5c>] __get_free_pages+0x1c/0x30
Aug 8 20:01:48 DellE520 kernel: [ 341.000636] [<c103af54>] pgd_alloc+0x74/0x250
Aug 8 20:01:48 DellE520 kernel: [ 341.000642] [<c10440ca>] ? place_entity+0x9a/0x160
Aug 8 20:01:48 DellE520 kernel: [ 341.000648] [<c1058487>] mm_init+0xc7/0x100
Aug 8 20:01:48 DellE520 kernel: [ 341.000653] [<c1058f23>] dup_mm+0xa3/0x230
Aug 8 20:01:48 DellE520 kern...

Revision history for this message
penalvch (penalvch) wrote :

Paul Szabo, could you please confirm this issue exists with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ . If the issue remains, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.11-rc4

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

If you are unable to test the mainline kernel, please comment as to why specifically you were unable to test it and add the following tags:
kernel-unable-to-test-upstream
kernel-unable-to-test-upstream-VERSION-NUMBER

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

tags: added: kernel-bug-exists-upstream-v3.8-rc3 latest-bios-2.4.0
removed: bios-outdated-2.4.0 kernel-bug-exists-upstream
Revision history for this message
Paul Szabo (psz-maths) wrote :

Dear Christopher,

> ... test the latest upstream kernel ...

Did not I do that already in
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1098961/comments/18
? Is there really a need to re-test? (Yes I know that the kernel now is different
from what I tested... but unless you know that something related was fixed,
are you hoping for an "accidental" fix?)

But yes, OK, I love hard work... will do...

Cheers, Paul

Revision history for this message
Paul Szabo (psz-maths) wrote :

Dear Christopher,

About testing the latest kernel (with a development Ubuntu, which may be
unrelated to the kernel bug): would not it be better for you to test?
The feedback to you would be more immediate, allowing you to test kernel
tuneables, or maybe tweak/fix/patch the kernel sources.

Thanks, Paul

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Paul Szabo (psz-maths) wrote :

Expired? That is weird... how come it did not expire between comments#18
and comments#19, between 16Jan and 6Aug?

Anyway the bug is "alive"... as anyone could easily test, with a simple

  bash -c 'n=0; while [ $n -lt 33000 ]; do sleep 600 & ((n=n+1)); ((m=n%500)); if [ $m -lt 1 ]; then echo -n "$n - "; date; free -l; sleep 1; fi; done'

On any PAE machine (any amount of RAM, any version userland code, and
any version kernel, I tested many), that should produce an OOM in a
minute or so. Conversely: does anyone have a PAE machine where the
above does not produce an OOM?

Yes I know I promised to test "latest development and upstream" or
somesuch. Sorry I did not get around to it, yet: the test would be
rather disruptive on my home computer.

I also note the suggestion (from kernel developers?) in the references
above, to use amd64 kernel even with 32-bit userland. Maybe Ubuntu could
follow suit.

Cheers, Paul

Revision history for this message
Paul Szabo (psz-maths) wrote :
Download full text (9.7 KiB)

Now at Ubuntu VERSION="14.04.1 LTS, Trusty Tahr" seems that the
one-and-only x86 kernel offered is with PAE, so I cannot easily
demonstrate the difference between PAE and non-PAE kernels.

With the PAE kernel, my machine produces an OOM crash with the
test command

  bash -c 'n=0; while [ $n -lt 33000 ]; do sleep 600 & ((n=n+1)); ((m=n%500)); if [ $m -lt 1 ]; then echo -n "$n - "; date; free -l; sleep 1; fi; done'

My conjecture is that all Linux machines will produce an OOM,
regardless of the amount of RAM memory installed.

Your challenge is to prove me wrong: find any one machine that
survives the above command without an OOM condition. (Obviously
the bug, and thus the challenge, is for Linux machines with x86
CPUs and PAE kernels; but is for any distros, not just Ubuntu.)
Should you succeed, you will have helped to better understand
this bug and so contribute to finding a solution; I also offer
the prize of a carton of beer to the first finder; and having
knocked me off my soapbox, you will be allowed to feel smug and
superior forever.

Should you fail the challenge and have your machine reproduce
an OOM crash, I urge you to complain to your Linux distributor
or to the kernel people. (Seems that bugs are left unfixed for
years if only a few people complain, to the point where Ubuntu
abandoned the "working version" non-PAE kernel.)

---

Maybe a workaround is to upgrade to 64-bit Linux with amd64
kernel. However... that is just a crude workaround without any
guarantee of correctness, until some understanding of this bug:
the kernel code is common between 32- and 64-bit.

---

Long and boring details below.

Cheers, Paul

Paul Szabo <email address hidden> http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics University of Sydney Australia

-----

psz@DellE520:~$ dpkg -l | grep linux-image
ii linux-image-3.13.0-35-generic 3.13.0-35.62 i386 Linux kernel image for version 3.13.0 on 32 bit x86 SMP
ii linux-image-extra-3.13.0-35-generic 3.13.0-35.62 i386 Linux kernel extra modules for version 3.13.0 on 32 bit x86 SMP
ii linux-image-generic 3.13.0.35.42 i386 Generic Linux kernel image
psz@DellE520:~$
psz@DellE520:~$ uname -a
Linux DellE520 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:01 UTC 2014 i686 i686 i686 GNU/Linux
psz@DellE520:~$
psz@DellE520:~$ grep -H PAE /boot/conf*
/boot/config-3.13.0-35-generic:CONFIG_X86_PAE=y
psz@DellE520:~$
psz@DellE520:~$ free -l
             total used free shared buffers cached
Mem: 3092416 1027832 2064584 142520 125124 519192
Low: 870004 444336 425668
High: 2222412 583496 1638916
-/+ buffers/cache: 383516 2708900
Swap: 20000920 0 20000920
psz@DellE520:~$
psz@DellE520:~$ ulimit -u
23950
psz@DellE520:~$
psz@DellE520:~$ bash -c 'n=0; while [ $n -lt 33000 ]; do sleep 600 & ((n=n+1)); ((m=n%500)); if [ $m -lt 1 ]; then echo -n "$n - "; date; free -l; s...

Read more...

penalvch (penalvch)
tags: added: trusty
Revision history for this message
Paul Szabo (psz-maths) wrote :

Should a CVE be assigned, seeing how this issue causes a DoS?
And then a USN/DSA should be issued when eventually solved.
Should it be reported to SecurityFocus and obtain a BID?
Could the Status be changed to something better than "Expired"?
Would some kind soul confirm and explicitly state that this affects
"multiple users"?

Revision history for this message
Paul Szabo (psz-maths) wrote :

Following a suggestion in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695182#513
I tested older kernels: seems that PAE was always (or at least back to
karmic 2.6.31) prone to OOM under the "sleep test".
Curiously I found that non-PAE kernels of that vintage might also OOM,
maybe depending on the value of /proc/sys/fs/file-max .

Cheers, Paul

Paul Szabo <email address hidden> http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics University of Sydney Australia

---

Machine: Dell Optiplex 760, 4GB RAM

Results:

Version Name kernel
4.10 Warty 2.6.8 (could not install from CD)
5.04 Hoary 2.6.10
5.10 Breezy 2.6.12
6.06 Dapper 2.6.15
6.10 Edgy 2.6.17
7.04 Feisty 2.6.20 (could not install from CD)
7.10 Gutsy 2.6.22 (could not install from CD)
8.04 Hardy 2.6.24
8.10 Intrepid 2.6.27-7 (no PAE) non-PAE(file-max=330344,default)=OK (about 19000 to file limit)
                                          non-PAE(file-max=555000)=OOM (after about 31000)
9.04 Jaunty 2.6.28
9.10 Karmic 2.6.31-14 PAE=OOM non-PAE(file-max=327956,default)=OK (about 18500 to file limit)
                                          non-PAE(file-max=444000)=OK (about 26000 to file limit)
                                          non-PAE(file-max=555000)=OK (to PID limit)
                                          non-PAE(file-max=888000)=OK (to PID limit)
                                          non-PAE(file-max=999999)=OOM (after about 32500)
10.04 Lucid 2.6.32-65 PAE=OOM non-PAE(file-max=330827,default)=OK (about 19000 to file limit)
                                          non-PAE(file-max=377000)=OK (about 21500 to file limit)
                                          non-PAE(file-max=444000)=OK (about 25500 to file limit)
                                          non-PAE(file-max=555000)=OOM (after about 31500)
10.10 Maverick 2.6.35-22 (PAE=?) non-PAE(file-max=330677,default)=OK (to PID limit)
11.04 Natty 2.6.38-8 PAE=OOM non-PAE(file-max=330426,default)=OK (to PID limit)
11.10 Oneiric 3.0.0 PAE=OOM non-PAE=OK
12.04 Precise 3.2
12.10 Quantal 3.5
13.04 Raring 3.8
13.10 Saucy 3.11
14.04 Trusty 3.13 PAE=OOM (no non-PAE kernel)
14.10 Utopic 3.16

References:

http://en.wikipedia.org/wiki/List_of_Ubuntu_releases
https://wiki.ubuntu.com/Releases

http://old-releases.ubuntu.com/releases/

http://bugs.debian.org/695182
http://bugs.launchpad.net/ubuntu/+source/linux/+bug/1098961

Commands used:

sudo sh -c 'echo 999999 > /proc/sys/fs/file-max'
bash -c 'n=0; while [ $n -lt 33000 ]; do sleep 600 & ((n=n+1)); ((m=n%500)); if [ $m -lt 1 ]; then echo -n "$n - "; date; free -l; sleep 1; fi; done'

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.