OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 Hardware => Topic started by: bam on July 10, 2005, 12:03:42 am

Title: Cached Files
Post by: bam on July 10, 2005, 12:03:42 am
Is there any way to control whas cached? the memory applet says I have approx 26mb cached, thats alot!
Title: Cached Files
Post by: lardman on July 10, 2005, 06:20:24 am
Quote
Is there any way to control whas cached? the memory applet says I have approx 26mb cached, thats alot!

Why do you need to control what is cached? If you really wanted to you could hack the kernel a bit to change this, but I think you mis-understand the point of caching. The data which is cached is in memory so it's available more quickly than reading it from disk (though for the Zaurus I'm not sure how much of a difference it makes in truth), if another program requires more memory, some of the cached data is deleted, the memory is returned to the free pool and is then allocated to the program which asked for it.

Although you may not like seeing that you have <1Mb of free memory, it may as well be doing something useful while consuming power than just sitting there with a load of zeros in it. Now, if it were possible (and I don't think it is or ever will be) to shutdown/powerdown an entire bank of the RAM, I might change my mind about this...


Si
Title: Cached Files
Post by: Da_Blitz on July 10, 2005, 07:03:08 am
cached is kicked out of memorey when the moeroy is required, however i can see your point edit: what you dont relise is that the cache only uses left over memory and doesnt inhibit the os un any way it actually gives you a performance boost for free as it is using  unused/unallocated memory

i wanted to set up a FUSE (files system ins user space) to buffer the entire file of the mp3 i am currently listening to so i dont get 3 to 4 seeks during playback of the song and lukily fuse + java offers thae capability to write a bash script filesystem to do just that

with that capability you could chose what you wanted to cache or you could create a ram disk and use that to chose what you want to cache