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

Method chrt

mininet/node.py:778–786  ·  view source on GitHub ↗

Set RT scheduling priority

( self )

Source from the content-addressed store, hash-verified

776 cls._rtGroupSched = True
777
778 def chrt( self ):
779 "Set RT scheduling priority"
780 quietRun( 'chrt -p %s %s' % ( self.rtprio, self.pid ) )
781 result = quietRun( 'chrt -p %s' % self.pid )
782 firstline = result.split( '\n' )[ 0 ]
783 lastword = firstline.split( ' ' )[ -1 ]
784 if lastword != 'SCHED_RR':
785 error( '*** error: could not assign SCHED_RR to %s\n' % self.name )
786 return lastword
787
788 def rtInfo( self, f ):
789 "Internal method: return parameters for RT bandwidth"

Callers 1

setCPUFracMethod · 0.95

Calls 1

quietRunFunction · 0.90

Tested by

no test coverage detected