lkml.org 
[lkml]   [2004]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.6.6-rc3-mm2 (4KSTACK)
Dave Jones wrote:
> On Fri, May 07, 2004 at 08:51:05AM +0200, Arjan van de Ven wrote:
> >
> > On Fri, May 07, 2004 at 01:37:54AM +0100, Paul Jakma wrote:
> > > On Thu, 6 May 2004, Arjan van de Ven wrote:
> > >
> > > > Ok I don't want to start a flamewar but... Do we want to hold linux
> > > > back until all binary only module vendors have caught up ??
> > >
> > > What about normal linux modules though? Eg, NFS (most likely):
> > >
> > > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=121804
> >
> > NFSv4 has a > 1Kb stack user; Dave Jones has a fix pending for that...
>
> Hmm, this one maybe?
>
> Dave
>

>
> - if (mlen > sizeof(buf))
> + obj.data = kmalloc(1024, GFP_KERNEL);
> + if (!obj.data)
> + return -ENOMEM;
> +
> + if (mlen > 1024) {

That's what I hate about all of this, just think how much stack that
kmalloc can take in low memory situations.... it might end up in
writepage on another nfs file.... Moving stuff off the stack and
into kmalloc just reduces the possibility of stack overflow, it
does not fix the problem. Having memory reclaim take place inside
the thread which is waiting for memory makes that a pretty hard
problem to fix.

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

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.108 / U:1.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site