All of lore.kernel.org
 help / color / mirror / Atom feed
* limited Memory question...
@ 2002-01-09  1:43 ` machael thailer
  0 siblings, 0 replies; 17+ messages in thread
From: machael thailer @ 2002-01-09  1:43 UTC (permalink / raw)
  To: linux-mips; +Cc: Ralf Baechle

Hello, all:
    I have a question to need you help. Our MIPS-based custom board has only 8M memory.When I want to insmod a 24M module, it often panics and says "out of memory...".
How can I solve this?
Thank you.
machael thailer

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

* limited Memory question...
@ 2002-01-09  1:43 ` machael thailer
  0 siblings, 0 replies; 17+ messages in thread
From: machael thailer @ 2002-01-09  1:43 UTC (permalink / raw)
  To: linux-mips; +Cc: Ralf Baechle

Hello, all:
    I have a question to need you help. Our MIPS-based custom board has only 8M memory.When I want to insmod a 24M module, it often panics and says "out of memory...".
How can I solve this?
Thank you.
machael thailer

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

* Re: limited Memory question...
@ 2002-01-09  1:51   ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 17+ messages in thread
From: Arnaldo Carvalho de Melo @ 2002-01-09  1:51 UTC (permalink / raw)
  To: machael thailer; +Cc: linux-mips, Ralf Baechle

Em Wed, Jan 09, 2002 at 09:43:59AM +0800, machael thailer escreveu:

> I have a question to need you help. Our MIPS-based custom board has only
> 8M memory.When I want to insmod a 24M module, it often panics and says
> "out of memory...".

a kernel module? 24MiB? ouch, if that is the case, the only way is to get
more memory for your board, as kernel memory is not swappable...

- Arnaldo

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

* Re: limited Memory question...
@ 2002-01-09  1:51   ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 17+ messages in thread
From: Arnaldo Carvalho de Melo @ 2002-01-09  1:51 UTC (permalink / raw)
  To: machael thailer; +Cc: linux-mips, Ralf Baechle

Em Wed, Jan 09, 2002 at 09:43:59AM +0800, machael thailer escreveu:

> I have a question to need you help. Our MIPS-based custom board has only
> 8M memory.When I want to insmod a 24M module, it often panics and says
> "out of memory...".

a kernel module? 24MiB? ouch, if that is the case, the only way is to get
more memory for your board, as kernel memory is not swappable...

- Arnaldo

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

* Re: limited Memory question...
@ 2002-01-09  2:39     ` machael thailer
  0 siblings, 0 replies; 17+ messages in thread
From: machael thailer @ 2002-01-09  2:39 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: linux-mips

> > I have a question to need you help. Our MIPS-based custom board has only
> > 8M memory.When I want to insmod a 24M module, it often panics and says
> > "out of memory...".
> 
> a kernel module? 24MiB? ouch, if that is the case, the only way is to get
> more memory for your board, as kernel memory is not swappable...

Yes, it is a kernel module.  
But unfortunately, the memory is fixed on our board and we cannot add more memory.
Any other ideas?

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

* Re: limited Memory question...
@ 2002-01-09  2:39     ` machael thailer
  0 siblings, 0 replies; 17+ messages in thread
From: machael thailer @ 2002-01-09  2:39 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: linux-mips

> > I have a question to need you help. Our MIPS-based custom board has only
> > 8M memory.When I want to insmod a 24M module, it often panics and says
> > "out of memory...".
> 
> a kernel module? 24MiB? ouch, if that is the case, the only way is to get
> more memory for your board, as kernel memory is not swappable...

Yes, it is a kernel module.  
But unfortunately, the memory is fixed on our board and we cannot add more memory.
Any other ideas?

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

* Re: limited Memory question...
@ 2002-01-09  2:44       ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 17+ messages in thread
From: Arnaldo Carvalho de Melo @ 2002-01-09  2:44 UTC (permalink / raw)
  To: machael thailer; +Cc: linux-mips

