Unlimit cfs hosts for startup/shutdown config (#1178)

We defer cfs cgroup bandwidth limiting until
CPULimitedHost.configDefault(), and we change
Mininet.stop() to call a new host.unlimit()
method if available.
This commit is contained in:
lantz
2023-04-28 18:48:35 -07:00
committed by GitHub
parent a978ce9484
commit 740acfb350
2 changed files with 26 additions and 9 deletions
+4
View File
@@ -572,6 +572,10 @@ class Mininet( object ):
info( controller.name + ' ' )
controller.stop()
info( '\n' )
# Unlimit cfs hosts to speed up shutdown
for h in self.hosts:
if hasattr( h, 'unlimit' ):
h.unlimit()
if self.terms:
info( '*** Stopping %i terms\n' % len( self.terms ) )
self.stopXterms()