MCPcopy Create free account
hub / github.com/mininet/mininet / __init__

Method __init__

mininet/node.py:688–697  ·  view source on GitHub ↗
( self, name, sched='cfs', **params )

Source from the content-addressed store, hash-verified

686 "CPU limited host"
687
688 def __init__( self, name, sched='cfs', **params ):
689 Host.__init__( self, name, **params )
690 # BL: Setting the correct period/quota is tricky, particularly
691 # for RT. RT allows very small quotas, but the overhead
692 # seems to be high. CFS has a mininimum quota of 1 ms, but
693 # still does better with larger period values.
694 self.period_us = params.get( 'period_us', 100000 )
695 self.sched = sched
696 self.cgroupsInited = False
697 self.cgroup, self.rtprio = None, None
698
699 def initCgroups( self ):
700 "Deferred cgroup initialization"

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
getMethod · 0.45

Tested by

no test coverage detected