From: Badari Pulavarty <pbadari@us.ibm.com>
To: Jeff Dike <jdike@addtoit.com>
Cc: Hugh Dickins <hugh@veritas.com>,
akpm@osdl.org, andrea@suse.de, dvhltc@us.ibm.com,
linux-mm <linux-mm@kvack.org>,
Blaisorblade <blaisorblade@yahoo.it>
Subject: Re: [RFC] madvise(MADV_TRUNCATE)
Date: Mon, 31 Oct 2005 08:34:39 -0800 [thread overview]
Message-ID: <1130776479.24503.3.camel@localhost.localdomain> (raw)
In-Reply-To: <20051029025119.GA14998@ccure.user-mode-linux.org>
On Fri, 2005-10-28 at 22:51 -0400, Jeff Dike wrote:
> On Fri, Oct 28, 2005 at 05:03:21PM -0700, Badari Pulavarty wrote:
> > Here is the update on the patch.
> >
> > I found few bugs in my shmem_truncate_range() (surprise!!)
> > - BUG_ON(subdir->nr_swapped > offset);
> > - freeing up the "subdir" while it has some more entries
> > swapped.
> >
> > I wrote some tests to force swapping and working out the bugs.
> > I haven't tried your test yet, since its kind of intimidating :(
>
> Well, then send me the patch since I don't find this the least bit
> intimidating :-)
Jeff,
I tried your testcase again (tried to remove 8K). I see nothing
wrong from madvise() side - but after removing all commands
hang in UML. Few uml processes keep spinning. Does these mean
anything to you. I can't seem to find out what wrong with my
code.
(BTW, I wrote a testcase to release few pages and then go back
and touch those pages again - I don't see any problem).
Please let me know.
Thanks,
Badari
top - 03:36:09 up 8 min, 3 users, load average: 1.26, 0.70, 0.33
Tasks: 70 total, 3 running, 57 sleeping, 10 stopped, 0 zombie
Cpu(s): 8.8% us, 41.2% sy, 0.0% ni, 49.9% id, 0.0% wa, 0.0% hi,
0.0% si
Mem: 4042308k total, 283296k used, 3759012k free, 9728k buffers
Swap: 1052648k total, 0k used, 1052648k free, 149052k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11826 root 16 0 193m 51m 51m R 62.6 1.3 1:01.44 linux
11834 root 15 0 504 456 440 R 37.3 0.0 0:35.70 linux
1 root 16 0 720 260 216 S 0.0 0.0 0:00.57 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
sysrq-t output:
linux S 0000000000000001 0 11826 10995 11832
(NOTLB)
0000000000000001 0000000000000000 0000000000000001 0000000000000006
ffffffff8062e480 ffffffffffffffef ffffffff80404544
0000000000000010
0000000000000202 ffff810111e8dd48
Call Trace:<ffffffff80404544>{_write_lock_irqsave+132}
<ffffffff80404599>{_write_lock_irq+9}
<ffffffff8013a522>{do_wait+610}
<ffffffff80132430>{default_wake_function+0}
<ffffffff80132430>{default_wake_function+0}
<ffffffff8013241b>{try_to_wake_up+1083}
<ffffffff8013b05a>{sys_wait4+42}
<ffffffff80159771>{compat_sys_wait4+49}
<ffffffff80132460>{wake_up_process+16}
<ffffffff80111a05>{sys_ptrace+2261}
<ffffffff8012ea5f>{sys32_ptrace+111}
<ffffffff80124efb>{sys32_waitpid+11}
<ffffffff801235eb>{sysenter_do_call+27}
linux t ffff810120ee0100 0 11834 11826 12082
(NOTLB)
ffff810109fdbdb8 0000000000000082 0000000000000001 0000000000000046
ffff810109fdbd08 ffffffff801331e2 0000000000000000
ffff81011b01a600
ffff81011b01ae08 ffff8101234a0ec0
Call Trace:<ffffffff801331e2>{__wake_up_sync+98}
<ffffffff801422f2>{recalc_sigpending+18}
<ffffffff801433a5>{__dequeue_signal+501} <ffffffff80144939>{ptrace_stop
+313}
<ffffffff80145997>{get_signal_to_deliver+407}
<ffffffff8010d21d>{do_signal+125}
<ffffffff80406480>{do_page_fault+2176}
<ffffffff8012e2eb>{restore_i387_ia32+75}
<ffffffff80129ba1>{ia32_restore_sigcontext+129}
<ffffffff80129cd1>{ia32_restore_sigcontext+433}
<ffffffff8010d890>{do_notify_resume+48}
<ffffffff8010e036>{int_signal+18}
--
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>
next prev parent reply other threads:[~2005-10-31 16:35 UTC|newest]
Thread overview: 114+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-26 22:49 [RFC] madvise(MADV_TRUNCATE) Badari Pulavarty
2005-10-27 8:38 ` Andi Kleen
2005-10-27 13:17 ` Andrea Arcangeli
2005-10-27 15:00 ` Badari Pulavarty
2005-10-27 15:11 ` Andrea Arcangeli
2005-10-27 18:20 ` Andrew Morton
2005-10-27 18:35 ` Badari Pulavarty
2005-10-27 18:50 ` Andrew Morton
2005-10-27 19:40 ` Gerrit Huizenga
2005-10-27 19:56 ` Andi Kleen
2005-10-27 23:21 ` Darren Hart
2005-10-27 20:05 ` Theodore Ts'o
2005-10-27 20:16 ` Andrea Arcangeli
2005-10-28 1:42 ` Badari Pulavarty
2005-10-28 16:33 ` Theodore Ts'o
2005-10-27 20:22 ` Jeff Dike
2005-10-27 20:04 ` Andrea Arcangeli
2005-10-27 20:50 ` Andrew Morton
2005-10-27 21:37 ` Andrea Arcangeli
2005-10-27 22:23 ` Andrew Morton
2005-10-27 23:05 ` Badari Pulavarty
2005-10-27 23:16 ` Andrew Morton
2005-10-27 23:33 ` Peter Chubb
2005-10-28 0:22 ` Andrea Arcangeli
2005-10-28 0:32 ` Andrew Morton
2005-10-28 1:10 ` Andrea Arcangeli
2005-10-28 1:27 ` Badari Pulavarty
2005-10-28 2:00 ` Andrew Morton
2005-10-27 22:32 ` Badari Pulavarty
2005-10-27 23:28 ` Peter Chubb
2005-10-27 23:49 ` Andrew Morton
2005-10-27 23:56 ` Nathan Scott
2005-10-28 0:15 ` Andrea Arcangeli
2005-10-27 23:59 ` Peter Chubb
2005-10-28 3:46 ` Jeff Dike
2005-10-28 11:03 ` Blaisorblade
2005-10-28 13:29 ` Andrea Arcangeli
2005-10-28 16:56 ` Blaisorblade
2005-10-28 16:16 ` Badari Pulavarty
2005-10-28 18:40 ` Blaisorblade
2005-10-28 18:56 ` Badari Pulavarty
2005-10-29 0:35 ` Badari Pulavarty
2005-10-28 16:19 ` Badari Pulavarty
2005-10-28 17:10 ` Blaisorblade
2005-10-28 18:28 ` Jeff Dike
2005-10-28 18:44 ` Blaisorblade
2005-10-28 18:42 ` Jeff Dike
2005-10-28 18:54 ` Badari Pulavarty
2005-10-29 0:03 ` Badari Pulavarty
2005-10-29 2:51 ` Jeff Dike
2005-10-31 16:34 ` Badari Pulavarty [this message]
2005-10-31 19:15 ` Badari Pulavarty
2005-10-31 19:49 ` [RFC][PATCH] madvise(MADV_TRUNCATE) Badari Pulavarty
2005-11-01 0:05 ` Jeff Dike
2005-11-02 1:15 ` [PATCH] 2.6.14 patch for supporting madvise(MADV_FREE) Badari Pulavarty
2005-11-02 1:43 ` Andrea Arcangeli
2005-11-02 1:43 ` Andrea Arcangeli
2005-11-02 15:49 ` Badari Pulavarty
2005-11-02 15:49 ` Badari Pulavarty
2005-11-02 16:12 ` [PATCH] 2.6.14 patch for supporting madvise(MADV_REMOVE) Badari Pulavarty
2005-11-02 19:54 ` New bug in patch and existing Linux code - race with install_page() (was: Re: [PATCH] 2.6.14 patch for supporting madvise(MADV_REMOVE)) Blaisorblade
2005-11-02 19:54 ` Blaisorblade
2005-11-02 20:12 ` Hugh Dickins
2005-11-02 20:12 ` Hugh Dickins
2005-11-02 20:45 ` Hugh Dickins
2005-11-02 20:45 ` Hugh Dickins
2005-11-02 21:36 ` Badari Pulavarty
2005-11-02 21:36 ` Badari Pulavarty
2005-11-02 21:55 ` Hugh Dickins
2005-11-02 21:55 ` Hugh Dickins
2005-11-02 22:02 ` Badari Pulavarty
2005-11-02 22:02 ` Badari Pulavarty
2005-11-12 0:25 ` [PATCH] 2.6.14 patch for supporting madvise(MADV_REMOVE) Andrew Morton
2005-11-12 0:25 ` Andrew Morton
2005-11-12 0:34 ` Badari Pulavarty
2005-11-12 0:34 ` Badari Pulavarty
2005-11-12 1:43 ` Andrew Morton
2005-11-12 1:43 ` Andrew Morton
2005-11-12 4:41 ` Badari Pulavarty
2005-11-12 4:41 ` Badari Pulavarty
2006-01-16 13:06 ` differences between MADV_FREE and MADV_DONTNEED Andrea Arcangeli
2006-01-16 13:06 ` Andrea Arcangeli
2006-01-16 16:02 ` Suleiman Souhlal
2006-01-16 16:02 ` Suleiman Souhlal
2006-01-16 16:28 ` Andrea Arcangeli
2006-01-16 16:28 ` Andrea Arcangeli
2006-01-16 17:03 ` Suleiman Souhlal
2006-01-16 17:03 ` Suleiman Souhlal
2006-01-16 17:24 ` Andrea Arcangeli
2006-01-16 17:24 ` Andrea Arcangeli
2006-01-16 21:43 ` Eric W. Biederman
2006-01-16 21:43 ` Eric W. Biederman
2006-01-17 0:24 ` Suleiman Souhlal
2006-01-17 0:24 ` Suleiman Souhlal
2006-01-17 1:04 ` Nicholas Miell
2006-01-17 1:04 ` Nicholas Miell
2006-01-17 12:43 ` Christoph Hellwig
2006-01-17 12:43 ` Christoph Hellwig
2006-01-17 18:23 ` Eric W. Biederman
2006-01-17 18:23 ` Eric W. Biederman
2006-01-17 22:55 ` Nicholas Miell
2006-01-17 22:55 ` Nicholas Miell
2007-03-01 18:11 ` Samuel Thibault
2007-03-01 18:11 ` Samuel Thibault
2006-01-17 19:06 ` Badari Pulavarty
2006-01-17 19:06 ` Badari Pulavarty
2006-01-17 1:06 ` Blaisorblade
2006-01-17 1:06 ` Blaisorblade
2006-01-17 1:33 ` Andrea Arcangeli
2006-01-17 1:33 ` Andrea Arcangeli
2005-11-12 0:34 ` [PATCH] 2.6.14 patch for supporting madvise(MADV_REMOVE) Andrew Morton
2005-11-12 0:34 ` Andrew Morton
2005-10-28 17:55 ` [RFC] madvise(MADV_TRUNCATE) Blaisorblade
2005-10-28 21:23 ` Theodore Ts'o
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=1130776479.24503.3.camel@localhost.localdomain \
--to=pbadari@us.ibm.com \
--cc=akpm@osdl.org \
--cc=andrea@suse.de \
--cc=blaisorblade@yahoo.it \
--cc=dvhltc@us.ibm.com \
--cc=hugh@veritas.com \
--cc=jdike@addtoit.com \
--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 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.