All of lore.kernel.org
 help / color / mirror / Atom feed
From: "M. Vefa Bicakci" <bicave@superonline.com>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [Bisected Regression in 2.6.35] A full tmpfs filesystem causeshibernation to hang
Date: Mon, 23 Aug 2010 09:27:41 +0300	[thread overview]
Message-ID: <4C7214DD.30500@superonline.com> (raw)
In-Reply-To: <20100823091948.6029.A69D9226@jp.fujitsu.com>

Hello,

On 23/08/10 03:22 AM, KOSAKI Motohiro wrote:
> 
> sorry, my last mail has some mistake.
> 

No problem. I did the tests again according to your new instructions,
and I am appending the results.

Regards,

M. Vefa Bicakci

> 1. Please let me know your machine & test script
>

% ./your-fills-up-the-tmpfs-script   (i.e. run your script)

> % cat /proc/meminfo

MemTotal:        3104484 kB
MemFree:         1258780 kB
Buffers:           30820 kB
Cached:          1693836 kB
SwapCached:            0 kB
Active:          1670344 kB
Inactive:         137960 kB
Active(anon):    1633940 kB
Inactive(anon):    26224 kB
Active(file):      36404 kB
Inactive(file):   111736 kB
Unevictable:          32 kB
Mlocked:              32 kB
HighTotal:       2226632 kB
HighFree:         437684 kB
LowTotal:         877852 kB
LowFree:          821096 kB
SwapTotal:       1999540 kB
SwapFree:        1999540 kB
Dirty:                28 kB
Writeback:             0 kB
AnonPages:         83676 kB
Mapped:            44220 kB
Shmem:           1576520 kB
Slab:              17136 kB
SReclaimable:       9480 kB
SUnreclaim:         7656 kB
KernelStack:        1832 kB
PageTables:         2440 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3551780 kB
Committed_AS:    1892636 kB
VmallocTotal:     122880 kB
VmallocUsed:       16308 kB
VmallocChunk:      92764 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB
DirectMap4k:       24568 kB
DirectMap4M:      884736 kB


> % cat /proc/vmstat

nr_free_pages 314850
nr_inactive_anon 6480
nr_active_anon 408485
nr_inactive_file 27935
nr_active_file 9101
nr_unevictable 8
nr_mlock 8
nr_anon_pages 20919
nr_mapped 11055
nr_file_pages 431089
nr_dirty 8
nr_writeback 0
nr_slab_reclaimable 2370
nr_slab_unreclaimable 1914
nr_page_table_pages 610
nr_kernel_stack 229
nr_unstable 0
nr_bounce 0
nr_vmscan_write 0
nr_writeback_temp 0
nr_isolated_anon 0
nr_isolated_file 0
nr_shmem 394054
pgpgin 150719
pgpgout 5312
pswpin 0
pswpout 0
pgalloc_dma 2
pgalloc_normal 116354
pgalloc_high 2637682
pgalloc_movable 0
pgfree 3069531
pgactivate 2339016
pgdeactivate 160
pgfault 699155
pgmajfault 1082
pgrefill_dma 0
pgrefill_normal 0
pgrefill_high 160
pgrefill_movable 0
pgsteal_dma 0
pgsteal_normal 0
pgsteal_high 29
pgsteal_movable 0
pgscan_kswapd_dma 0
pgscan_kswapd_normal 0
pgscan_kswapd_high 0
pgscan_kswapd_movable 0
pgscan_direct_dma 0
pgscan_direct_normal 0
pgscan_direct_high 32
pgscan_direct_movable 0
pginodesteal 0
slabs_scanned 0
kswapd_steal 0
kswapd_inodesteal 0
kswapd_low_wmark_hit_quickly 0
kswapd_high_wmark_hit_quickly 0
kswapd_skip_congestion_wait 0
pageoutrun 0
allocstall 1
pgrotated 0
htlb_buddy_alloc_success 0
htlb_buddy_alloc_fail 0
unevictable_pgs_culled 7832
unevictable_pgs_scanned 0
unevictable_pgs_rescued 7046
unevictable_pgs_mlocked 8562
unevictable_pgs_munlocked 8554
unevictable_pgs_cleared 0
unevictable_pgs_stranded 0
unevictable_pgs_mlockfreed 0

> % cat /proc/zoneinfo

Node 0, zone      DMA
  pages free     2614
        min      16
        low      20
        high     24
        scanned  0
        spanned  4080
        present  3951
    nr_free_pages 2614
    nr_inactive_anon 0
    nr_active_anon 0
    nr_inactive_file 0
    nr_active_file 0
    nr_unevictable 0
    nr_mlock     0
    nr_anon_pages 0
    nr_mapped    0
    nr_file_pages 0
    nr_dirty     0
    nr_writeback 0
    nr_slab_reclaimable 0
    nr_slab_unreclaimable 2
    nr_page_table_pages 0
    nr_kernel_stack 0
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     0
        protection: (0, 865, 3022, 3022)
  pagesets
    cpu: 0
              count: 0
              high:  0
              batch: 1
  vm stats threshold: 4
    cpu: 1
              count: 0
              high:  0
              batch: 1
  vm stats threshold: 4
  all_unreclaimable: 0
  prev_priority:     9
  start_pfn:         16
  inactive_ratio:    1
 recent_anon_rotated: 0
 recent_anon_scanned: 0
 recent_file_rotated: 0
 recent_file_scanned: 0
 anon_ratio:          30
Node 0, zone   Normal
  pages free     202722
        min      932
        low      1165
        high     1398
        scanned  0
        spanned  223230
        present  221486
    nr_free_pages 202722
    nr_inactive_anon 0
    nr_active_anon 0
    nr_inactive_file 5792
    nr_active_file 1970
    nr_unevictable 0
    nr_mlock     0
    nr_anon_pages 0
    nr_mapped    1
    nr_file_pages 7761
    nr_dirty     7
    nr_writeback 0
    nr_slab_reclaimable 2370
    nr_slab_unreclaimable 1912
    nr_page_table_pages 0
    nr_kernel_stack 229
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     0
        protection: (0, 0, 17259, 17259)
  pagesets
    cpu: 0
              count: 155
              high:  186
              batch: 31
  vm stats threshold: 16
    cpu: 1
              count: 173
              high:  186
              batch: 31
  vm stats threshold: 16
  all_unreclaimable: 0
  prev_priority:     9
  start_pfn:         4096
  inactive_ratio:    1
 recent_anon_rotated: 0
 recent_anon_scanned: 0
 recent_file_rotated: 272
 recent_file_scanned: 1385
 anon_ratio:          7
Node 0, zone  HighMem
  pages free     109607
        min      128
        low      709
        high     1290
        scanned  0
        spanned  556658
        present  552309
    nr_free_pages 109607
    nr_inactive_anon 6482
    nr_active_anon 408478
    nr_inactive_file 22146
    nr_active_file 7131
    nr_unevictable 8
    nr_mlock     8
    nr_anon_pages 20919
    nr_mapped    11054
    nr_file_pages 423333
    nr_dirty     2
    nr_writeback 0
    nr_slab_reclaimable 0
    nr_slab_unreclaimable 0
    nr_page_table_pages 610
    nr_kernel_stack 0
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     394056
        protection: (0, 0, 0, 0)
  pagesets
    cpu: 0
              count: 107
              high:  186
              batch: 31
  vm stats threshold: 24
    cpu: 1
              count: 129
              high:  186
              batch: 31
  vm stats threshold: 24
  all_unreclaimable: 0
  prev_priority:     9
  start_pfn:         227326
  inactive_ratio:    4
 recent_anon_rotated: 1259857
 recent_anon_scanned: 2522124
 recent_file_rotated: 1269
 recent_file_scanned: 5591
 anon_ratio:          16

> % df

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda15            10317828   7309436   2484276  75% /
tmpfs                  1552240         8   1552232   1% /lib/init/rw
udev                   1549148       220   1548928   1% /dev
tmpfs                  1552240         4   1552236   1% /dev/shm
tmpfs                  1552240   1552240         0 100% /tmp

> % cat your-fills-up-the-tmpfs-script

#!/bin/bash

rm -vf /tmp/tmp
dd if=/dev/zero of=/tmp/tmp bs=1024k count=1600
shred -vn1 /tmp/tmp

exit 0 ### removed when testing hibernation

read -p "Press enter to hibernate..."

echo -n reboot > /sys/power/disk
echo -n disk > /sys/power/state

echo "Exit code: $?"

rm -vf /tmp/tmp


>
> 2. call shrink_all_memory() forcely and show result
>

% ./your-fills-up-the-tmpfs-script

> % cat /proc/meminfo

