1

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.

5
  • 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) Commented Oct 23, 2017 at 8:59
  • 1
    Use as swap partition. Commented Oct 23, 2017 at 8:59
  • 4
    I'm voting to close this question as off-topic because it is hardware related. Commented Oct 23, 2017 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
    Commented Oct 23, 2017 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. Commented Oct 23, 2017 at 11:43

1 Answer 1

1

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.

2
  • 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
    Commented Oct 24, 2017 at 4:43
  • @Ramki 32bit is not relevant. I have added more to answer. Commented Oct 24, 2017 at 8:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .