linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: paul.szabo@sydney.edu.au
To: linux-mm@kvack.org
Cc: 695182@bugs.debian.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC] Reproducible OOM with just a few sleeps
Date: Sun, 13 Jan 2013 06:41:05 +1100	[thread overview]
Message-ID: <201301121941.r0CJf5ps017150@como.maths.usyd.edu.au> (raw)

The issue is a regression with PAE, reproduced and verified on Ubuntu,
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   psz@maths.usyd.edu.au   http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics   University of Sydney    Australia

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

             reply	other threads:[~2013-01-12 19:41 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-12 19:41 paul.szabo [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-01-17 21:04 paul.szabo
2013-01-17 21:55 ` Dave Hansen
2013-01-15 10:25 Sedat Dilek
2013-01-12  3:31 paul.szabo
2013-01-14 15:00 ` Dave Hansen
2013-01-14 20:36   ` paul.szabo
2013-01-15  0:56     ` Dave Hansen
2013-01-15  2:16       ` paul.szabo
2013-01-30 12:51       ` Pavel Machek
2013-01-30 15:32         ` Dave Hansen
2013-01-30 19:40           ` paul.szabo
2013-02-17  9:10   ` Simon Jeons
2013-02-24 22:10     ` paul.szabo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201301121941.r0CJf5ps017150@como.maths.usyd.edu.au \
    --to=paul.szabo@sydney.edu.au \
    --cc=695182@bugs.debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox