From: "David S. Miller" <davem@redhat.com>
To: yoshfuji@linux-ipv6.org
Cc: kazunori@miyazawa.org, herbert@gondor.apana.org.au,
netdev@oss.sgi.com, usagi-core@linux-ipv6.org,
yoshfuji@linux-ipv6.org
Subject: Re: [PATCH][IPv6] separation xfrm_lookup from ip6_dst_lookup
Date: Mon, 9 Aug 2004 16:35:20 -0700 [thread overview]
Message-ID: <20040809163520.2873a3c8.davem@redhat.com> (raw)
In-Reply-To: <20040803.020015.44364045.yoshfuji@linux-ipv6.org>
On Tue, 03 Aug 2004 02:00:15 -0700 (PDT)
YOSHIFUJI Hideaki / ^[$B5HF#1QL@^[(B <yoshfuji@linux-ipv6.org> wrote:
> In article <20040801195135.16734846.davem@redhat.com> (at Sun, 1 Aug 2004 19:51:35 -0700), "David S. Miller" <davem@redhat.com> says:
>
> > On Fri, 30 Jul 2004 17:12:05 +0900
> > Kazunori Miyazawa <kazunori@miyazawa.org> wrote:
> >
> > > I consider copying flowi(fl_rt) uses too much stack at the moment.
> > > I'll re-send the fixed patch again.
> >
> > I agree, and let's defer this patch until we
> > resolve that.
>
> Is the overhead for allocating memory okay?
> Or, do we allcoate some per-cpu memory while ipv6.o initalization phase?
> (check: lock? preemption?)
> Or, will we allocate fl (and fl_rt) per sock{} (ipv6_pinfo{})?
> (ditto.)
>
> We have similar stack usage in other codes, and
> I would fix them at the same time.
I think memory allocation will make it worse.
Instead, I would try to arrange order of events such that
single stack copy can be modified. Something like:
fl.foo = a;
fl.bar = b;
x = flow_lookup(&fl);
fl.foo = a_2;
y = other_lookup(&fl);
And I believe this is possible in most if not all of
these cases.
next prev parent reply other threads:[~2004-08-09 23:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-30 8:12 [PATCH][IPv6] separation xfrm_lookup from ip6_dst_lookup Kazunori Miyazawa
2004-08-02 2:51 ` David S. Miller
2004-08-03 9:00 ` YOSHIFUJI Hideaki / 吉藤英明
2004-08-03 9:21 ` Kazunori Miyazawa
2004-08-09 23:35 ` David S. Miller [this message]
2004-08-10 1:38 ` YOSHIFUJI Hideaki / 吉藤英明
2004-08-27 16:49 ` [PATCH, TAKE 2] [IPV6] XFRM: extract xfrm_lookup() from ip6_dst_lookup() (is Re: [PATCH][IPv6] separation xfrm_lookup from ip6_dst_lookup) YOSHIFUJI Hideaki / 吉藤英明
2004-08-28 0:02 ` David S. Miller
2004-10-25 21:27 ` Brian Haley
2004-10-26 3:55 ` YOSHIFUJI Hideaki / 吉藤英明
2004-10-26 14:29 ` Brian Haley
2004-10-26 15:43 ` YOSHIFUJI Hideaki / 吉藤英明
2004-10-26 18:09 ` Brian Haley
2004-10-27 0:10 ` YOSHIFUJI Hideaki / 吉藤英明
2004-10-27 15:21 ` Brian Haley
2004-08-02 7:41 ` [PATCH][IPv6] separation xfrm_lookup from ip6_dst_lookup Herbert Xu
2004-08-03 2:09 ` David S. Miller
2004-08-03 8:19 ` YOSHIFUJI Hideaki / 吉藤英明
2004-08-03 10:55 ` Herbert Xu
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=20040809163520.2873a3c8.davem@redhat.com \
--to=davem@redhat.com \
--cc=herbert@gondor.apana.org.au \
--cc=kazunori@miyazawa.org \
--cc=netdev@oss.sgi.com \
--cc=usagi-core@linux-ipv6.org \
--cc=yoshfuji@linux-ipv6.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).