MemTotal:        3104484 kB
MemFree:         1259400 kB
Buffers:           30836 kB
Cached:          1693572 kB
SwapCached:            0 kB
Active:          1670356 kB
Inactive:         137708 kB
Active(anon):    1633948 kB
Inactive(anon):    25944 kB
Active(file):      36408 kB
Inactive(file):   111764 kB
Unevictable:          32 kB
Mlocked:              32 kB
HighTotal:       2226632 kB
HighFree:         438056 kB
LowTotal:         877852 kB
LowFree:          821344 kB
SwapTotal:       1999540 kB
SwapFree:        1999540 kB
Dirty:                36 kB
Writeback:             0 kB
AnonPages:         83684 kB
Mapped:            44236 kB
Shmem:           1576240 kB
Slab:              17136 kB
SReclaimable:       9480 kB
SUnreclaim:         7656 kB
KernelStack:        1832 kB
PageTables:         2440 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3551780 kB
Committed_AS:    1892412 kB
VmallocTotal:     122880 kB
VmallocUsed:       16308 kB
VmallocChunk:      92764 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB
DirectMap4k:       24568 kB
DirectMap4M:      884736 kB

> % cat /proc/zoneinfo

Node 0, zone      DMA
  pages free     2614
        min      16
        low      20
        high     24
        scanned  0
        spanned  4080
        present  3951
    nr_free_pages 2614
    nr_inactive_anon 0
    nr_active_anon 0
    nr_inactive_file 0
    nr_active_file 0
    nr_unevictable 0
    nr_mlock     0
    nr_anon_pages 0
    nr_mapped    0
    nr_file_pages 0
    nr_dirty     0
    nr_writeback 0
    nr_slab_reclaimable 0
    nr_slab_unreclaimable 2
    nr_page_table_pages 0
    nr_kernel_stack 0
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     0
        protection: (0, 865, 3022, 3022)
  pagesets
    cpu: 0
              count: 0
              high:  0
              batch: 1
  vm stats threshold: 4
    cpu: 1
              count: 0
              high:  0
              batch: 1
  vm stats threshold: 4
  all_unreclaimable: 0
  prev_priority:     9
  start_pfn:         16
  inactive_ratio:    1
 recent_anon_rotated: 0
 recent_anon_scanned: 0
 recent_file_rotated: 0
 recent_file_scanned: 0
 anon_ratio:          30
Node 0, zone   Normal
  pages free     202691
        min      932
        low      1165
        high     1398
        scanned  0
        spanned  223230
        present  221486
    nr_free_pages 202691
    nr_inactive_anon 0
    nr_active_anon 0
    nr_inactive_file 5796
    nr_active_file 1970
    nr_unevictable 0
    nr_mlock     0
    nr_anon_pages 0
    nr_mapped    1
    nr_file_pages 7765
    nr_dirty     7
    nr_writeback 0
    nr_slab_reclaimable 2370
    nr_slab_unreclaimable 1912
    nr_page_table_pages 0
    nr_kernel_stack 229
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     0
        protection: (0, 0, 17259, 17259)
  pagesets
    cpu: 0
              count: 161
              high:  186
              batch: 31
  vm stats threshold: 16
    cpu: 1
              count: 170
              high:  186
              batch: 31
  vm stats threshold: 16
  all_unreclaimable: 0
  prev_priority:     9
  start_pfn:         4096
  inactive_ratio:    1
 recent_anon_rotated: 0
 recent_anon_scanned: 0
 recent_file_rotated: 272
 recent_file_scanned: 1389
 anon_ratio:          7
Node 0, zone  HighMem
  pages free     109514
        min      128
        low      709
        high     1290
        scanned  0
        spanned  556658
        present  552309
    nr_free_pages 109514
    nr_inactive_anon 6484
    nr_active_anon 408487
    nr_inactive_file 22148
    nr_active_file 7132
    nr_unevictable 8
    nr_mlock     8
    nr_anon_pages 20921
    nr_mapped    11058
    nr_file_pages 423338
    nr_dirty     3
    nr_writeback 0
    nr_slab_reclaimable 0
    nr_slab_unreclaimable 0
    nr_page_table_pages 610
    nr_kernel_stack 0
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     394058
        protection: (0, 0, 0, 0)
  pagesets
    cpu: 0
              count: 167
              high:  186
              batch: 31
  vm stats threshold: 24
    cpu: 1
              count: 156
              high:  186
              batch: 31
  vm stats threshold: 24
  all_unreclaimable: 0
  prev_priority:     9
  start_pfn:         227326
  inactive_ratio:    4
 recent_anon_rotated: 1650360
 recent_anon_scanned: 3304957
 recent_file_rotated: 1270
 recent_file_scanned: 5595
 anon_ratio:          16

