| 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" |