All of lore.kernel.org
 help / color / mirror / Atom feed
From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
To: "M. Vefa Bicakci" <bicave@superonline.com>
Cc: kosaki.motohiro@jp.fujitsu.com,
	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: Wed, 25 Aug 2010 09:48:05 +0900 (JST)	[thread overview]
Message-ID: <20100824094152.F3B0.A69D9226@jp.fujitsu.com> (raw)
In-Reply-To: <4C7214DD.30500@superonline.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.

Great!

> > 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

Hm, free memory is enough lots.


> 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

You are using 32 bit system.

> LowTotal:         877852 kB
> LowFree:          821096 kB

low memory is empty!


> SwapTotal:       1999540 kB
> SwapFree:        1999540 kB
> Dirty:                28 kB
> Writeback:             0 kB
> AnonPages:         83676 kB
> Mapped:            44220 kB
> Shmem:           1576520 kB

tmpfs files are using about 1.5GB memory.
(because tmpfs is limited totalmem/2 by default)


> 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/zoneinfo
> 
> Node 0, zone      DMA
>  recent_anon_rotated: 0
>  recent_anon_scanned: 0
>  recent_file_rotated: 0
>  recent_file_scanned: 0
>  anon_ratio:          30
> Node 0, zone   Normal
>  recent_anon_rotated: 0
>  recent_anon_scanned: 0
>  recent_file_rotated: 272
>  recent_file_scanned: 1385
>  anon_ratio:          7
> Node 0, zone  HighMem
>  recent_anon_rotated: 1259857
>  recent_anon_scanned: 2522124
>  recent_file_rotated: 1269
>  recent_file_scanned: 5591
>  anon_ratio:          16

anon/file reclaim scanning ratio is NOT strange.


> 
> > % 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

Seems typical one drive system. no strange.


> > % 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

Almostly same with my test program ;)


> > # 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
> 

My code doesn't makes hang!


Hmm... Hmm...
To be honest, I have no idea why your hang was happen.

1) zone normal is not used. your system don't need additional reclaim
   at all.
2) reclaim logic seems to doesn't makes hang.


Can you please try following additional test?

# echo 8 > /proc/sysrq-trigger
# echo disk > /sys/power/state





  reply	other threads:[~2010-08-25  0:48 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     ` [Bisected Regression in 2.6.35] A full tmpfs filesystem causeshibernation to hang M. Vefa Bicakci
2010-08-25  0:48       ` KOSAKI Motohiro [this message]
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-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 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-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-07 21:44                                                 ` Rafael J. Wysocki
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-08 12:56                                                   ` Important news regarding the two different patches M. Vefa Bicakci
2010-09-07  1:58                                               ` KOSAKI Motohiro
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 19:54                                           ` Rafael J. Wysocki
2010-09-06 19:54                                           ` Rafael J. Wysocki
2010-09-06 18:46                                         ` Rafael J. Wysocki
2010-09-06  2:08                                       ` KOSAKI Motohiro
2010-09-03  1:53                                   ` KOSAKI Motohiro
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=20100824094152.F3B0.A69D9226@jp.fujitsu.com \
    --to=kosaki.motohiro@jp.fujitsu.com \
    --cc=bicave@superonline.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.