Thanks for the tip, I will had a play at tuning :)

Andrew

On Fri, 2008-02-01 at 07:48 -0600, Maupin, Chase wrote:
> Andrew,
> 
> The file system cache is flushed by the pdflush threads in the kernel.  When 
> you unmount the file system all the dirty buffers are flushed and your mem 
> free will return to normal (which is what you saw).  You can tweak the 
> setting for pdflush in /proc/sys/vm.  In particular if you want to try and 
> always have a certain amount of free memory available you can change the 
> settings in min_free_kbytes which will have the system avoid using all the 
> available memory for cache.  In general though if the free memory is low and 
> you request more memory the cache pages will be flushed to free that memory 
> for use.
> 
> Likewise, if you want to reclaim some of the cache memory without unmounting 
> the file system you can up the value of min_free_kbytes which will cause the 
> cache to be flushed until at least that much memory has been freed.
> 
> Either way cache should flush when the memory is needed.  Does this help?
> 
> Sincerely,
> Chase Maupin
> Software Applications
> Catalog DSP Products
> e-mail: [EMAIL PROTECTED]
> phone: (281) 274-3285
> 
> -----Original Message-----
> From: Andrew Armstrong [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, January 31, 2008 11:30 AM
> To: Maupin, Chase
> Cc: [email protected]
> Subject: RE: Please help me for SDIO Driver
> 
> Chase,
> 
> I thought this might be the case, however issuing a sync does not make
> any difference. Its getting to be a problem tracking this down!
> 
> Regards,
> 
> Andrew
> 
> 
> On Thu, 2008-01-31 at 11:07 -0600, Maupin, Chase wrote:
> > Andrew,
> > 
> > The decrease in system memory may be a result of file system/buffer caching 
> > in the kernel not related to the driver.  The unmount of the device would 
> > cause all dirty cache buffers to be written to the device which would 
> > restore the system memory.  You may want to try a sync command and see if 
> > that will free the memory without unmounting the device.
> > 
> > Sincerely,
> > Chase Maupin
> > Software Applications
> > Catalog DSP Products
> > e-mail: [EMAIL PROTECTED]
> > phone: (281) 274-3285
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew 
> > Armstrong
> > Sent: Thursday, January 31, 2008 10:47 AM
> > To: [email protected]
> > Subject: RE: Please help me for SDIO Driver
> > 
> > All,
> > 
> > I am using possibly an earlier version of this driver, writing to an SD
> > card.
> > 
> > I have noticed that system memory gets progressively smaller and smaller
> > during writing and is only freed when I unmount the device. Does anyone
> > have any idea where this memory is ending up? Is there a way to stop
> > this happening?
> > 
> > Regards,
> > 
> > Andrew
> > 
> > 
> > On Tue, 2008-01-08 at 15:50 +0530, Nori, Sekhar wrote:
> > > James,
> > > 
> > >  
> > > 
> > > A patch adding SDIO support to the MontaVista Linux 2.6.10 LSP will be
> > > posted on the TI web in near future. I suggest you wait for that patch
> > > to be uploaded.
> > > 
> > >  
> > > 
> > > Thanks,
> > > Sekhar
> > > 
> > >  
> > > 
> > >                                    
> > > ______________________________________________________________________
> > > From: NiJames [mailto:[EMAIL PROTECTED] 
> > > Sent: Tuesday, January 08, 2008 1:30 PM
> > > To: Nori, Sekhar; Khalid ElWazeer;
> > > [email protected]
> > > Subject: Please help me for SDIO Driver
> > > 
> > > 
> > >  
> > > 
> > > 
> > > 
> > > Dear all,
> > >      Help me! I'm the beginner to develop the Davanci 6446.I need to
> > > develop the SDIO driver in linux 2.6.10 kernel nerarly.But I have no
> > > knoweledge about how to develop.Who can  give me a tested driver
> > > source code for reference? Thank you in advance.
> > >  
> > >  
> > > James Ni
> > >  
> > > 
> > >                                    
> > > ______________________________________________________________________
> > > 轻松把Hotmail下载到本地,试试 Windows Live Mail。 立即尝试!
> > > 
> > > 
> > > _______________________________________________
> > > Davinci-linux-open-source mailing list
> > > [email protected]
> > > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> > > 
> > 
> > _______________________________________________
> > Davinci-linux-open-source mailing list
> > [email protected]
> > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> > _______________________________________________
> > Davinci-linux-open-source mailing list
> > [email protected]
> > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> 

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to