With the performance set aside, is it possible to avoid RAM and use SDCard instead of it in Linux.

Linux might be using allocated address space as RAM. Can we ask linux to use SDCard as RAM?

I will use class 10 SDcard which is of the highest quality.

Thanks in advance.

  • 1
    Off-topic here, it is more a hardware issue (not specific to Linux, would be the same with FreeBSD or Windows) than an OS one. The probable answer is No, you need some RAM (and details depend upon your hardware) Oct 23 '17 at 8:59
  • 1
    Use as swap partition. Oct 23 '17 at 8:59
  • 4
    I'm voting to close this question as off-topic because it is hardware related. Oct 23 '17 at 9:00
  • 1
    Google search " use sdcard as RAM" will give many results for android which are OS related. I am sure linux will have way to.
    – Hanu
    Oct 23 '17 at 9:54
  • 1
    This is a hardware question, if you are asking about zero RAM, but is relevant if you are asking about very little RAM. Oct 23 '17 at 11:43

Yes as long as you don't try to eliminate all RAM.

You need some RAM as the CPU needs to access RAM. It is how it works. TLB, and a lot of other stuff have to be in primary memory.

In Gnu/Linux you can set up the SD card as swap, and use very little RAM. However this could lead to a lot of wear of the SD card. SD cards have a limited life, measured in number of writes.

You need to ask, can you get all the essentials into RAM, with enough left over for swapping. Then will it be fast enough.

I doubt 32k is enough to run a Unix like system. ls is 128k on debian, and debian is good at not wasting memory. You will have to get the whole kernel into RAM, and the kernel named Linux us huge (not as huge at NT, but huge) see https://stackoverflow.com/q/27941775/537980.

  • Thanks. My SystemOnChip has 32K RAM. is that sufficient for 32 bit processor. As a peripheral, can I connect only SDCard and use as swap/RAM now?
    – Hanu
    Oct 24 '17 at 4:43
  • @Ramki 32bit is not relevant. I have added more to answer. Oct 24 '17 at 8:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.