Laszlo Hornyak has posted comments on this change.
Change subject: start ksm and ksmtuned when vdsm starts
......................................................................
Patch Set 1: (2 inline comments)
....................................................
File vdsm/ksm.py
Line 95:
Line 96: def ksmtuned_running():
Line 97: try:
Line 98: logging.debug('checking ksmtuned')
Line 99: ret = utils.execCmd([constants.EXT_SERVICE, 'ksmtuned',
'status'], sudo=True)[1][0]
agreed. waiting for Dan to decide what solution he wants, if we agree in the
way this bug should be resolved, then I come back here and fix this.
Line 100: logging.info('ksmtuned: %s', ret)
Line 101: return ret != "ksmtuned is stopped"
Line 102: except:
Line 103: return False
Line 108: return npages
Line 109: except:
Line 110: return 0
Line 111:
Line 112: def ksm_start():
ok!
Line 113: if not ksmtuned_running():
Line 114: utils.execCmd([constants.EXT_SERVICE, 'ksmtuned', 'start'],
sudo=True)
Line 115: if not ksm_running():
Line 116: utils.execCmd([constants.EXT_SERVICE, 'ksm', 'start'],
sudo=True)
--
To view, visit http://gerrit.ovirt.org/8357
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia50087aae112069b2a427fca12168aff975b443e
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Laszlo Hornyak <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Laszlo Hornyak <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches