login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
8
Re: [PATCH] reduce large do_mount stack usage with noinlines
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Eric Sandeen <sandeen@...>
To: Andi Kleen <andi@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, <rth@...>
Subject:
Re: [PATCH] reduce large do_mount stack usage with noinlines
Date: Friday, February 8, 2008 - 12:54 pm
Andi Kleen wrote:
quoted text
> Andrew Morton <akpm@linux-foundation.org> writes: >>> */ >>> -static int do_change_type(struct nameidata *nd, int flag) >>> +static noinline int do_change_type(struct nameidata *nd, int flag) >> What we could do here is defined a new noinline_because_of_stack_suckiness >> and use that. Reasons: >> >> - self-documenting, so we don't need to comment each site >> >> - can be made a no-op for suitable __GNUC__ values if gcc ever fixes this > > In theory it should be already fixed; iirc Richard H. (cc'ed) added > code for this somewhere in 4.x. Don't quite remember which x, likely > either 1 or 2. > > e.g. if I do a quick test here on gcc 4.2 then it definitely > reuses stack slots between inlines. As you can see only ~100 bytes > are allocated, not ~200.
On gcc 4.1.2 and 4.3 (fedora flavors) I don't see it re-used in do_mount, though... *shrug* -Eric --
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] reduce large do_mount stack usage with noinlines
, Eric Sandeen
, (Wed Feb 6, 6:13 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Andrew Morton
, (Wed Feb 6, 6:34 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Eric Sandeen
, (Wed Feb 6, 7:11 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Andrew Morton
, (Wed Feb 6, 7:22 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Andi Kleen
, (Fri Feb 8, 12:50 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Eric Sandeen
, (Fri Feb 8, 12:54 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Al Viro
, (Fri Feb 8, 1:23 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Eric Sandeen
, (Thu Feb 7, 7:08 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Andrew Morton
, (Thu Feb 7, 7:26 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Arjan van de Ven
, (Thu Feb 7, 7:23 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Eric Sandeen
, (Wed Feb 6, 7:34 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Andrew Morton
, (Wed Feb 6, 7:46 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Eric Sandeen
, (Wed Feb 6, 6:55 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Arjan van de Ven
, (Wed Feb 6, 6:54 pm)
Re: [PATCH] reduce large do_mount stack usage with noinlines
, Eric Sandeen
, (Wed Feb 6, 7:01 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Alan Cox
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Bart Van Assche
Integration of SCST in the mainstream Linux kernel
Jan Engelhardt
intel iommu (Re: -mm merge plans for 2.6.23)
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
Re: [GIT]: Networking
Evgeniy Polyakov
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
3 users
and
680 guests
online.
Online users
Peterkim1
emeka_micro
Kedar Sovani
Syndicate