Results 1 to 3 of 3

Thread: USB flash disk as HDD cache space - Where should I start?

  1. #1
    Join Date
    Feb 2006
    Location
    Moshi, Tanzania
    Beans
    805
    Distro
    Ubuntu 14.04 Trusty Tahr

    USB flash disk as HDD cache space - Where should I start?

    Hi folks!

    I think I heard somewhere that Windows Vista would be able to "use usb flash disks as ram". This is sort of weird, but it gave me the idea to use a USB flash disk as cache space for your regular disk.

    Indeed, flash memory is of course much faster than HDDs, and could provide a pretty cheap way to increase performance for disk-intensive operations.

    Of course, flash memory "wears" after a while, so for this to work, there has to be "bad sector" checking at some point...

    Is there an easy way to tell Ubuntu to use a particular memory space as disk cache?


    Otherwise, I will do it myself, but I have a few linux-programming related questions (hence the sub-forum choice):

    - Where to I intercept HDD read/write events? I'd guess this is at kernel level, but where, more specifically? In theory I'd guess this would be just above the driver, correct?

    - What do you suggest I should use as a filesystem for the cache space? Ideally, it should be a filesystem designed for error-prone memory (since flash wears out after a while)... I have very little understanding of filesystem internals: is a "bad sector checking" algorithm a common thing in filesystems?
    Is it reasonable (ressources wise) to do it every read and write access (in ubuntu I believe filesystem checking is only done once every 30 mounts)? I mean a partial check of course, not a full scan of the whole disk cache, like a way to check if the data you retrieve from the cache is corrupted or not.

    - Do you think the disk access speed gain would be interesting, in regard of the ressources needed for filesystem maintenance?

    Thanks a lot for your input all!

    - trib'
    Last edited by tribaal; September 13th, 2006 at 01:53 AM.

  2. #2
    Join Date
    Jun 2006
    Beans
    37

    Re: USB flash disk as HDD cache space - Where should I start?

    generally, hard drives are faster than flash drives. in fact, they are faster than most memory cards out there too. just because its solid state memory dosent make it fast.

  3. #3
    Join Date
    Feb 2006
    Beans
    Hidden!

    Re: USB flash disk as HDD cache space - Where should I start?

    Also, after being overwritten a few million (billion? I forget) times, flash memory will crap out.

    Probably not a good idea, just like the guide on "Speeding up Windows XP by using your USB thumbdrive as extra swap space".

    Interesting, regardless.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •