Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753078AbZIAJC3 (ORCPT ); Tue, 1 Sep 2009 05:02:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751772AbZIAJC2 (ORCPT ); Tue, 1 Sep 2009 05:02:28 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:58028 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751091AbZIAJC2 (ORCPT ); Tue, 1 Sep 2009 05:02:28 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Tue, 1 Sep 2009 18:00:32 +0900 From: KAMEZAWA Hiroyuki To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, "linux-mm@kvack.org" Subject: [mmotm][BUG] free is bigger than presnet Re: mmotm 2009-08-27-16-51 uploaded Message-Id: <20090901180032.55f7b8ca.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <200908272355.n7RNtghC019990@imap1.linux-foundation.org> References: <200908272355.n7RNtghC019990@imap1.linux-foundation.org> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 2.5.0 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3894 Lines: 90 On Thu, 27 Aug 2009 16:55:42 -0700 akpm@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2009-08-27-16-51 has been uploaded to > > http://userweb.kernel.org/~akpm/mmotm/ > > and will soon be available at > > git://git.zen-sources.org/zen/mmotm.git > > It contains the following patches against 2.6.31-rc7: > I'm not digggin so much but /proc/meminfo corrupted. [kamezawa@bluextal cgroup]$ cat /proc/meminfo MemTotal: 24421124 kB MemFree: 38314388 kB Wow ;) On x86-64 8cpu box + 24G memory. (config is NUMA but the system itself is not NUMA.) At boot time and for a while, It seems to be no trouble. I used this. == malloc.c #include #define MSIZE (1024 * 1024 * 8) int main(int argc, char *argv[]) { char **c; long size; int array_size, i; size = atoi(argv[1]); size *= 1024 * 1024; array_size = size/MSIZE + 1; c= malloc(sizeof(void *) * array_size); for (i = 0; i < array_size; i++) { c[i] = malloc(MSIZE); memset(c[i], 0, MSIZE); } while (1) { for (i = 0; i < array_size; i++) { memset(c[i], 0, MSIZE); sleep(2); } sleep(10); } return; } == # malloc 23000 # malloc 1000 and run hackbench 20. OOM Kill message says free exceeds present ;( == Sep 1 18:01:17 localhost kernel: [ 3012.503440] active_anon:5461242 inactive_anon:473226 isolated_anon:384 Sep 1 18:01:17 localhost kernel: [ 3012.503440] active_file:133 inactive_file:664 isolated_file:0 Sep 1 18:01:17 localhost kernel: [ 3012.503440] unevictable:0 dirty:0 writeback:73 unstable:0 buffer:283 Sep 1 18:01:17 localhost kernel: [ 3012.503440] free:9454041 slab_reclaimable:5144 slab_unreclaimable:10564 Sep 1 18:01:17 localhost kernel: [ 3012.503440] mapped:7019 shmem:0 pagetables:22572 bounce:0 Sep 1 18:01:17 localhost kernel: [ 3012.503440] Node 0 DMA free:15788kB min:12kB low:12kB high:16kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15016kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no Sep 1 18:01:17 localhost kernel: [ 3012.503440] lowmem_reserve[]: 0 2951 23909 23909 Sep 1 18:01:17 localhost kernel: [ 3012.503440] Node 0 DMA32 free:11729908kB min:2440kB low:3048kB high:3660kB active_anon:1866292kB inactive_anon:466548kB active_file:140kB inactive_file:1588kB unevictable:0kB isolated(anon):256kB isolated(file):0kB present:3022624kB mlocked:0kB dirty:0kB writeback:292kB mapped:8kB shmem:0kB slab_reclaimable:2724kB slab_unreclaimable:10124kB kernel_stack:4504kB pagetables:21536kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:227 all_unreclaimable? no Sep 1 18:01:17 localhost kernel: [ 3012.503440] lowmem_reserve[]: 0 0 20958 20958 Sep 1 18:01:17 localhost kernel: [ 3012.503440] Node 0 Normal free:26071392kB min:17340kB low:21672kB high:26008kB active_anon:19978676kB inactive_anon:1426356kB active_file:392kB inactive_file:1068kB unevictable:0kB isolated(anon):1280kB isolated(file):0kB present:21460992kB mlocked:0kB dirty:0kB writeback:0kB mapped:28068kB shmem:0kB slab_reclaimable:17852kB slab_unreclaimable:32132kB kernel_stack:3672kB pagetables:68752kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:3840 all_unreclaimable? no == I'll dig more but does anyone have hints ? Thanks, -Kame -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/