Bug 1284473

Summary: RFE: [Director] [OOB] KSM Is not enabled by default on overcloud deployment
Product: Red Hat OpenStack Reporter: Udi Shkalim <ushkalim>
Component: rhosp-directorAssignee: Hugh Brock <hbrock>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Udi Shkalim <ushkalim>
Severity: high Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: jcoufal, mburns, pablo.iranzo, rhel-osp-director-maint
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-15 13:42:01 EST Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Udi Shkalim 2015-11-23 07:35:42 EST
Description of problem:
KSM is not enabled by default on overcloud nodes

Version-Release number of selected component (if applicable):
osp director 8

How reproducible:
100%

Steps to Reproduce:
On a deployed overcloud run the following commands 
1. cat /sys/kernel/mm/ksm/run
2. grep -H '' /sys/kernel/mm/ksm/pages_*
3. systemctl status ksm

Actual results:

# cat /sys/kernel/mm/ksm/run
0
# grep -H '' /sys/kernel/mm/ksm/pages_*
/sys/kernel/mm/ksm/pages_shared:0
/sys/kernel/mm/ksm/pages_sharing:0
/sys/kernel/mm/ksm/pages_to_scan:100
/sys/kernel/mm/ksm/pages_unshared:0
/sys/kernel/mm/ksm/pages_volatile:0
# systemctl status ksm
‚óŹ ksm.service - Kernel Samepage Merging
   Loaded: loaded (/usr/lib/systemd/system/ksm.service; enabled; vendor preset: enabled)
   Active: active (exited) since Fri 2015-11-20 12:43:50 EST; 2 days ago
 Main PID: 823 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/ksm.service



Expected results:

[root@overcloud-controller-2 keystone]# cat /sys/kernel/mm/ksm/run
1
[root@overcloud-controller-2 keystone]# grep -H '' /sys/kernel/mm/ksm/pages_*
/sys/kernel/mm/ksm/pages_shared:48911
/sys/kernel/mm/ksm/pages_sharing:90090
/sys/kernel/mm/ksm/pages_to_scan:100
/sys/kernel/mm/ksm/pages_unshared:123002
/sys/kernel/mm/ksm/pages_volatile:1035

non-zero values

Additional info:
Comment 2 Mike Burns 2016-04-07 16:57:01 EDT
This bug did not make the OSP 8.0 release.  It is being deferred to OSP 10.
Comment 3 Jaromir Coufal 2016-09-30 04:10:06 EDT
Why is this needed? What is the impact for a user?
Comment 4 Jaromir Coufal 2017-01-15 13:42:01 EST
Not enough info. Please re-open if still valid or needed.