Hi David and all others,

could someone please explain what are the consequences of the problem
David wrote about the possible size of a module. He wrote (copy of this
see at the end of my mail):

"Yet another good reason not to use global variables in modules,
since this means that it is more *** difficult to find their physical address ***."

My questions (note: I'm using *** RTAI ***):

If  I declare (for example) 4 arrays of each 50kb as global variables in a module.
Is there a problem accessing the array members???

Is there really NO limitation of memory use in a module?

What about the maximum Stack size. Would a Stack of 50kB be possible or is
there a danger using a stack bigger than 8192 bytes?


Thanks in advance


   Uwe


David Schleef wrote:

> On Wed, Dec 29, 1999 at 02:43:57PM -0800, David Schleef wrote:
> > On Wed, Dec 29, 1999 at 08:34:03AM -0400, [EMAIL PROTECTED] wrote:
> > >
> > > Hello, I have a question about the Maximun Module Size that I can load to RT
> > > Linux, because I need to use Neural Networks to contol some process, and the
> > > Neural Network run quick, but use a lot of memory.
> >
> > 128k - 16 bytes.  But you can allocate 100's of MB if you want, and copy
> > any data that you need from user space.
> >
>
> Oops.  I was wrong here.  There is no limit to module size, since module
> memory is allocated with vmalloc, at least in 2.3.34.  It used to be allocated
> with kmalloc, hence the 128k limit.  Yet another good reason not to use
> global variables in modules, since this means that it is more difficult to
> find their physical address.
>
> dave...
>
> --- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ----
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/~rtlinux/

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to