Route cache is full

dqq

Active Member
Jan 30, 2020
34
1
28
54
Hi,

I have added 1000 OVSIntPort to my proxmox node.

After rebooting i get the following message:
Code:
 linux route cache is full consider increasing sysctl net.ipv[4|6].route.max_size
(image attached)

Since then I also have a problems connecting via ssh to my VMs from public IP (dnat set up in iptables)

I have tried setting up this value here, but got error:
Bash:
root@machine:~# sysctl -w net.ipv4.route.max_size=4147483647
sysctl: setting key "net.ipv4.route.max_size": Invalid argument
net.ipv4.route.max_size = 4147483647

root@machine:~# sysctl net.ipv4.route.max_size
net.ipv4.route.max_size = 2147483647


How can I adjust this setting correctly?
 

Attachments

  • 1234.png
    1234.png
    75.8 KB · Views: 9
Hi,

I'm just curious, is there a reason why you use OVS?
Code:
route/max_size - INTEGER
        Maximum number of routes allowed in the kernel.  Increase
        this when using large numbers of interfaces and/or routes.
        From linux kernel 3.6 onwards, this is deprecated for ipv4
        as route cache is no longer used.
Source Kernel Documentation/networking/ip-sysctl.txt
 
@wolfgang - yes, we do use it for multiple purposes, mainly for OVSIntPorts, that you don't have in standard Linux networking.

I dont's see how that snippet would help - Am i trying to set something wrong?
 
mainly for OVSIntPorts,
And what is the propose of an intiPort in your case?

I dont's see how that snippet would help - Am i trying to set something wrong?
I let you know you can't set it because it is deprecated.
The question is why you run out of routes?
Do you use openVswitch as a router?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!