From: Randy Dunlap <randy.dunlap@oracle.com>
To: Justin Piszcz <jpiszcz@lucidpixels.com>
Cc: Jesse Barnes <jesse.barnes@intel.com>,
Andi Kleen <andi@firstfloor.org>,
linux-kernel@vger.kernel.org,
"Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: [PATCH] trim memory not covered by WB MTRRs
Date: Wed, 6 Jun 2007 16:11:03 -0700 [thread overview]
Message-ID: <20070606161103.f8e3b253.randy.dunlap@oracle.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0706061852590.2716@p34.internal.lan>
On Wed, 6 Jun 2007 18:54:37 -0400 (EDT) Justin Piszcz wrote:
> Hm, not sure if it was from the patch or what but I ran this:
>
> 1. swapoff -a
> 2. ./eatmem
>
> The machine responded to ping and alt-sysrq-b but the box remain
> unresponsive, I guess the kernel did not kill the process? :(
>
> The moments before it 'froze'
>
> top - 18:48:01 up 15 min, 7 users, load average: 6.61, 18.50, 13.31
> Tasks: 200 total, 18 running, 182 sleeping, 0 stopped, 0 zombie
> Cpu(s): 0.0%us, 90.7%sy, 0.0%ni, 5.9%id, 3.3%wa, 0.0%hi, 0.0%si,
> 0.0%st
> Mem: 8039576k total, 7998860k used, 40716k free, 8k buffers
> Swap: 0k total, 0k used, 0k free, 1664k cached
>
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 248 root 11 -5 0 0 0 R 85 0.0 0:16.05 kswapd0
> 2265 nut 18 0 13320 244 4 R 40 0.0 0:03.13 newhidups
> 2267 nut 18 0 12216 168 4 R 40 0.0 0:02.04 upsd
> 2474 ntp 18 0 22192 400 8 R 39 0.0 0:02.00 ntpd
> 3563 jpiszcz 18 0 41964 1264 4 R 38 0.0 0:02.20 pine
> 3530 root 18 0 96240 3132 36 R 37 0.0 0:02.09 kdm_greet
> 2052 root 18 0 6080 112 4 R 37 0.0 0:02.00 hald-addon-stor
> 4479 war 17 0 18012 700 252 R 33 0.0 0:01.81 top
> 4480 war 19 0 6948m 6.8g 4 R 22 88.4 0:05.81 eatmem
> 2095 root 18 0 13128 216 8 R 10 0.0 0:00.50 dirmngr
> 2545 root 18 0 95788 2488 4 R 5 0.0 0:00.25 apache2
> 3564 war 18 0 41620 832 4 R 5 0.0 0:00.34 pine
> 2270 nut 15 0 12212 144 4 S 1 0.0 0:00.05 upsmon
> 561 root 10 -5 0 0 0 S 0 0.0 0:00.02 xfsbufd
>
> Very simply program:
>
> #include <iostream>
> using namespace std;
>
> int main()
> {
> long int interations = 10000000;
> int counter = 1;
>
> for(counter;counter<interations;counter++)
> {
> double *d = new double[100];
You usually have to access the allocated memory, like:
*d = 1.0;
for it to actually be allocated (AFAIK).
> }
>
> return 0;
> }
>
> Any idea why the OOM killer can or does not kill it?
What are the values of /proc/sys/vm/overcommit* ?
See Documentation/vm/overcommit-accounting .
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
next prev parent reply other threads:[~2007-06-06 23:11 UTC|newest]
Thread overview: 118+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-06 19:29 Jesse Barnes
2007-06-06 20:26 ` Justin Piszcz
2007-06-06 20:28 ` Jesse Barnes
2007-06-06 20:31 ` Jesse Barnes
2007-06-06 20:37 ` Justin Piszcz
2007-06-06 20:50 ` Jesse Barnes
2007-06-06 21:26 ` Justin Piszcz
2007-06-06 21:53 ` Justin Piszcz
2007-06-06 22:03 ` Justin Piszcz
2007-06-06 22:05 ` Jesse Barnes
2007-06-06 22:07 ` Justin Piszcz
2007-06-06 22:13 ` Justin Piszcz
2007-06-06 22:24 ` Jesse Barnes
2007-06-06 22:26 ` Justin Piszcz
2007-06-06 22:28 ` Jesse Barnes
2007-06-06 22:31 ` Justin Piszcz
2007-06-06 22:35 ` Justin Piszcz
2007-06-06 22:37 ` Randy Dunlap
2007-06-06 22:46 ` Justin Piszcz
2007-06-06 22:54 ` Justin Piszcz
2007-06-06 23:11 ` Randy Dunlap [this message]
2007-06-06 23:15 ` Justin Piszcz
2007-06-06 23:34 ` Jesse Barnes
2007-06-07 8:10 ` Justin Piszcz
2007-06-06 22:39 ` Justin Piszcz
2007-06-06 22:57 ` Justin Piszcz
2007-06-06 23:20 ` Jesse Barnes
2007-06-06 23:24 ` Justin Piszcz
2007-06-06 23:27 ` Jesse Barnes
2007-06-07 8:51 ` Andi Kleen
2007-06-07 8:53 ` Justin Piszcz
2007-06-07 9:55 ` Satyam Sharma
2007-06-07 17:33 ` Jesse Barnes
2007-06-07 7:45 ` Eric W. Biederman
2007-06-07 17:30 ` Jesse Barnes
2007-06-08 23:13 ` Eric W. Biederman
2007-06-12 15:39 ` Jesse Barnes
2007-06-07 8:16 ` Andi Kleen
2007-06-07 17:35 ` Jesse Barnes
2007-06-07 17:40 ` Justin Piszcz
2007-06-07 14:41 ` Pavel Machek
2007-06-08 0:20 ` Andrew Morton
2007-06-08 1:33 ` Jesse Barnes
2007-06-08 21:15 ` Andrew Morton
2007-06-08 21:28 ` Jesse Barnes
2007-06-13 1:11 ` Eric W. Biederman
2007-06-13 2:29 ` Jesse Barnes
2007-06-13 22:19 ` Eric W. Biederman
2007-06-20 11:22 ` Helge Hafting
2007-06-20 14:37 ` Andi Kleen
2007-06-07 22:30 Jesse Barnes
2007-06-07 22:50 ` Justin Piszcz
2007-06-07 22:53 ` Justin Piszcz
2007-06-07 23:00 ` Justin Piszcz
2007-06-08 8:20 ` Justin Piszcz
2007-06-12 14:50 ` Pavel Machek
2007-06-12 15:29 ` Jesse Barnes
2007-06-12 15:48 ` Andi Kleen
2007-06-12 21:30 ` Pavel Machek
2007-06-12 21:31 ` Justin Piszcz
2007-06-12 21:38 ` Ray Lee
2007-06-12 21:55 ` Pavel Machek
2007-06-13 0:25 ` Ray Lee
2007-06-13 8:22 ` Pavel Machek
2007-06-14 19:38 ` Pim Zandbergen
2007-06-14 20:26 ` Justin Piszcz
2007-06-14 21:18 ` Jesse Barnes
2007-06-14 21:21 ` Justin Piszcz
2007-06-14 21:26 ` Jesse Barnes
2007-06-15 10:21 ` Pim Zandbergen
2007-06-15 16:20 ` Jesse Barnes
2007-06-21 14:24 ` Pim Zandbergen
2007-06-21 14:28 ` Justin Piszcz
2007-06-25 16:31 ` Pim Zandbergen
2007-06-25 16:34 ` Justin Piszcz
2007-06-15 10:17 ` Pim Zandbergen
2007-06-15 10:34 ` Justin Piszcz
2007-06-15 17:28 ` Jesse Barnes
2007-06-20 13:55 ` Pim Zandbergen
2007-06-21 19:40 ` Yinghai Lu
2007-06-21 19:56 ` Jesse Barnes
[not found] <fa.i7vJP3lxWAlyOLjcsqOWPKlixD8@ifi.uio.no>
[not found] ` <fa.3ijVoClbWNHWrMhDABWjNPxp+wo@ifi.uio.no>
[not found] ` <fa.ZqgSvRGj/scOmd0AwnU6e21Gcwc@ifi.uio.no>
[not found] ` <fa.oNsjw768fkDpx3oef91fjAQs1Iw@ifi.uio.no>
[not found] ` <fa.x8ZCt4n0yXI1llhRq4wfjNfqK4w@ifi.uio.no>
2007-06-08 1:57 ` Robert Hancock
[not found] <8tyOc-8f0-17@gated-at.bofh.it>
2007-06-13 6:52 ` Bodo Eggert
2007-06-13 16:19 ` Dave Jones
2007-06-25 21:34 Jesse Barnes
2007-06-25 21:45 ` Justin Piszcz
2007-06-25 22:01 ` Andrew Morton
2007-06-25 22:05 ` Jesse Barnes
2007-06-25 22:29 ` Justin Piszcz
2007-06-25 23:34 ` Andi Kleen
2007-06-25 23:36 ` Jesse Barnes
2007-06-26 0:54 ` Eric W. Biederman
2007-06-26 3:29 ` Jesse Barnes
2007-06-26 3:30 ` Jesse Barnes
2007-06-26 15:03 ` Andi Kleen
2007-06-26 15:07 ` Jesse Barnes
2007-06-26 15:18 ` Jesse Barnes
2007-06-26 15:39 ` Andi Kleen
2007-06-26 15:54 ` Yinghai Lu
2007-06-26 16:06 ` Eric W. Biederman
2007-06-26 17:38 ` Andi Kleen
2007-06-26 18:55 ` Yinghai Lu
2007-06-26 15:02 ` Andi Kleen
2007-06-26 15:38 ` Jesse Barnes
2007-06-27 10:44 ` Pim Zandbergen
2007-06-27 11:22 ` Andi Kleen
2007-06-27 11:40 ` Pim Zandbergen
2007-06-27 11:44 ` Justin Piszcz
2007-06-27 14:22 ` Mauro Giachero
2007-06-27 15:04 ` Jesse Barnes
2007-06-27 16:00 ` Pim Zandbergen
2007-06-27 16:07 ` Jesse Barnes
2007-06-27 16:22 ` Jesse Barnes
2007-06-27 17:02 ` Pim Zandbergen
2007-06-27 17:06 ` Jesse Barnes
2007-06-27 17:17 ` Pim Zandbergen
2007-07-05 12:12 ` Pavel Machek
2007-07-05 12:16 ` Justin Piszcz
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=20070606161103.f8e3b253.randy.dunlap@oracle.com \
--to=randy.dunlap@oracle.com \
--cc=andi@firstfloor.org \
--cc=ebiederm@xmission.com \
--cc=jesse.barnes@intel.com \
--cc=jpiszcz@lucidpixels.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®