Author Topic: Cached Files  (Read 2547 times)

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Cached Files
« 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!
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Cached Files
« Reply #1 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
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Da_Blitz

  • Hero Member
  • *****
  • Posts: 1579
    • View Profile
    • http://www.pocketnix.org
Cached Files
« Reply #2 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
« Last Edit: July 10, 2005, 07:05:17 am by Da_Blitz »
Personal Blog
Code
Twitter

Gemini Order: #95 (roughly)
Current Device: Samsung Chromebook Gen 3
Current Arm Devices Count: ~30
Looking to acquire: Cavium Thunder X2 Hardware