mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Andries Brouwer <aebr@win.tue.nl>,
	Daniel Phillips <phillips@bonn-fries.net>,
	<Andries.Brouwer@cwi.nl>, Alexander Viro <viro@math.psu.edu>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH+discussion] symlink recursion
Date: Wed, 19 Jun 2002 12:14:01 -0700	[thread overview]
Message-ID: <15632.55289.204683.26908@napali.hpl.hp.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0206191136200.2889-100000@home.transmeta.com>

>>>>> On Wed, 19 Jun 2002 11:55:23 -0700 (PDT), Linus Torvalds <torvalds@transmeta.com> said:

  Linus> Yes. But did you look at the stack frames of those things?
  Linus> It's something like 16 bytes for ext2_follow_link (it just
  Linus> calls directly back to the VFS layer), 20 bytes for
  Linus> vfs_follow_link(), and 56 for link_path_walk.

  Linux> ...

  Linus> But there are other numbers, like performance (sometimes
  Linus> linearizing recursion loses, sometimes it wins), or somebody
  Linus> doing the math on ia-64 and showing that the 100 bytes/level
  Linus> on x86 is actually more like 2kB on ia-64 and totally
  Linus> unacceptable.

Just to avoid starting false rumours: on ia-64, I see the following
(2.4.18, with gcc3.1):

	- ext2_follow_link():	 16 bytes/frame
	- vfs_follow_link():	 56 bytes/frame
	- link_path_walk():	128 bytes/frame
	---------------------	---------------
	total:			200 bytes/frame

Just about in line with what you'd expect given that registers are 64 bits.

	--david

  reply	other threads:[~2002-06-19 19:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-18 22:19 Andries.Brouwer
2002-06-18 23:57 ` Linus Torvalds
2002-06-19  7:12   ` William Lee Irwin III
2002-06-19 11:48   ` Rogier Wolff
2002-06-19 14:44   ` Daniel Phillips
2002-06-19 16:05     ` Linus Torvalds
2002-06-19 18:18       ` Andries Brouwer
2002-06-19 18:55         ` Linus Torvalds
2002-06-19 19:14           ` David Mosberger [this message]
2002-06-19 22:06             ` David S. Miller
2002-06-19  7:02 Andries.Brouwer
2002-06-19 20:01 Andries.Brouwer

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=15632.55289.204683.26908@napali.hpl.hp.com \
    --to=davidm@napali.hpl.hp.com \
    --cc=Andries.Brouwer@cwi.nl \
    --cc=aebr@win.tue.nl \
    --cc=davidm@hpl.hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=phillips@bonn-fries.net \
    --cc=torvalds@transmeta.com \
    --cc=viro@math.psu.edu \
    /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

all inboxes | Powered by JetHome®