Em Wed, Jan 09, 2002 at 10:39:18AM +0800, machael thailer escreveu:
> > > I have a question to need you help. Our MIPS-based custom board has only
> > > 8M memory.When I want to insmod a 24M module, it often panics and says
> > > "out of memory...".
> > 
> > a kernel module? 24MiB? ouch, if that is the case, the only way is to get
> > more memory for your board, as kernel memory is not swappable...
> 
> Yes, it is a kernel module.  
> But unfortunately, the memory is fixed on our board and we cannot add more memory.
> Any other ideas?

What does this module does that takes so much memory? One possible idea
akpm talked about was to reduce NR_CPUS to the number of CPUs in your eval
board if that is something relevant to the reason why your module takes so
much memory, does it have a firmware linked? If so, don't link it and load
it from userspace, block by block, if this is possible, etc, other than
these suggestions one could only give more ideas if the source code is
available for review.

- Arnaldo

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

* Re: limited Memory question...
@ 2002-01-09  2:44       ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 17+ messages in thread
From: Arnaldo Carvalho de Melo @ 2002-01-09  2:44 UTC (permalink / raw)
  To: machael thailer; +Cc: linux-mips

Em Wed, Jan 09, 2002 at 10:39:18AM +0800, machael thailer escreveu:
> > > I have a question to need you help. Our MIPS-based custom board has only
> > > 8M memory.When I want to insmod a 24M module, it often panics and says
> > > "out of memory...".
> > 
> > a kernel module? 24MiB? ouch, if that is the case, the only way is to get
> > more memory for your board, as kernel memory is not swappable...
> 
> Yes, it is a kernel module.  
> But unfortunately, the memory is fixed on our board and we cannot add more memory.
> Any other ideas?

What does this module does that takes so much memory? One possible idea
akpm talked about was to reduce NR_CPUS to the number of CPUs in your eval
board if that is something relevant to the reason why your module takes so
much memory, does it have a firmware linked? If so, don't link it and load
it from userspace, block by block, if this is possible, etc, other than
these suggestions one could only give more ideas if the source code is
available for review.

- Arnaldo

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

* Re: limited Memory question...
@ 2002-01-09  3:02         ` machael thailer
  0 siblings, 0 replies; 17+ messages in thread
From: machael thailer @ 2002-01-09  3:02 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: linux-mips


> Em Wed, Jan 09, 2002 at 10:39:18AM +0800, machael thailer escreveu:
> > > > I have a question to need you help. Our MIPS-based custom board has only
> > > > 8M memory.When I want to insmod a 24M module, it often panics and says
> > > > "out of memory...".
> > > 
> > > a kernel module? 24MiB? ouch, if that is the case, the only way is to get
> > > more memory for your board, as kernel memory is not swappable...
> > 
> > Yes, it is a kernel module.  
> > But unfortunately, the memory is fixed on our board and we cannot add more memory.
> > Any other ideas?
> 
> What does this module does that takes so much memory? One possible idea
> akpm talked about was to reduce NR_CPUS to the number of CPUs in your eval
> board if that is something relevant to the reason why your module takes so
> much memory, does it have a firmware linked? If so, don't link it and load
> it from userspace, block by block, if this is possible, etc, other than
> these suggestions one could only give more ideas if the source code is
> available for review.

24M is the size of the module, not the memory that it takes.

machael.

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

* Re: limited Memory question...
@ 2002-01-09  3:02         ` machael thailer
  0 siblings, 0 replies; 17+ messages in thread
From: machael thailer @ 2002-01-09  3:02 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: linux-mips


> Em Wed, Jan 09, 2002 at 10:39:18AM +0800, machael thailer escreveu:
> > > > I have a question to need you help. Our MIPS-based custom board has only
> > > > 8M memory.When I want to insmod a 24M module, it often panics and says
> > > > "out of memory...".
> > > 
> > > a kernel module? 24MiB? ouch, if that is the case, the only way is to get
> > > more memory for your board, as kernel memory is not swappable...
> > 
> > Yes, it is a kernel module.  
> > But unfortunately, the memory is fixed on our board and we cannot add more memory.
> > Any other ideas?
> 
> What does this module does that takes so much memory? One possible idea
> akpm talked about was to reduce NR_CPUS to the number of CPUs in your eval
> board if that is something relevant to the reason why your module takes so
> much memory, does it have a firmware linked? If so, don't link it and load
> it from userspace, block by block, if this is possible, etc, other than
> these suggestions one could only give more ideas if the source code is
> available for review.

