Modify

Opened 2 years ago

Last modified 2 years ago

#21728 new defect

opkg - out of memory on 32mb-systems / ar71xx / r48443

Reported by: bittorf@… Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

this makes opkg somehow useless.
why is that? the package is not very big
and it abort very early.

root@box:~ free
             total       used       free     shared    buffers     cached
Mem:         28320      20176       8144       1240        236       3964
-/+ buffers/cache:      15976      12344
Swap:            0          0          0
root@EG-labor-AP:~ opkg install hostip
Installing hostip (1.6.0-2) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/hostip_1.6.0-2_ar71xx.ipk.
Collected errors:
 * xsystem: wget: vfork: Out of memory.
 * opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/hostip_1.6.0-2_ar71xx.ipk, wget returned -1.
 * opkg_install_pkg: Failed to download hostip. Perhaps you need to run 'opkg update'?
 * opkg_install_cmd: Cannot install package hostip.

Attachments (0)

Change History (5)

comment:1 Changed 2 years ago by bittorf@…

for making it sure, it is also reproduceable on r48522

comment:2 Changed 2 years ago by ufo@…

i have similiar problems. the packages/packages directory is very big:
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/ -O - | wc
-> 2055

you can disable that line in /etc/opkg/... :-(

comment:3 Changed 2 years ago by bittorf@…

@ufo - this is IMHO not the culprit. 2mb is not much and we have a lot of free RAM. (as you can see >8mb with already downloaded lists aka 'opkg update')

comment:4 Changed 2 years ago by psyke83

I also have this problem with the TL-WR842ND v1 images for several months. Enabling disk swap works around the issue, but zram doesn't work (possibly related to #21705). I didn't investigate any further as these days I compile my own image with the required packages built-in.

comment:5 Changed 2 years ago by diizzyy@…

More than likely this is a result of the kernel getting larger and more memory hungry due to design choices and changes over time which isn't OpenWRT's fault per se. I think you have to accept the fact that Linux mainline isn't designed for very low memory devices by todays standards without doing major changes and given the manpower this isn't a viable solution. According to Wikidevi the platform itself is from 2011 getting a minor SoC refresh 2013 and even by then it's quite low in terms of hardware performance.

To summary:

  • Accept the fact that old/slow/low-end hardware cannot be supported forever
  1. Use an older kernel (older version of OpenWRT) that has lower memory footprint
  2. Get a newer router that has at least 64Mb of RAM or use swap as a workaround

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.