Modify

Opened 2 years ago

Last modified 2 years ago

#21711 new defect

netifd out of memory

Reported by: facsa Owned by: developers
Priority: normal Milestone:
Component: base system Version: Chaos Calmer 15.05
Keywords: Cc:

Description

similar to #21674

Router: Linksys WRT1900ACv2
uname -a: Linux Router 3.18.23 #1 SMP Fri Jan 8 20:18:14 CET 2016 armv7l GNU/Linux

Problem: After an ISP connectivity loss sometimes netifd run out of memory. Cause wired interfaces (both wan and lan) a down state, wireless ones stay up. Another times router can reconnect to ISP.
Any solution?

Attachments (1)

_netifd.txt (217.8 KB) - added by facsa 2 years ago.

Download all attachments as: .zip

Change History (9)

Changed 2 years ago by facsa

comment:1 follow-up: Changed 2 years ago by jow

Use less ram? Do you run torrent clients or similar heavy appliances on the router? Did you disable memory overcommit? Whats the output of "ps w" and "free" during normal operation?

comment:2 in reply to: ↑ 1 Changed 2 years ago by facsa

Replying to jow:

Use less ram? Do you run torrent clients or similar heavy appliances on the router? Did you disable memory overcommit? Whats the output of "ps w" and "free" during normal operation?

In fact I use memory-intensive apps (transmission, flexget, minidlna, etc).
Usually the free memory is under 5% , however swap(1GB on an SSD) is almost untouched.

total used free shared buffers
Mem: 515600 491884 23716 12792 6176
-/+ buffers: 485708 29892
Swap: 1048572 19376 1029196

I don't know the state of the memory overcommit. How can I check this?
Is it able to resolve the problem if I disable this?

comment:3 Changed 2 years ago by jow

No, disabling it will make things worse. Swap is not always a solution as not everything can be swapped out. I fear this ticket is a wontfix, we cannot really "fix" OOM conditions.

comment:4 follow-up: Changed 2 years ago by bittorf@…

jow: is'nt it strange that there seems to be a lot of free swap? netifd is userland, so it should swapout without issues. we also have similar issues, but at the moment we think it is a zram-issue but maybe this is a bug in swap mips-related:

https://github.com/weimarnetz/weimarnetz/issues/251
(scroll down to the string "ein Segfault Problem").
(sorry - link is in german.)

comment:5 in reply to: ↑ 4 ; follow-up: Changed 2 years ago by facsa

Replying to bittorf@…:

jow: is'nt it strange that there seems to be a lot of free swap? netifd is userland, so it should swapout without issues. we also have similar issues, but at the moment we think it is a zram-issue but maybe this is a bug in swap mips-related:

https://github.com/weimarnetz/weimarnetz/issues/251
(scroll down to the string "ein Segfault Problem").
(sorry - link is in german.)

bittorf: I try to temporalily disable the swap. In this case no zram usage. If the problem disappear, the cause is somewhere in the swapping system. Am I right?

comment:6 in reply to: ↑ 5 Changed 2 years ago by bittorf@…

Replying to facsa:

bittorf: I try to temporalily disable the swap. In this case no zram usage. If the problem disappear, the cause is somewhere in the swapping system. Am I right?

yes.

comment:7 Changed 2 years ago by facsa

I've disabled the swap, but unfortunately I could reproduce the router hangup.
I unplugged the wan cable, router stayed alive. When I plugged the wan cable back, netifd produced the page allocation failure.
It seems to me a netifd problem.

comment:8 Changed 2 years ago by jow

It is not a netifd problem. Netifd just happens to trigger this because it wants to spawn a process on wan reconnect and that fails becuase the system is out of RAM.

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.