Hi,
I've been observing some memory leak (slowly gets to ~30GB across 18
hours then dies to oomkiller, ~500kB/s growth), how can I debug it
furter ?
# birdc
BIRD 3.3.1 ready.
bird> show memory
BIRD memory usage
Effective Overhead
Routing tables: 6059.3 MB 564.4 MB
Route attributes: 9510.1 MB 565.8 MB
Protocols: 22.3 MB 82.9 kB
Current config: 60.8 kB 1232.0 B
Standby memory: 0.0 B 32.7 MB
Total: 15.2 GB 1163.0 MB
Active pages: 16.2 GB
Kept free pages: 32.7 MB
Cold free pages: 194.2 MB
Hot page cache depleted while in RCU: 66929
bird> show route count
2098594 of 2098594 routes for 1051498 networks in table master4
0 of 0 routes for 0 networks in table master6
it's relatively simple config with 2 peers like this:
protocol bgp ispX {
local as 12345;
graceful restart;
bfd;
allow as sets;
neighbor 1.2.3.4 as 65432;
ipv4 {
import table;
export table;
export filter bgp_ext_out;
import filter bgp_ext_in;
import keep filtered on;
};
# kernel and OSPF
};
protocol kernel kcore {
kernel table 1002;
learn all;
ipv4 {
export filter core_to_kernel;
import filter kernel_to_core;
};
};
protocol ospf core {
vrf "core";
ecmp;
tick 2;
ipv4 {
import keep filtered on;
import filter ospf_core_in;
export filter ospf_core_out;
};
area 0 {
interface "b-swcore.3000" {
type pointopoint;
};
interface "b-swcore.3011" {
type pointopoint;
};
interface "b-swcore.3012" {
type pointopoint;
};
interface "core" {
stub;
};
};
};
version from current Debian Testing
It only started happening once router was enabled (before it was peered
but did not push the routes to kernel table), tho it coincided with
upgrade from 3.1 to 3.3.1 as I hit different bug there .
I have also tried to disable "export/import table", "import keep
filtered on" and "allow as sets" just to narrow it down but appears
there is no change
Regards,
Mariusz
--
Mariusz Gronczewski (XANi) <[email protected]>
GnuPG: 0xEA8ACE64
https://devrandom.eu