#2 Disk Cache

closed
nobody
None
5
2005-04-09
2004-10-02
No

I believe it would be helpful if LNG was to maintain a
large disk cache in unused memory. Meminfo indicates,
on a C64 with one instance of sh and no other programs
running, that 186 pages of RAM are free. A "stupid"
cache that doesn't try to self-optimize but rather
simply buffers as much data from disk devices as
possible would not put significant memory restrictions
on the system; in fact, even if only 2K (8 pages) of
data were stored and marked with the
diskID/track/sector (4 bytes per page overhead), it
would make recent task repetition a lot faster.
It would be nice if the ls command didn't have to
physically re-read the ENTIRE disk directory every time
it was executed, which is where the whole thought came
from.
Just a friendly thought, of course!

Discussion

  • Maciej Witkowiak

    Logged In: YES
    user_id=48608

    Because of the way that CBM drives work and talk with C64 a true
    disk caching is near to impossible. Note that it's the drive that
    seeks a file in directory. LNG only sends the filename. I have
    been thinking about a ramdisk for start. Then, all that available
    extra ram from REU, C128 bank1 etc. could be utilized...

     
  • Maciej Witkowiak

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks