Skip to content

Reduce memory footprint #54

@rgaudin

Description

@rgaudin

Based on #45, we target the following devices:

  • Pi 3A+ (512MB)
  • Pi 3B (1GB)
  • Pi 3B+ (1GB)
  • Pi 4B (1GB, 2GB, 4GB, 8GB)
  • Pi 400 (4GB)
  • Pi Zero 2W (512MB)

Of this list, 2 devices have 512MB RAM: Pi 3A+ (arguably old) and Zero 2W which is a recent device that respond to specific use cases.

An off the shelf base-image currently leaves only 128MB free RAM for all applications. That's not enough to support our baseline of tools (captive-portal, home, metrics) and leave enough for content apps. Reminder: we're using Docker so a lot of stuff are duplicated.

A Quick look at htop shows a great deal of RAM is used by thttpd so maybe that's the main culprit here; although that's strange since its job is so limited. Given it's only used in the base-image to serve as a demo, we can't really count it as base-image usage.

More investigation is needed with actual data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions