Re: [PATCH] increase pipe size/buffers/atomicity :D

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven J. Magnani
Date: Thursday, April 8, 2010 - 8:14 am

Brian -

On Wed, 2010-04-07 at 19:38 -0600, brian wrote:

It would be good to know what issue this addresses. Gives people a way
to weigh any side-effects/drawbacks against the benefits, and an
opportunity to suggest alternate/better approaches.


This worries me. In several places there are functions with 2 or 3
pointer arrays of dimension [PIPE_BUFFERS] on the stack. So this adds
anywhere from 128 to 384 bytes to the stack in these functions depending
on sizeof(void*) and the number of arrays.


This has pretty wide-ranging implications, both within and across
arches. I don't think it's something that can be changed easily. Also I
don't believe this #define used in your configuration (Athlon/686)
unless you're running without a MMU.


I don't see this being used within the kernel, so I assume its a
userspace representation of PAGE_SIZE (ARM seems to associate these
explicitly). I would think you'd need to rebuild your glibc or
equivalent to notice any difference from a change.

Regards,
------------------------------------------------------------------------
 Steven J. Magnani               "I claim this network for MARS!
 www.digidescorp.com              Earthling, return my space modulator!"

 #include <standard.disclaimer>



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] increase pipe size/buffers/atomicity :D, Eric Dumazet, (Wed Apr 7, 10:11 pm)
Re: [PATCH] increase pipe size/buffers/atomicity :D, Steven J. Magnani, (Thu Apr 8, 8:14 am)
Re: [PATCH] increase pipe size/buffers/atomicity :D, Brian Haslett, (Fri Apr 9, 12:50 pm)