Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better default interface on Linux #19

Open
eklitzke opened this issue Nov 12, 2017 · 0 comments
Open

Better default interface on Linux #19

eklitzke opened this issue Nov 12, 2017 · 0 comments
Labels
wishlist Wishlist items

Comments

@eklitzke
Copy link
Contributor

Right now slurm will auto-detect an interface on Linux if there is a single non-loopback inteface. I propose a new heuristic for the case when there are multiple non-loopback interfaces up: slurm should automatically select the interface that has sent/received the most traffic. This information is available via /proc/net/dev, which slurm already has parsing code.

Rationale: many computers actually use a single network interface for all traffic. This isn't necessarily true in HA server environments, but it's probably true for most laptops/desktops and small server instances. The network interface the user cares about the most is probably that network interface. For instance, a common reason that there might be multiple up interfaces is that there are interfaces for VPN connections (e.g. tun0) or interfaces that route to virtual machines on the host (e.g. virbr0). The real physical interface will have at least as much traffic as the VPN interfaces. In most cases the physical interface will also have more data sent than a virtual bridging interface. There are some corner cases where this isn't true, but I think this heuristic will work most of the time.

@mattthias mattthias added the wishlist Wishlist items label Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wishlist Wishlist items
Projects
None yet
Development

No branches or pull requests

2 participants