24M is the size of the module, not the memory that it takes.

machael.

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

* Re: limited Memory question...
@ 2002-01-09  3:05           ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 17+ messages in thread
From: Arnaldo Carvalho de Melo @ 2002-01-09  3:05 UTC (permalink / raw)
  To: machael thailer; +Cc: linux-mips

Em Wed, Jan 09, 2002 at 11:02:23AM +0800, machael thailer escreveu:
> 
> > Em Wed, Jan 09, 2002 at 10:39:18AM +0800, machael thailer escreveu:
> > > > > I have a question to need you help. Our MIPS-based custom board has only
> > > > > 8M memory.When I want to insmod a 24M module, it often panics and says
> > > > > "out of memory...".
> > > > 
> > > > a kernel module? 24MiB? ouch, if that is the case, the only way is to get
> > > > more memory for your board, as kernel memory is not swappable...
> > > 
> > > Yes, it is a kernel module.  
> > > But unfortunately, the memory is fixed on our board and we cannot add more memory.
> > > Any other ideas?
> > 
> > What does this module does that takes so much memory? One possible idea
> > akpm talked about was to reduce NR_CPUS to the number of CPUs in your eval
> > board if that is something relevant to the reason why your module takes so
> > much memory, does it have a firmware linked? If so, don't link it and load
> > it from userspace, block by block, if this is possible, etc, other than
> > these suggestions one could only give more ideas if the source code is
> > available for review.
> 
> 24M is the size of the module, not the memory that it takes.

what is the output of:

size your_module.o

?

- Arnaldo

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

* Re: limited Memory question...
@ 2002-01-09  3:05           ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 17+ messages in thread
From: Arnaldo Carvalho de Melo @ 2002-01-09  3:05 UTC (permalink / raw)
  To: machael thailer; +Cc: linux-mips

Em Wed, Jan 09, 2002 at 11:02:23AM +0800, machael thailer escreveu:
> 
> > Em Wed, Jan 09, 2002 at 10:39:18AM +0800, machael thailer escreveu:
> > > > > I have a question to need you help. Our MIPS-based custom board has only
> > > > > 8M memory.When I want to insmod a 24M module, it often panics and says
> > > > > "out of memory...".
> > > > 
> > > > a kernel module? 24MiB? ouch, if that is the case, the only way is to get
> > > > more memory for your board, as kernel memory is not swappable...
> > > 
> > > Yes, it is a kernel module.  
> > > But unfortunately, the memory is fixed on our board and we cannot add more memory.
> > > Any other ideas?
> > 
> > What does this module does that takes so much memory? One possible idea
> > akpm talked about was to reduce NR_CPUS to the number of CPUs in your eval
> > board if that is something relevant to the reason why your module takes so
> > much memory, does it have a firmware linked? If so, don't link it and load
> > it from userspace, block by block, if this is possible, etc, other than
> > these suggestions one could only give more ideas if the source code is
> > available for review.
> 
> 24M is the size of the module, not the memory that it takes.

what is the output of:

size your_module.o

?

- Arnaldo

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

* Re: limited Memory question...
@ 2002-01-09  3:13     ` machael thailer
  0 siblings, 0 replies; 17+ messages in thread
From: machael thailer @ 2002-01-09  3:13 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-mips, Arnaldo Carvalho de Melo

> >     I have a question to need you help. Our MIPS-based custom board has only
> > 8M memory.When I want to insmod a 24M module, it often panics and says "out 
> > of memory...".
> > How can I solve this?
> 
> Stop the module using 24Mb of unpageable memory ?

Sorry , I think I didn't describe my questions clearly before.

"24M" contains some debugging information. I compile it using "-g".
code+data sections is only about 7.4M.

Can you describe your solutions in more details?

machael.

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

* Re: limited Memory question...
@ 2002-01-09  3:13     ` machael thailer
  0 siblings, 0 replies; 17+ messages in thread
From: machael thailer @ 2002-01-09  3:13 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-mips, Arnaldo Carvalho de Melo

> >     I have a question to need you help. Our MIPS-based custom board has only
> > 8M memory.When I want to insmod a 24M module, it often panics and says "out 
> > of memory...".
> > How can I solve this?
> 
> Stop the module using 24Mb of unpageable memory ?

Sorry , I think I didn't describe my questions clearly before.

"24M" contains some debugging information. I compile it using "-g".
code+data sections is only about 7.4M.

Can you describe your solutions in more details?

machael.

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

* Re: limited Memory question...
@ 2002-01-09  3:13   ` Alan Cox
  0 siblings, 0 replies; 17+ messages in thread
From: Alan Cox @ 2002-01-09  3:13 UTC (permalink / raw)
  To: machael thailer; +Cc: linux-mips, Ralf Baechle

>     I have a question to need you help. Our MIPS-based custom board has only
> 8M memory.When I want to insmod a 24M module, it often panics and says "out 
> of memory...".
> How can I solve this?

Stop the module using 24Mb of unpageable memory ?

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

* Re: limited Memory question...
@ 2002-01-09  3:13   ` Alan Cox
  0 siblings, 0 replies; 17+ messages in thread
From: Alan Cox @ 2002-01-09  3:13 UTC (permalink / raw)
  To: machael thailer; +Cc: linux-mips, Ralf Baechle

>     I have a question to need you help. Our MIPS-based custom board has only
> 8M memory.When I want to insmod a 24M module, it often panics and says "out 
> of memory...".
> How can I solve this?

Stop the module using 24Mb of unpageable memory ?

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

* Re: limited Memory question...
  2002-01-09  3:13     ` machael thailer
  (?)
@ 2002-01-09 11:35     ` Ralf Baechle
  -1 siblings, 0 replies; 17+ messages in thread
From: Ralf Baechle @ 2002-01-09 11:35 UTC (permalink / raw)
  To: machael thailer; +Cc: Alan Cox, linux-mips, Arnaldo Carvalho de Melo

On Wed, Jan 09, 2002 at 11:13:22AM +0800, machael thailer wrote:

> "24M" contains some debugging information. I compile it using "-g".
> code+data sections is only about 7.4M.
> 
> Can you describe your solutions in more details?

No way to load such a module into such little memory.  The only possible
solution is to drastically rewrite your module and move everything
possible into a userspace process.  For userspace processes swapping is
possible ...

  Ralf

--
"Embrace, Enhance, Eliminate" - it worked for the pope, it'll work for Bill.

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

end of thread, other threads:[~2002-01-09 12:35 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-09  1:43 limited Memory question machael thailer
2002-01-09  1:43 ` machael thailer
2002-01-09  1:51 ` Arnaldo Carvalho de Melo
2002-01-09  1:51   ` Arnaldo Carvalho de Melo
2002-01-09  2:39   ` machael thailer
2002-01-09  2:39     ` machael thailer
2002-01-09  2:44     ` Arnaldo Carvalho de Melo
2002-01-09  2:44       ` Arnaldo Carvalho de Melo
2002-01-09  3:02       ` machael thailer
2002-01-09  3:02         ` machael thailer
2002-01-09  3:05         ` Arnaldo Carvalho de Melo
2002-01-09  3:05           ` Arnaldo Carvalho de Melo
2002-01-09  3:13 ` Alan Cox
2002-01-09  3:13   ` Alan Cox
2002-01-09  3:13   ` machael thailer
2002-01-09  3:13     ` machael thailer
2002-01-09 11:35     ` Ralf Baechle

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.