All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] Do we care about 4k stacks?
@ 2005-11-21  6:19 Rob Landley
  2005-11-21 14:56 ` Jeff Dike
  2005-11-22 19:24 ` Blaisorblade
  0 siblings, 2 replies; 4+ messages in thread
From: Rob Landley @ 2005-11-21  6:19 UTC (permalink / raw)
  To: user-mode-linux-devel

Just curious if this is at all relevant to us, in light of the "yank 8k 
stacks" patch proposed...

$ make checkstack
objdump -d vmlinux $(find . -name '*.ko') | \
perl /home/landley/linux-2.6.15-rc1/scripts/checkstack.pl i386
0xa010ddcf buffered_vfprintf:                           33168
0xa010deca buffered_vfprintf:                           33168
0xa00e5d5b buffered_vfprintf:                           8416
0xa00e5e43 buffered_vfprintf:                           8416
0xa0121ffb __res_vinit:                                 8256
0xa012293a __res_vinit:                                 8256
0xa011199c phys_pages_info:                             8212
0xa01117bf __get_nprocs:                                8208
0xa010a426 _IO_vfwprintf:                               4376
0xa00ebe33 _IO_wfile_seekoff:                           4280
0xa00ec0b9 _IO_wfile_seekoff:                           4280
0xa00f8626 __unix_grantpt:                              4252
0xa00f848f grantpt:                                     4188
0xa01103c6 execle:                                      4140
0xa0005119 make_uml_dir:                                4124
0xa00051bd make_uml_dir:                                4124
0xa0023dc0 make_tempfile:                               4124
0xa0023e5a make_tempfile:                               4124
0xa00e01d7 openpty:                                     4124
0xa011cd40 _dl_get_origin:                              4112
0xa011cdc4 _dl_get_origin:                              4112

Rob


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [uml-devel] Do we care about 4k stacks?
  2005-11-21  6:19 [uml-devel] Do we care about 4k stacks? Rob Landley
@ 2005-11-21 14:56 ` Jeff Dike
  2005-11-22 19:24 ` Blaisorblade
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff Dike @ 2005-11-21 14:56 UTC (permalink / raw)
  To: Rob Landley; +Cc: user-mode-linux-devel

On Mon, Nov 21, 2005 at 12:19:36AM -0600, Rob Landley wrote:
> Just curious if this is at all relevant to us, in light of the "yank 8k 
> stacks" patch proposed...

That's just on i386.  Each arch defines its own stack size, and UML uses
16K.  Not that that's good, so we might be following i386 at some point, at
least to 8K.

> $ make checkstack
> objdump -d vmlinux $(find . -name '*.ko') | \
> perl /home/landley/linux-2.6.15-rc1/scripts/checkstack.pl i386
> 0xa010ddcf buffered_vfprintf:                           33168
> 0xa010deca buffered_vfprintf:                           33168
> 0xa00e5d5b buffered_vfprintf:                           8416
> 0xa00e5e43 buffered_vfprintf:                           8416

I don't think these are of concern, but feel free to double-check :-)

If you look at the code, you'll see some care in making sure that certain
things (like printf) run only on the initial process stack, which is expanded
as needed by the host, and not on a UML kernel, which isn't.

				Jeff


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [uml-devel] Do we care about 4k stacks?
  2005-11-21  6:19 [uml-devel] Do we care about 4k stacks? Rob Landley
  2005-11-21 14:56 ` Jeff Dike
@ 2005-11-22 19:24 ` Blaisorblade
  2005-11-23  4:44   ` Rob Landley
  1 sibling, 1 reply; 4+ messages in thread
From: Blaisorblade @ 2005-11-22 19:24 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Rob Landley

On Monday 21 November 2005 07:19, Rob Landley wrote:
> Just curious if this is at all relevant to us, in light of the "yank 8k
> stacks" patch proposed...
>
> $ make checkstack
> objdump -d vmlinux $(find . -name '*.ko') | \
> perl /home/landley/linux-2.6.15-rc1/scripts/checkstack.pl i386

That's _SO_ much? Ouch... I now understand a lot more why Al Viro removed 
printf from UML usage (I tried to use printf rather than printk to report 
that a console channel is disabled; I later solved the problem with the 
kernel sprintf + a direct write() on stdout).

> 0xa010ddcf buffered_vfprintf:                           33168
> 0xa010deca buffered_vfprintf:                           33168
> 0xa00e5d5b buffered_vfprintf:                           8416
> 0xa00e5e43 buffered_vfprintf:                           8416
> 0xa0121ffb __res_vinit:                                 8256
> 0xa012293a __res_vinit:                                 8256
> 0xa011199c phys_pages_info:                             8212
> 0xa01117bf __get_nprocs:                                8208
> 0xa010a426 _IO_vfwprintf:                               4376
> 0xa00ebe33 _IO_wfile_seekoff:                           4280
> 0xa00ec0b9 _IO_wfile_seekoff:                           4280
> 0xa00f8626 __unix_grantpt:                              4252
> 0xa00f848f grantpt:                                     4188
> 0xa01103c6 execle:                                      4140

Ok, the two below functions are plain dumb - there's a MAXPATHLEN (i.e. 
PATH_MAX i.e. 4096) array on the stack, and they could happily be fixed.

All the rest seems plain glibc code and thus unfixable.

> 0xa0005119 make_uml_dir:                                4124
> 0xa00051bd make_uml_dir:                                4124
> 0xa0023dc0 make_tempfile:                               4124
> 0xa0023e5a make_tempfile:                               4124

> 0xa00e01d7 openpty:                                     4124
> 0xa011cd40 _dl_get_origin:                              4112
> 0xa011cdc4 _dl_get_origin:                              4112
>
> Rob

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade


	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [uml-devel] Do we care about 4k stacks?
  2005-11-22 19:24 ` Blaisorblade
@ 2005-11-23  4:44   ` Rob Landley
  0 siblings, 0 replies; 4+ messages in thread
From: Rob Landley @ 2005-11-23  4:44 UTC (permalink / raw)
  To: Blaisorblade; +Cc: user-mode-linux-devel

On Tuesday 22 November 2005 13:24, Blaisorblade wrote:

> Ok, the two below functions are plain dumb - there's a MAXPATHLEN (i.e.
> PATH_MAX i.e. 4096) array on the stack, and they could happily be fixed.
>
> All the rest seems plain glibc code and thus unfixable.

I can link against uClibc and see what the result is... :)

Rob


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-11-23  4:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-21  6:19 [uml-devel] Do we care about 4k stacks? Rob Landley
2005-11-21 14:56 ` Jeff Dike
2005-11-22 19:24 ` Blaisorblade
2005-11-23  4:44   ` Rob Landley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.