* Re: 2.4 SRMMU bug revisited
2002-05-27 18:46 ` Colin Gibbs
@ 2002-05-27 19:34 ` Colin Gibbs
2002-05-28 1:12 ` Tomas Szepe
2002-05-27 21:30 ` Tomas Szepe
` (2 subsequent siblings)
3 siblings, 1 reply; 18+ messages in thread
From: Colin Gibbs @ 2002-05-27 19:34 UTC (permalink / raw)
To: Colin Gibbs
Cc: Tomas Szepe, linux-kernel, tcallawa, sparclinux, aurora-sparc-devel
On Mon, 2002-05-27 at 13:46, Colin Gibbs wrote:
> What kinds of heavy loads? If you were triggering the out of nocache
> memory BUG, then this patch may help. I fixes a bug where fork fails and
> calls destroy_context on the parent's mm or more precisely a memcpy'd
> duplicate of it. In that case when fork returns to the parent, it
> continuously faults.
>
> But if your load does not fork heavily, then this is probably not the
> problem.
It seems this is in the bitkeeper tree, so ignore that if you used the
bitkeeper tree. However I'd still like to know what sort of loads are
causing you problems.
Colin
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: 2.4 SRMMU bug revisited
2002-05-27 19:34 ` Colin Gibbs
@ 2002-05-28 1:12 ` Tomas Szepe
0 siblings, 0 replies; 18+ messages in thread
From: Tomas Szepe @ 2002-05-28 1:12 UTC (permalink / raw)
To: Colin Gibbs; +Cc: linux-kernel, tcallawa, sparclinux, aurora-sparc-devel
> > What kinds of heavy loads? If you were triggering the out of nocache
> > memory BUG, then this patch may help. I fixes a bug where fork fails and
> > calls destroy_context on the parent's mm or more precisely a memcpy'd
> > duplicate of it. In that case when fork returns to the parent, it
> > continuously faults.
> >
> > But if your load does not fork heavily, then this is probably not the
> > problem.
>
> It seems this is in the bitkeeper tree, so ignore that if you used the
> bitkeeper tree. However I'd still like to know what sort of loads are
> causing you problems.
Jup, I used the bk tree.
n=100
i=0
while [ ! "$i" = "$n" ]; do
echo test|mail -s test user@targetmachine
i=$(expr $i + 1)
done
targetmachine (running sendmail) goes down in under 20 seconds.
T.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.4 SRMMU bug revisited
2002-05-27 18:46 ` Colin Gibbs
2002-05-27 19:34 ` Colin Gibbs
@ 2002-05-27 21:30 ` Tomas Szepe
2002-05-28 3:41 ` David S. Miller
2002-05-28 0:40 ` David S. Miller
2002-05-29 21:42 ` Tomas Szepe
3 siblings, 1 reply; 18+ messages in thread
From: Tomas Szepe @ 2002-05-27 21:30 UTC (permalink / raw)
To: Colin Gibbs; +Cc: linux-kernel, tcallawa, sparclinux, aurora-sparc-devel
> --- 2.4.19-pre4/kernel/fork.c Thu Mar 28 19:49:36 2002
> +++ tortoise-19-pre4/kernel/fork.c Sun Apr 21 22:01:18 2002
> @@ -336,6 +336,9 @@
> if (!mm_init(mm))
> goto fail_nomem;
>
> + if (init_new_context(tsk,mm))
> + goto free_pt;
> +
> down_write(&oldmm->mmap_sem);
> retval = dup_mmap(mm);
> up_write(&oldmm->mmap_sem);
> @@ -347,9 +350,6 @@
> * child gets a private LDT (if there was an LDT in the parent)
> */
> copy_segments(tsk, mm);
> -
> - if (init_new_context(tsk,mm))
> - goto free_pt;
>
> good_mm:
> tsk->mm = mm;
Hmmm, upon closer inspection I found out this patch had *not* been in
what I extracted from the linux-2.4 bitkeeper tree, so my report was
probably not of much value. I'll retest tomorrow with the above applied.
Sorry for the confusion <-- I still can't see the patch in the listings
at http://linux.bkbits.net:8080/linux-2.4/
The patch I used is
http://www.dragon.cz/~kala/patch-2.4.19-pre8-sparcfixes-upto020523-1.gz
(I assembled it by hand using the bk web interface, looking up all sparc
related changes since -pre8.)
T.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.4 SRMMU bug revisited
2002-05-27 21:30 ` Tomas Szepe
@ 2002-05-28 3:41 ` David S. Miller
2002-05-28 5:40 ` Tomas Szepe
2002-05-28 11:58 ` Alan Cox
0 siblings, 2 replies; 18+ messages in thread
From: David S. Miller @ 2002-05-28 3:41 UTC (permalink / raw)
To: szepe; +Cc: colin, linux-kernel, tcallawa, sparclinux, aurora-sparc-devel
From: Tomas Szepe <szepe@pinerecords.com>
Date: Mon, 27 May 2002 23:30:16 +0200
http://linux.bkbits.net:8080/linux-2.4/
The BK repository to use has the URL:
bk://linux.bkbits.net/linux-2.4
The web stuff is updated still by hand and is as a result chronically
out of date.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.4 SRMMU bug revisited
2002-05-28 3:41 ` David S. Miller
@ 2002-05-28 5:40 ` Tomas Szepe
2002-05-28 8:39 ` David Woodhouse
2002-05-28 11:58 ` Alan Cox
1 sibling, 1 reply; 18+ messages in thread
From: Tomas Szepe @ 2002-05-28 5:40 UTC (permalink / raw)
To: linux-kernel
> From: Tomas Szepe <szepe@pinerecords.com>
> Date: Mon, 27 May 2002 23:30:16 +0200
>
> http://linux.bkbits.net:8080/linux-2.4/
>
> The BK repository to use has the URL:
>
> bk://linux.bkbits.net/linux-2.4
>
> The web stuff is updated still by hand and is as a result chronically
> out of date.
So much for not having to install BK. ;D
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.4 SRMMU bug revisited
2002-05-28 3:41 ` David S. Miller
2002-05-28 5:40 ` Tomas Szepe
@ 2002-05-28 11:58 ` Alan Cox
2002-05-28 11:05 ` David S. Miller
1 sibling, 1 reply; 18+ messages in thread
From: Alan Cox @ 2002-05-28 11:58 UTC (permalink / raw)
To: David S. Miller
Cc: szepe, colin, linux-kernel, tcallawa, sparclinux, aurora-sparc-devel
On Tue, 2002-05-28 at 04:41, David S. Miller wrote:
> From: Tomas Szepe <szepe@pinerecords.com>
> Date: Mon, 27 May 2002 23:30:16 +0200
>
> http://linux.bkbits.net:8080/linux-2.4/
>
> The BK repository to use has the URL:
>
> bk://linux.bkbits.net/linux-2.4
>
> The web stuff is updated still by hand and is as a result chronically
> out of date.
Which is a concern since both Linus and Larry made it clear bitkeeper
would *NEVER* be required of contributors. Is there nothing generating
nightly tarballs off cron right now ?
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.4 SRMMU bug revisited
2002-05-28 11:58 ` Alan Cox
@ 2002-05-28 11:05 ` David S. Miller
2002-05-28 12:10 ` Ben Collins
0 siblings, 1 reply; 18+ messages in thread
From: David S. Miller @ 2002-05-28 11:05 UTC (permalink / raw)
To: alan; +Cc: szepe, colin, linux-kernel, tcallawa, sparclinux, aurora-sparc-devel
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: 28 May 2002 12:58:38 +0100
Which is a concern since both Linus and Larry made it clear bitkeeper
would *NEVER* be required of contributors. Is there nothing generating
nightly tarballs off cron right now ?
As stated in a followup posting, that kind of thing is available.
I don't see why people fly off the handle on this. It only matters if
you need the tree as of 5 minutes ago bleeding edge type stuff. If
you can wait a few days, then just hang on for Marcelo's next
prepatch.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.4 SRMMU bug revisited
2002-05-28 11:05 ` David S. Miller
@ 2002-05-28 12:10 ` Ben Collins
2002-05-28 12:19 ` David S. Miller
0 siblings, 1 reply; 18+ messages in thread
From: Ben Collins @ 2002-05-28 12:10 UTC (permalink / raw)
To: David S. Miller
Cc: alan, szepe, colin, linux-kernel, tcallawa, sparclinux,
aurora-sparc-devel
On Tue, May 28, 2002 at 04:05:24AM -0700, David S. Miller wrote:
> From: Alan Cox <alan@lxorguk.ukuu.org.uk>
> Date: 28 May 2002 12:58:38 +0100
>
> Which is a concern since both Linus and Larry made it clear bitkeeper
> would *NEVER* be required of contributors. Is there nothing generating
> nightly tarballs off cron right now ?
>
> As stated in a followup posting, that kind of thing is available.
>
> I don't see why people fly off the handle on this. It only matters if
> you need the tree as of 5 minutes ago bleeding edge type stuff. If
> you can wait a few days, then just hang on for Marcelo's next
> prepatch.
Not trying to add fuel to the fire, but Marcelo's last prepatch was
almost 4 weeks ago (26 days). It makes life hard on even me, because
somehow a little tweak ends up changing the ieee1394 subsystem, and I
find myself resyncing over several pre-releases to get my patches in.
It sometimes seems that the bitkeeper repo is being used to pacify the
bleeding edge junkies (and rightfully so), but at the same time is
allowing the tree maintainers (not point fingers) to be more lax in
getting out frequent pre/full releases to the non-bitkeeper public (like
me). This inadvertently stalls productivity for the rest of us.
My problem getting things into the 2.5 tree seems more related to the
amount of work getting done in that tree as opposed to the lack of
releases, which is entirely acceptable. I'd prefer chasing frequent
releases to chasing invisible ones :)
--
Debian - http://www.debian.org/
Linux 1394 - http://linux1394.sourceforge.net/
Subversion - http://subversion.tigris.org/
Deqo - http://www.deqo.com/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.4 SRMMU bug revisited
2002-05-28 12:10 ` Ben Collins
@ 2002-05-28 12:19 ` David S. Miller
0 siblings, 0 replies; 18+ messages in thread
From: David S. Miller @ 2002-05-28 12:19 UTC (permalink / raw)
To: bcollins
Cc: alan, szepe, colin, linux-kernel, tcallawa, sparclinux,
aurora-sparc-devel
From: Ben Collins <bcollins@debian.org>
Date: Tue, 28 May 2002 08:10:44 -0400
Not trying to add fuel to the fire, but Marcelo's last prepatch was
almost 4 weeks ago (26 days).
For most of that time I wasn't even getting responses from him, only
recently (within the last week) did he start pulling in my changes.
If you want Marcelo to make prepatches more often, simply ask him to
do it :-)
A lot of the BK grievences amount to "Well, how would you approach
this situation if BK didn't exit?" --> "Oh, I'd ask the maintainer to
make prepatches more often."
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.4 SRMMU bug revisited
2002-05-27 18:46 ` Colin Gibbs
2002-05-27 19:34 ` Colin Gibbs
2002-05-27 21:30 ` Tomas Szepe
@ 2002-05-28 0:40 ` David S. Miller
2002-05-29 21:42 ` Tomas Szepe
3 siblings, 0 replies; 18+ messages in thread
From: David S. Miller @ 2002-05-28 0:40 UTC (permalink / raw)
To: colin; +Cc: szepe, linux-kernel, tcallawa, sparclinux, aurora-sparc-devel
I pushed this fix to Marcelo already and it is already in
his BK tree.
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: 2.4 SRMMU bug revisited
2002-05-27 18:46 ` Colin Gibbs
` (2 preceding siblings ...)
2002-05-28 0:40 ` David S. Miller
@ 2002-05-29 21:42 ` Tomas Szepe
3 siblings, 0 replies; 18+ messages in thread
From: Tomas Szepe @ 2002-05-29 21:42 UTC (permalink / raw)
To: Colin Gibbs; +Cc: linux-kernel, tcallawa, sparclinux, aurora-sparc-devel, davem
> --- 2.4.19-pre4/kernel/fork.c Thu Mar 28 19:49:36 2002
> +++ tortoise-19-pre4/kernel/fork.c Sun Apr 21 22:01:18 2002
> @@ -336,6 +336,9 @@
> if (!mm_init(mm))
> goto fail_nomem;
>
> + if (init_new_context(tsk,mm))
> + goto free_pt;
> +
> down_write(&oldmm->mmap_sem);
> retval = dup_mmap(mm);
> up_write(&oldmm->mmap_sem);
> @@ -347,9 +350,6 @@
> * child gets a private LDT (if there was an LDT in the parent)
> */
> copy_segments(tsk, mm);
> -
> - if (init_new_context(tsk,mm))
> - goto free_pt;
>
> good_mm:
> tsk->mm = mm;
A big, big thankyou to Colin.
This patch indeed makes difference. I stressed -pre9 as much as I could
(simultaneous reading from raid devices - ext3/reiserfs/ext2, NFS traffic,
sendmail+apache fork storms... you name it, I ran it, all at the same time)
and the kernel lives. Processes still get killed by VM much earlier than
they should (100+ MB RAM free), but that's not critical.
A nice conclusion to this thread, isn't it? :)
T.
^ permalink raw reply [flat|nested] 18+ messages in thread