Author Topic: Small Home Partitions + Large IPKs  (Read 3069 times)

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Small Home Partitions + Large IPKs
« on: October 11, 2004, 11:44:13 am »
It seems that the temporary download location on Kathrin RC5 is something like /home/tmp/ipks which is actually a directory on your home partition rather than a link to /tmp or any of the other tmpfs links.

Last try I had with RC5 I made the root partition 116 Mb, leaving 12Mb for PIM stuff, I thought that would be fine.

Unfortunately by the time I got to install the quake IPK there wasn't enough room in /home to download it.

Is there a practical reason why this location is here rather than tmpfs ?, if so I would suggest a note on partition sizing.

I got round it by linking /home/tmp/ipkg to /tmp temporarily.

- Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

offroadgeek

  • Administrator
  • Hero Member
  • *****
  • Posts: 1419
    • View Profile
    • https://www.oesf.org
Small Home Partitions + Large IPKs
« Reply #1 on: October 11, 2004, 01:16:57 pm »
I know this doesn't answer your question directly, but the partition doesn't actually have the full 128mb available, about 7mb is used for system stuff (nand, etc.) that can't be changed.  So the max partition size is 121mb (which the installer mentions), so you only had 5mb available.

I just make my root partition the full 121mb and keep all my pim data, and other stuff on my SD card.  That way nothing gets lost (unless I lose my card), and quake installs just fine
Search the OESF Wiki
C1000 w/Cacko 1.23 beta (from Streamline) / 760 pdaxrom rc9 / 6000L (thanks Santa's elf!) / 5500 - OZ 3.3.5 / SIMpad SL4
1GB, 256mb SanDisk CF / 2x 1GB, 512mb, 256mb, 128mb SanDisk SD
Ambicom WL100C-CF wifi / Socket 56k CF modem / AmbiCom BT2000-CF (x2)
Pocketop keyboard, Piel Frama case (1000 & 5500), PDAir case (760 & 1000)
sip:536093@fwd.pulver.com
| OESF | ELSI | Zaurus User Group | ZaurusThemes |

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Small Home Partitions + Large IPKs
« Reply #2 on: October 11, 2004, 02:54:00 pm »
Ah, this makes a lot of sense.

Thanks offroadgeek
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Small Home Partitions + Large IPKs
« Reply #3 on: October 11, 2004, 05:48:15 pm »
I ran into this problem a while back. Perhaps someone should submit a bug report to have a RAM based tmpfs available for this kind of thing - it's a far cleaner method IMO.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

rgrep

  • Full Member
  • ***
  • Posts: 149
    • View Profile
Small Home Partitions + Large IPKs
« Reply #4 on: October 13, 2004, 02:31:31 am »
The problem with unpacking to a RAM-based FS is that what happens when you run out of RAM?  The current /tmp is limited to 12 MB (as defined in /etc/rc.d/rc.rofilesys) and could be increased, but with matchbox and a single aterm running my C760 only has a total of 27 MB free RAM.

Some IPKs can be quite large and this is compounded when you're storing the packed and unpacked versions during the install.  Without a swap file you're a bit stuffed when you begin running out of RAM - processes will be killed and this could play havoc in the middle of an ipkg install.

While I'm not a fan of using my internal flash for temporary storage, I would rather that than have to worry about closing all my applications before installing new software.  If it causes a problem for you then you can always symlink /home/tmp to somewhere with lots of free space (such as an SD card).

Just my $0.02.
[img]https://www.oesf.org/forums/style_emoticons/default/smile.gif\" border=\"0\" class=\"linked-sig-image\" /] Has: Dynamism C760 / Linksys WCF12 WiFi / Kingston 512MB SD
[img]https://www.oesf.org/forums/style_emoticons/default/biggrin.gif\" border=\"0\" class=\"linked-sig-image\" /] Loves: pdaXrom / Warwalking
[img]https://www.oesf.org/forums/style_emoticons/default/sad.gif\" border=\"0\" class=\"linked-sig-image\" /] Hates: NetGear MA701 WiFi / SanDisk 256MB SD / C760 Charging Faults

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Small Home Partitions + Large IPKs
« Reply #5 on: October 13, 2004, 04:30:42 am »
rgrep,

Yep, that sounds quite sensible, I think it's just something that may want to get added to 'release notes'.

I like offroadgeeks solution so I'm going to use that myself.

- Andy
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Small Home Partitions + Large IPKs
« Reply #6 on: October 13, 2004, 07:14:35 am »
Quote
The problem with unpacking to a RAM-based FS is that what happens when you run out of RAM?

Presumably exactly the same thing that happens when you run out of space on /home :-), except that you're not wearing the flashROM and you don't then preclude any further operations.

Quote
but with matchbox and a single aterm running my C760 only has a total of 27 MB free RAM.

I presume you've included cached memory in this total?

On my Z (OZ+Opie), I have 15.5Mb of used memory (excluding cache which isn't used per se). I'm surprised that pdaXrom takes up so much memory even 'at rest'. It must presumably make running anything pretty difficult.

I wonder if this is actually a problem with your version of ipkg. Why does it have to extract all of the files before it copies them into place? It would be far easier to just extract them directly to their end locations. I'm not sure how the OZ ipkg handles this but it might be worth looking at.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Small Home Partitions + Large IPKs
« Reply #7 on: October 13, 2004, 08:50:19 am »
I ended up making the root fs 121Mb, removing the /home mount out of fstab - this creates /home on root.

I then made symlinks as follows to directories on the card...

/home/root/Documents -> /mnt/card/Documents
/home/root/kdepim -> /mnt/card/home/root/kdepim
/home/tmp -> /mnt/card/home/tmp

I left the bulk of the root home directory on so I could just use the automount feature in the startup scripts for the onboard dev image (as the SD card isn't mounted when this script runs) but using this the /home/tmp is now on my 512Mb SD card so no more worries about losing space - and I would rather 'wear' the SD card that the Z flash
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card