> # echo 1 > /proc/sys/vm/shrink_all_memory

> # tail /var/log/messages

[  439.165652] shrink_all_memory start
[  439.165960] shrink_all_memory: req:1 reclaimed:32 free:313765

> % cat /proc/meminfo

MemTotal:        3104484 kB
MemFree:         1259516 kB
Buffers:           30852 kB
Cached:          1693672 kB
SwapCached:            0 kB
Active:          1669728 kB
Inactive:         138456 kB
Active(anon):    1633320 kB
Inactive(anon):    26800 kB
Active(file):      36408 kB
Inactive(file):   111656 kB
Unevictable:          32 kB
Mlocked:              32 kB
HighTotal:       2226632 kB
HighFree:         438180 kB
LowTotal:         877852 kB
LowFree:          821336 kB
SwapTotal:       1999540 kB
SwapFree:        1999540 kB
Dirty:                40 kB
Writeback:             0 kB
AnonPages:         83696 kB
Mapped:            44236 kB
Shmem:           1576460 kB
Slab:              17140 kB
SReclaimable:       9484 kB
SUnreclaim:         7656 kB
KernelStack:        1840 kB
PageTables:         2440 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3551780 kB
Committed_AS:    1892540 kB
VmallocTotal:     122880 kB
VmallocUsed:       16308 kB
VmallocChunk:      92764 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB
DirectMap4k:       24568 kB
DirectMap4M:      884736 kB

> % cat /proc/zoneinfo

Node 0, zone      DMA
  pages free     2614
        min      16
        low      20
        high     24
        scanned  0
        spanned  4080
        present  3951
    nr_free_pages 2614
    nr_inactive_anon 0
    nr_active_anon 0
    nr_inactive_file 0
    nr_active_file 0
    nr_unevictable 0
    nr_mlock     0
    nr_anon_pages 0
    nr_mapped    0
    nr_file_pages 0
    nr_dirty     0
    nr_writeback 0
    nr_slab_reclaimable 0
    nr_slab_unreclaimable 2
    nr_page_table_pages 0
    nr_kernel_stack 0
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     0
        protection: (0, 865, 3022, 3022)
  pagesets
    cpu: 0
              count: 0
              high:  0
              batch: 1
  vm stats threshold: 4
    cpu: 1
              count: 0
              high:  0
              batch: 1
  vm stats threshold: 4
  all_unreclaimable: 0
  prev_priority:     9
  start_pfn:         16
  inactive_ratio:    1
 recent_anon_rotated: 0
 recent_anon_scanned: 0
 recent_file_rotated: 0
 recent_file_scanned: 0
 anon_ratio:          30
Node 0, zone   Normal
  pages free     202720
        min      932
        low      1165
        high     1398
        scanned  0
        spanned  223230
        present  221486
    nr_free_pages 202720
    nr_inactive_anon 0
    nr_active_anon 0
    nr_inactive_file 5798
    nr_active_file 1970
    nr_unevictable 0
    nr_mlock     0
    nr_anon_pages 0
    nr_mapped    1
    nr_file_pages 7767
    nr_dirty     0
    nr_writeback 0
    nr_slab_reclaimable 2371
    nr_slab_unreclaimable 1912
    nr_page_table_pages 0
    nr_kernel_stack 230
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     0
        protection: (0, 0, 17259, 17259)
  pagesets
    cpu: 0
              count: 139
              high:  186
              batch: 31
  vm stats threshold: 16
    cpu: 1
              count: 165
              high:  186
              batch: 31
  vm stats threshold: 16
  all_unreclaimable: 0
  prev_priority:     9
  start_pfn:         4096
  inactive_ratio:    1
 recent_anon_rotated: 0
 recent_anon_scanned: 0
 recent_file_rotated: 272
 recent_file_scanned: 1391
 anon_ratio:          7
Node 0, zone  HighMem
  pages free     109576
        min      128
        low      709
        high     1290
        scanned  0
        spanned  556658
        present  552309
    nr_free_pages 109576
    nr_inactive_anon 6642
    nr_active_anon 408330
    nr_inactive_file 22118
    nr_active_file 7132
    nr_unevictable 8
    nr_mlock     8
    nr_anon_pages 20924
    nr_mapped    11058
    nr_file_pages 423306
    nr_dirty     3
    nr_writeback 0
    nr_slab_reclaimable 0
    nr_slab_unreclaimable 0
    nr_page_table_pages 610
    nr_kernel_stack 0
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     394056
        protection: (0, 0, 0, 0)
  pagesets
    cpu: 0
              count: 158
              high:  186
              batch: 31
  vm stats threshold: 24
    cpu: 1
              count: 133
              high:  186
              batch: 31
  vm stats threshold: 24
  all_unreclaimable: 0
  prev_priority:     9
  start_pfn:         227326
  inactive_ratio:    4
 recent_anon_rotated: 103467
 recent_anon_scanned: 207085
 recent_file_rotated: 1270
 recent_file_scanned: 5629
 anon_ratio:          16

> 3. reset zone_reclaim_stat and rerun shrink_all_memory
>

% ./your-fills-up-the-tmpfs-script

> # echo 1 > /proc/sys/vm/reset_reclaim_stat
> % cat /proc/meminfo

MemTotal:        3104484 kB
MemFree:         1260012 kB
Buffers:           30884 kB
Cached:          1693496 kB
SwapCached:            0 kB
Active:          1669736 kB
Inactive:         138316 kB
Active(anon):    1633324 kB
Inactive(anon):    26616 kB
Active(file):      36412 kB
Inactive(file):   111700 kB
Unevictable:          32 kB
Mlocked:              32 kB
HighTotal:       2226632 kB
HighFree:         438304 kB
LowTotal:         877852 kB
LowFree:          821708 kB
SwapTotal:       1999540 kB
SwapFree:        1999540 kB
Dirty:                12 kB
Writeback:             0 kB
AnonPages:         83700 kB
Mapped:            44240 kB
Shmem:           1576272 kB
Slab:              17140 kB
SReclaimable:       9484 kB
SUnreclaim:         7656 kB
KernelStack:        1840 kB
PageTables:         2440 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3551780 kB
Committed_AS:    1892440 kB
VmallocTotal:     122880 kB
VmallocUsed:       16308 kB
VmallocChunk:      92764 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB
DirectMap4k:       24568 kB
DirectMap4M:      884736 kB

> % cat /proc/zoneinfo


Node 0, zone      DMA
  pages free     2614
        min      16
        low      20
        high     24
        scanned  0
        spanned  4080
        present  3951
    nr_free_pages 2614
    nr_inactive_anon 0
    nr_active_anon 0
    nr_inactive_file 0
    nr_active_file 0
    nr_unevictable 0
    nr_mlock     0
    nr_anon_pages 0
    nr_mapped    0
    nr_file_pages 0
    nr_dirty     0
    nr_writeback 0
    nr_slab_reclaimable 0
    nr_slab_unreclaimable 2
    nr_page_table_pages 0
    nr_kernel_stack 0
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     0
        protection: (0, 865, 3022, 3022)
  pagesets
    cpu: 0
              count: 0
              high:  0
              batch: 1
  vm stats threshold: 4
    cpu: 1
              count: 0
              high:  0
              batch: 1
  vm stats threshold: 4
  all_unreclaimable: 0
  prev_priority:     9
  start_pfn:         16
  inactive_ratio:    1
 recent_anon_rotated: 0
 recent_anon_scanned: 0
 recent_file_rotated: 0
 recent_file_scanned: 0
 anon_ratio:          30
Node 0, zone   Normal
  pages free     202844
        min      932
        low      1165
        high     1398
        scanned  0
        spanned  223230
        present  221486
    nr_free_pages 202844
    nr_inactive_anon 0
    nr_active_anon 0
    nr_inactive_file 5808
    nr_active_file 1970
    nr_unevictable 0
    nr_mlock     0
    nr_anon_pages 0
    nr_mapped    1
    nr_file_pages 7777
    nr_dirty     5
    nr_writeback 0
    nr_slab_reclaimable 2371
    nr_slab_unreclaimable 1912
    nr_page_table_pages 0
    nr_kernel_stack 230
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     0
        protection: (0, 0, 17259, 17259)
  pagesets
    cpu: 0
              count: 153
              high:  186
              batch: 31
  vm stats threshold: 16
    cpu: 1
              count: 39
              high:  186
              batch: 31
  vm stats threshold: 16
  all_unreclaimable: 0
  prev_priority:     9
  start_pfn:         4096
  inactive_ratio:    1
 recent_anon_rotated: 0
 recent_anon_scanned: 0
 recent_file_rotated: 0
 recent_file_scanned: 2
 anon_ratio:          12
