public inbox for pve-user@lists.proxmox.com
 help / color / mirror / Atom feed
From: Marco Gaiarin <gaio@sv.lnf.it>
To: pve-user@pve.proxmox.com
Subject: [PVE-User] Bond and hardware parameters...
Date: Sat, 27 Mar 2021 19:08:58 +0100	[thread overview]
Message-ID: <20210327180858.GB42768@lilliput.linux.it> (raw)


I don't know if this can be considered a 'bug', or a 'feature request',
for now i make a note and hope in some feedback.


I need in a PVE server to have a bond interface but i need also to set
some hardware parameters, following the 'bufferbloat' principle, eg no
performance, full control. This bond have to manage some (slow) WAN
link, that have to be policed.

I've tried to setup some parameters, eg installed 'ethtool' and added
to slave bond interfaces:

 iface enp48s0 inet manual
	ethernet-autoneg on
	link-speed 100
	link-duplex full
	hardware-dma-ring-tx 64
	offload-tso off
	offload-gso off
	offload-gro off

 iface enp48s1 inet manual
	ethernet-autoneg on
	link-speed 100
	link-duplex full
	hardware-dma-ring-tx 64
	offload-tso off
	offload-gso off
	offload-gro off

 auto bond0
 iface bond0 inet manual
	slaves enp48s0 enp48s1
	bond_miimon 100
	bond_mode 802.3ad
	bond_xmit_hash_policy layer2+3
	bond-slaves enp48s0 enp48s1
	bond-downdelay 200
	bond-updelay 200

but found that parameters was not set. But if i fire up the interface
and then the bond by hand using ifenslave, the hardware parametrs seems
to be kept.


After fiddling a bit, i've found in /usr/share/doc/ifenslave/README.Debian.gz:

 Using ifup on a master interface will call ifup for all slaves that are
 flagged with allow-bondX. (bondX being replaced by the master interface
 name). This will allow for extra setup for special slave interfaces.

so seems that the correct syntiax is:

 iface enp48s0 inet manual
	ethernet-autoneg on
	link-speed 100
	link-duplex full
	hardware-dma-ring-tx 64
	offload-tso off
	offload-gso off
	offload-gro off
	allow-bond0

 iface enp48s1 inet manual
	ethernet-autoneg on
	link-speed 100
	link-duplex full
	hardware-dma-ring-tx 64
	offload-tso off
	offload-gso off
	offload-gro off
	allow-bond0

 auto bond0
 iface bond0 inet manual
	slaves enp48s0 enp48s1
	bond_miimon 100
	bond_mode 802.3ad
	bond_xmit_hash_policy layer2+3
	bond-slaves enp48s0 enp48s1
	bond-downdelay 200
	bond-updelay 200

I've tried in this way, and effectively hardware parameters are set
correctly, as expected.

Indeed, probably this will hit also MTU settings, but probably the MTU
setting in an LACP bond 'propagate' automaticaly to slaves, so i've
never noted that.


Say me if it is better to fire up a bug, to have PVE web interface to
automatically accomodate that. Thanks.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)




                 reply	other threads:[~2021-03-27 18:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210327180858.GB42768@lilliput.linux.it \
    --to=gaio@sv.lnf.it \
    --cc=pve-user@pve.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal