Set RT scheduling priority
( self )
| 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" |