Author Topic: 32mb Ramfs On C3000  (Read 5009 times)

Blake

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • http://
32mb Ramfs On C3000
« on: January 29, 2008, 06:35:06 pm »
First, I apologize if there is a better forum for this question,   but I've googled this a bit and found little discussion on the topic.

I got a c3000 recently and put Angstrom on it. It creates a 32Mb ramfs on startup, just like my old 5500 did.  

I remember from my 5500 days that OZ would build a selection of kernels with different sized ramdisks.

I want the other half of my memory available. Will I need to build my own kernel for that? Is there a way to simply unmount that ramfs and free that memory?

Who out there has 64Mb available on his/her Z (with an EABI 2.6 kernel)?

Thanks for your help.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
32mb Ramfs On C3000
« Reply #1 on: January 29, 2008, 07:39:10 pm »
Would that be the "tempfs" mounted on /media/ram? free claims I have 60MB RAM (on a C3100), or which 49MB is free (minus buffers/cache). If I am indeed losing 32MB to this ramfs, I too would be interested in getting rid of it.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

JohnX

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • http://
32mb Ramfs On C3000
« Reply #2 on: January 29, 2008, 07:53:13 pm »
This is a much more flexible "ramdisk" than the one that was enabled on the Sharp ROM (and some OZ releases) for the 5500. This newer type of "ramdisk" (tmpfs) only takes up as much RAM as whatever is stored on it. It helps performance and makes your flash live longer to have /tmp and /dev be stored in RAM.
Zaurus SL-C1000 - Linux 2.6.22 - Angstrom/Debian dual boot - Ambicom 802.11b - 1GB Corsair SD
Nokia N800 - 2GB PQI SD card
Zaurus SL-5500 - OZ 3.5.3/Hentges T2/Opie - 64MB Lexar SD card

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
32mb Ramfs On C3000
« Reply #3 on: January 29, 2008, 09:25:16 pm »
Awesome. So even though it says the "tmpfs" is 30MB, it will only be taking up a fraction of that in RAM?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

JohnX

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • http://
32mb Ramfs On C3000
« Reply #4 on: January 30, 2008, 03:13:25 am »
If you run df -h and it shows the tmpfs has 60KB of files stored on it then 60KB of RAM is taken up. Also if you use swap, the contents of the tmpfs can be swapped as well (when needed).
Zaurus SL-C1000 - Linux 2.6.22 - Angstrom/Debian dual boot - Ambicom 802.11b - 1GB Corsair SD
Nokia N800 - 2GB PQI SD card
Zaurus SL-5500 - OZ 3.5.3/Hentges T2/Opie - 64MB Lexar SD card

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
32mb Ramfs On C3000
« Reply #5 on: January 30, 2008, 07:28:39 am »
Thanks for the information!
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
32mb Ramfs On C3000
« Reply #6 on: January 30, 2008, 04:24:53 pm »
I agree, ramfs is a potentially very useful tool, and relatively harmless provided you remember that you shouldn't overflow it, and that its contents will disappear when you reboot!
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.