Re: Memory usage and partitions?

From: <Mika.Laitio_at_sysline.com>
Date: Wed, 22 Aug 2001 18:41:42 +0300

Ok, to summarize. I have in my IPaq total of 48 MB memory. (16 MB ROM + 32
MB RAM)

16 MB ROM (FLASH)

     - mounted as "/"

     contains
          - kernel
          - XWindows
          - other applications

32 MB RAM

     - Divided to two parts

     PART 1 (16 MB)
          - Main runtime memory for applications

     PART 2 (about 16 MB)
          - Mointer as "/mnt/ramfs"
          - Secondary runtime memory for applications
          - Secondary storage for applications (Files in here will be lost
in hard reset)

Is it now possible to change the size how PART1 and PART2 are divided? (If
I forexample would like to set Main runtime memory to 24 MB)

Mika

ps. I make small picture which represent the system.

(See attached file: Memory.png)

                                                                                                                                                    
                    Michael Scott
                    Shappe To: Mika.Laitio_at_sysline.com
                    <mikey_at_hundred-acre cc: familiar_at_handhelds.org
                    -wood.com> Subject: Re: [Familiar] Memory usage and partitions?
                                                                                                                                                    
                    22.08.2001 17:46
                    Please respond to
                    mikey
                                                                                                                                                    
                                                                                                                                                    

Mika,

> /dev/mtdblock/3 15360 13736 1624 90% /
> ramfs 15464 260 15204 2% /mnt/ramfs
>
> In addition, the "System Resource Tool" informes that the current
> memory usage is about 20 %.
>
> If I understand correctly, this mean that I have
>
> - 1.6 MB of memory for storage purposes
> - 15.2 MB of memory free for running applications

Not quite.

/dev/mtdblock/3 represents your Flash 'root'. As you surmise, you have
1.6MB
left, there. Assuming you're running Familiar 0.4, and using JFFS2, this is
still a bit misleading, since JFFS2 compresses. You might be able to fit
somewhat more than 1.6MB of uncompressed information into that space.

ramfs is not your application-running memory, but a RAM-disk that claims up
to half your available RAM. I believe that this is self-adjusting -- if you
haven't filled the space and your applications need more memory, the
RAM-disk will shrink. This RAM-disk is just as volatile, however, as the
rest of RAM -- if you actually reboot, or if your battery drains, this
'disk' is lost.

The memory usage being reported by the System Resource Tool the actual
application RAM, so on a 32MB iPAQ, if 20% is in use, you should have about
13MB of RAM free for applications.

> If I upgrade the memory from my IPaq to 64 MB, will I get more memory
for
> running my applications, or will I only get more storage space for them?

When people speak of upgrading memory, they usually mean RAM. An upgrade to
64MB will result in a ramfs that will take up to 32MB of RAM, and 32MB of
RAM actually available for your applications.

If you want more non-volatile storage, you will need to either obtain
either
a CompactFlash sleeve or a PCMCIA Card sleeve, and one of the many Compact
Flash or microdrive storage solutions. I believe there is a company that
will actually upgrade the in-built Flash, as well, but I think this voids
the warrantee.

Mikey

Portable Network Graphics Forma
Received on Wed Aug 22 2001 - 08:34:31 EDT

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:12:33 EDT