Node 0, zone  HighMem
  pages free     109607
        min      128
        low      709
        high     1290
        scanned  0
        spanned  556658
        present  552309
    nr_free_pages 109607
    nr_inactive_anon 6638
    nr_active_anon 408331
    nr_inactive_file 22120
    nr_active_file 7133
    nr_unevictable 8
    nr_mlock     8
    nr_anon_pages 20925
    nr_mapped    11057
    nr_file_pages 423305
    nr_dirty     1
    nr_writeback 0
    nr_slab_reclaimable 0
    nr_slab_unreclaimable 0
    nr_page_table_pages 610
    nr_kernel_stack 0
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     394052
        protection: (0, 0, 0, 0)
  pagesets
    cpu: 0
              count: 157
              high:  186
              batch: 31
  vm stats threshold: 24
    cpu: 1
              count: 94
              high:  186
              batch: 31
  vm stats threshold: 24
  all_unreclaimable: 0
  prev_priority:     9
  start_pfn:         227326
  inactive_ratio:    4
 recent_anon_rotated: 896
 recent_anon_scanned: 1078
 recent_file_rotated: 0
 recent_file_scanned: 1
 anon_ratio:          20

> # echo 1 > /proc/sys/vm/shrink_all_memory
> # tail /var/log/messages

[  504.609297] shrink_all_memory start
[  504.609537] shrink_all_memory: req:1 reclaimed:31 free:315005

> % cat /proc/meminfo


MemTotal:        3104484 kB
MemFree:         1255796 kB
Buffers:           30788 kB
Cached:          1697944 kB
SwapCached:            0 kB
Active:          1669480 kB
Inactive:         143044 kB
Active(anon):    1633064 kB
Inactive(anon):    31432 kB
Active(file):      36416 kB
Inactive(file):   111612 kB
Unevictable:          32 kB
Mlocked:              32 kB
HighTotal:       2226632 kB
HighFree:         433964 kB
LowTotal:         877852 kB
LowFree:          821832 kB
SwapTotal:       1999540 kB
SwapFree:        1999540 kB
Dirty:                40 kB
Writeback:             0 kB
AnonPages:         83852 kB
Mapped:            44220 kB
Shmem:           1580704 kB
Slab:              17140 kB
SReclaimable:       9484 kB
SUnreclaim:         7656 kB
KernelStack:        1840 kB
PageTables:         2440 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     3551780 kB
Committed_AS:    1896832 kB
VmallocTotal:     122880 kB
VmallocUsed:       16308 kB
VmallocChunk:      92764 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB
DirectMap4k:       24568 kB
DirectMap4M:      884736 kB

> % cat /proc/zoneinfo

Node 0, zone      DMA
  pages free     2614
        min      16
        low      20
        high     24
        scanned  0
        spanned  4080
        present  3951
    nr_free_pages 2614
    nr_inactive_anon 0
    nr_active_anon 0
    nr_inactive_file 0
    nr_active_file 0
    nr_unevictable 0
    nr_mlock     0
    nr_anon_pages 0
    nr_mapped    0
    nr_file_pages 0
    nr_dirty     0
    nr_writeback 0
    nr_slab_reclaimable 0
    nr_slab_unreclaimable 2
    nr_page_table_pages 0
    nr_kernel_stack 0
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     0
        protection: (0, 865, 3022, 3022)
  pagesets
    cpu: 0
              count: 0
              high:  0
              batch: 1
  vm stats threshold: 4
    cpu: 1
              count: 0
              high:  0
              batch: 1
  vm stats threshold: 4
  all_unreclaimable: 0
  prev_priority:     10
  start_pfn:         16
  inactive_ratio:    1
 recent_anon_rotated: 0
 recent_anon_scanned: 0
 recent_file_rotated: 0
 recent_file_scanned: 0
 anon_ratio:          30
Node 0, zone   Normal
  pages free     202844
        min      932
        low      1165
        high     1398
        scanned  0
        spanned  223230
        present  221486
    nr_free_pages 202844
    nr_inactive_anon 0
    nr_active_anon 0
    nr_inactive_file 5778
    nr_active_file 1971
    nr_unevictable 0
    nr_mlock     0
    nr_anon_pages 0
    nr_mapped    1
    nr_file_pages 7749
    nr_dirty     5
    nr_writeback 0
    nr_slab_reclaimable 2371
    nr_slab_unreclaimable 1912
    nr_page_table_pages 0
    nr_kernel_stack 230
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     0
        protection: (0, 0, 17259, 17259)
  pagesets
    cpu: 0
              count: 102
              high:  186
              batch: 31
  vm stats threshold: 16
    cpu: 1
              count: 63
              high:  186
              batch: 31
  vm stats threshold: 16
  all_unreclaimable: 0
  prev_priority:     10
  start_pfn:         4096
  inactive_ratio:    1
 recent_anon_rotated: 0
 recent_anon_scanned: 0
 recent_file_rotated: 1
 recent_file_scanned: 38
 anon_ratio:          2
Node 0, zone  HighMem
  pages free     109545
        min      128
        low      709
        high     1290
        scanned  96
        spanned  556658
        present  552309
    nr_free_pages 109545
    nr_inactive_anon 6797
    nr_active_anon 408235
    nr_inactive_file 22122
    nr_active_file 7133
    nr_unevictable 8
    nr_mlock     8
    nr_anon_pages 20925
    nr_mapped    11054
    nr_file_pages 423370
    nr_dirty     5
    nr_writeback 0
    nr_slab_reclaimable 0
    nr_slab_unreclaimable 0
    nr_page_table_pages 610
    nr_kernel_stack 0
    nr_unstable  0
    nr_bounce    0
    nr_vmscan_write 0
    nr_writeback_temp 0
    nr_isolated_anon 0
    nr_isolated_file 0
    nr_shmem     394115
        protection: (0, 0, 0, 0)
  pagesets
    cpu: 0
              count: 137
              high:  186
              batch: 31
  vm stats threshold: 24
    cpu: 1
              count: 119
              high:  186
              batch: 31
  vm stats threshold: 24
  all_unreclaimable: 0
  prev_priority:     10
  start_pfn:         227326
  inactive_ratio:    4
 recent_anon_rotated: 1358
 recent_anon_scanned: 1730
 recent_file_rotated: 0
 recent_file_scanned: 3
 anon_ratio:          11


  reply	other threads:[~2010-08-23  6:28 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-15  5:25 [Bisected Regression in 2.6.35] A full tmpfs filesystem causes hibernationto hang M. Vefa Bicakci
2010-08-17  2:37 ` KOSAKI Motohiro
2010-08-22 11:06 ` KOSAKI Motohiro
2010-08-22 16:28   ` [Bisected Regression in 2.6.35] A full tmpfs filesystem causeshibernation to hang M. Vefa Bicakci
2010-08-25  8:55     ` KOSAKI Motohiro
2010-08-25 10:11       ` [Bisected Regression in 2.6.35] A full tmpfs filesystem causeshibernationto hang M. Vefa Bicakci
2010-08-25 17:31       ` [Bisected Regression in 2.6.35] A full tmpfs filesystem causeshibernation to hang Rafael J. Wysocki
2010-08-23  0:22   ` [Bisected Regression in 2.6.35] A full tmpfs filesystem causes hibernationto hang KOSAKI Motohiro
2010-08-23  6:27     ` M. Vefa Bicakci [this message]
2010-08-25  0:48       ` [Bisected Regression in 2.6.35] A full tmpfs filesystem causeshibernation to hang KOSAKI Motohiro
2010-08-25  8:39         ` KOSAKI Motohiro
2010-08-25 10:10           ` [Bisected Regression in 2.6.35] A full tmpfs filesystem causeshibernationto hang M. Vefa Bicakci
     [not found]           ` <4C74EB70.3080406@superonline.com>
     [not found]             ` <20100826134506.F676.A69D9226@jp.fujitsu.com>
2010-08-26 10:36               ` M. Vefa Bicakci
2010-08-30  2:28                 ` KOSAKI Motohiro
2010-08-30 16:54                   ` [Bisected Regression in 2.6.35] A full tmpfs filesystem causeshibernation to hang M. Vefa Bicakci
2010-08-31  6:35                     ` KOSAKI Motohiro
2010-08-31  6:54                       ` KOSAKI Motohiro
2010-08-31 11:25                         ` [Bisected Regression in 2.6.35] A full tmpfs filesystem causeshibernationto hang M. Vefa Bicakci
2010-09-01  0:48                     ` [Bisected Regression in 2.6.35] A full tmpfs filesystem causeshibernation to hang KOSAKI Motohiro
2010-09-01 22:02                       ` Rafael J. Wysocki
2010-09-02  0:31                         ` KOSAKI Motohiro
2010-09-02  0:31                         ` KOSAKI Motohiro
2010-09-02 19:57                           ` Rafael J. Wysocki
2010-09-02 20:24                             ` Rafael J. Wysocki
2010-09-02 20:24                               ` Rafael J. Wysocki
2010-09-03  0:13                               ` KOSAKI Motohiro
2010-09-03  0:13                               ` KOSAKI Motohiro
2010-09-03  1:07                                 ` Rafael J. Wysocki
2010-09-03  1:07                                   ` Rafael J. Wysocki
2010-09-03  1:53                                   ` KOSAKI Motohiro
2010-09-04  1:44                                     ` Rafael J. Wysocki
2010-09-04  1:44                                     ` Rafael J. Wysocki
2010-09-06  2:08                                       ` KOSAKI Motohiro
2010-09-06 11:27                                         ` Important news regarding the two different patches M. Vefa Bicakci
2010-09-06 18:43                                           ` Rafael J. Wysocki
2010-09-07  1:34                                             ` M. Vefa Bicakci
2010-09-07  1:34                                             ` M. Vefa Bicakci
2010-09-07  1:58                                               ` KOSAKI Motohiro
2010-09-07 21:44                                                 ` Rafael J. Wysocki
2010-09-08 12:56                                                   ` M. Vefa Bicakci
2010-09-08 12:56                                                   ` M. Vefa Bicakci
2010-09-08 21:34                                                     ` [PATCH] PM / Hibernate: Avoid hitting OOM during preallocation of memory (was: Re: Important news ...) Rafael J. Wysocki
2010-09-11 18:12                                                       ` PATCH: PM / Hibernate: Avoid hitting OOM during preallocationof memory M. Vefa Bicakci
2010-09-11 18:12                                                       ` M. Vefa Bicakci
2010-09-11 19:06                                                         ` Rafael J. Wysocki
2010-09-11 19:06                                                         ` Rafael J. Wysocki
2010-09-11 22:27                                                           ` [PATCH] PM / Hibernate: Make default image size depend on total RAM size (was: Re: PATCH: PM / Hibernate: Avoid hitting OOM ...) Rafael J. Wysocki
2010-09-13 15:40                                                             ` [PATCH] PM / Hibernate: Make default image size depend on totalRAM size M. Vefa Bicakci
2010-09-13 15:40                                                             ` M. Vefa Bicakci
2010-09-13 17:52                                                               ` Rafael J. Wysocki
2010-09-13 17:52                                                               ` Rafael J. Wysocki
2010-09-11 22:27                                                           ` [PATCH] PM / Hibernate: Make default image size depend on total RAM size (was: Re: PATCH: PM / Hibernate: Avoid hitting OOM ...) Rafael J. Wysocki
2010-09-08 21:34                                                     ` [PATCH] PM / Hibernate: Avoid hitting OOM during preallocation of memory (was: Re: Important news ...) Rafael J. Wysocki
2010-09-07 21:44                                                 ` Important news regarding the two different patches Rafael J. Wysocki
2010-09-07  1:58                                               ` KOSAKI Motohiro
2010-09-06 18:43                                           ` Rafael J. Wysocki
2010-09-06 11:27                                         ` M. Vefa Bicakci
2010-09-06 18:46                                         ` [Bisected Regression in 2.6.35] A full tmpfs filesystem causeshibernation to hang Rafael J. Wysocki
2010-09-06 18:46                                         ` Rafael J. Wysocki
2010-09-06 19:54                                           ` Rafael J. Wysocki
2010-09-06 19:54                                           ` Rafael J. Wysocki
2010-09-06  2:08                                       ` KOSAKI Motohiro
2010-09-03  1:53                                   ` KOSAKI Motohiro
2010-09-02 19:57                           ` Rafael J. Wysocki
2010-09-01 22:02                       ` Rafael J. Wysocki
2010-09-01  0:48                     ` KOSAKI Motohiro

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=4C7214DD.30500@superonline.com \
    --to=bicave@superonline.com \
    --cc=kosaki.motohiro@jp.fujitsu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.