All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* Memory usage?
@ 2002-10-14  8:13 Steve Tsai
  2002-10-14 16:34 ` Russ Dill
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Tsai @ 2002-10-14  8:13 UTC (permalink / raw
  To: Linux MTD mailing list

Does JFFS2 will allocate large memory to read big file? I have  a 128M
bytes nand flash on my board and there is a large file about 12M bytes.
After I use the  testing program to read the file, the free memory
reduce to 312Kbytes (from 10660Kbytes). How can I reduce the memory
usage of JFFS2? Thanks.

Steve Tsai


 

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

* Re: Memory usage?
  2002-10-14  8:13 Memory usage? Steve Tsai
@ 2002-10-14 16:34 ` Russ Dill
  2002-10-15  4:11   ` Steve Tsai
  0 siblings, 1 reply; 6+ messages in thread
From: Russ Dill @ 2002-10-14 16:34 UTC (permalink / raw
  To: Steve Tsai; +Cc: Linux MTD mailing list

On Mon, 2002-10-14 at 01:13, Steve Tsai wrote:
> Does JFFS2 will allocate large memory to read big file? I have  a 128M
> bytes nand flash on my board and there is a large file about 12M bytes.
> After I use the  testing program to read the file, the free memory
> reduce to 312Kbytes (from 10660Kbytes). How can I reduce the memory
> usage of JFFS2? Thanks.

what do you mean by "free memory", are you including buffers and cache?

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

* RE: Memory usage?
  2002-10-14 16:34 ` Russ Dill
@ 2002-10-15  4:11   ` Steve Tsai
  2002-10-15  6:28     ` David Woodhouse
  0 siblings, 1 reply; 6+ messages in thread
From: Steve Tsai @ 2002-10-15  4:11 UTC (permalink / raw
  To: 'Russ Dill'; +Cc: Linux MTD mailing list

It does not include cache and buffer. I know the most memory becomes the
cache, but I am using uClinux and the lower MemFree will cause system
crash when I am loading program. I need to prevent the case.


Steve Tsai



> -----Original Message-----
> From: Russ Dill [mailto:Russ.Dill@asu.edu] 
> Sent: Tuesday, October 15, 2002 12:35 AM
> To: Steve Tsai
> Cc: Linux MTD mailing list
> Subject: Re: Memory usage?
> 
> 
> On Mon, 2002-10-14 at 01:13, Steve Tsai wrote:
> > Does JFFS2 will allocate large memory to read big file? I 
> have  a 128M 
> > bytes nand flash on my board and there is a large file about 12M 
> > bytes. After I use the  testing program to read the file, the free 
> > memory reduce to 312Kbytes (from 10660Kbytes). How can I reduce the 
> > memory usage of JFFS2? Thanks.
> 
> what do you mean by "free memory", are you including buffers 
> and cache?
> 

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

* Re: Memory usage?
  2002-10-15  4:11   ` Steve Tsai
@ 2002-10-15  6:28     ` David Woodhouse
  2002-10-15 12:05       ` [power-saving issue] ??
  2002-10-15 12:56       ` David Woodhouse
  0 siblings, 2 replies; 6+ messages in thread
From: David Woodhouse @ 2002-10-15  6:28 UTC (permalink / raw
  To: Steve Tsai; +Cc: 'Russ Dill', Linux MTD mailing list

startec@ms11.hinet.net said:
> It does not include cache and buffer. I know the most memory becomes
> the cache, but I am using uClinux and the lower MemFree will cause
> system crash when I am loading program. I need to prevent the case. 

grep jffs2 /proc/slabinfo

--
dwmw2

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

* [power-saving issue]
  2002-10-15  6:28     ` David Woodhouse
@ 2002-10-15 12:05       ` ??
  2002-10-15 12:56       ` David Woodhouse
  1 sibling, 0 replies; 6+ messages in thread
From: ?? @ 2002-10-15 12:05 UTC (permalink / raw
  To: David Woodhouse; +Cc: Linux MTD mailing list

dear all,

we want to stop gc thread manually when system goto suspend mode,

can we simply call "jffs2_stop_garbage_collect_thread()"?
and how to get its param: "struct jffs2_sb_info *c"

btw, i think gc thread wakeup only if its necessary not regularly, right?

best regards,

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

* Re: [power-saving issue]
  2002-10-15  6:28     ` David Woodhouse
  2002-10-15 12:05       ` [power-saving issue] ??
@ 2002-10-15 12:56       ` David Woodhouse
  1 sibling, 0 replies; 6+ messages in thread
From: David Woodhouse @ 2002-10-15 12:56 UTC (permalink / raw
  To: ??; +Cc: Linux MTD mailing list

kevin@gv.com.tw said:
>  we want to stop gc thread manually when system goto suspend mode,
> can we simply call "jffs2_stop_garbage_collect_thread()"? and how to
> get its param: "struct jffs2_sb_info *c"

Send it a SIGSTOP from userspace, then a SIGCONT when you want it to wake 
up. Or send it a SIGKILL to kill it permanently (until the next remount).

> btw, i think gc thread wakeup only if its necessary not regularly,
> right?

Correct.

--
dwmw2

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

end of thread, other threads:[~2002-10-15 12:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-14  8:13 Memory usage? Steve Tsai
2002-10-14 16:34 ` Russ Dill
2002-10-15  4:11   ` Steve Tsai
2002-10-15  6:28     ` David Woodhouse
2002-10-15 12:05       ` [power-saving issue] ??
2002-10-15 12:56       ` David Woodhouse

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.