StarlingX NFVI Orchestration
Go to file
SidneyAn 3d29430fa9 free memory and file handle when it is no longer in use
leaked_storage:
1. in function cpu_scale_down() and cpu_scale_up()
memory obtained from range_to_array() is done dynamically
using malloc().
it should be freed when it is no longer in use.
2. in function range_to_array() memory obtained
from malloc() do not free at lable 'error'

leaked_handle:
in function get_highest_online_cpu(), online_cpu(), offline_cpu()
function handle 'fd' do not close until the end of function.

test case:
1. one controller + one compute deploy success.
2. scaling instance's cpu up/down by nova for 200 times, with whom
"guest_scale_agent" and "guest_agent" is installed:
  With origin code:
    each time of cpu scale up/down, a new fd was created without
close. each time of cpu scale up, there were some bytes memory leak.
Though it can be detected after hundreds of times of scale up.
  With patch code:
    after 200 times of scale up and down, there is no fd or memory
 leak found

Steps to Reproduce:
1. make test images and flavor according to docs in
/guest-agent/guest-scale-agent-2.0/docs/README.txt
2. On controller, use nova command to scale cpu up/down
3. check release by cmd "ll /proc/<guest_scale_agent pid>/fd",
"ps aux |grep guest_scale_agent"

Closes-Bug: 1794898

Change-Id: I51674d5e3bf330441f473ebfe8fa2a6066a94dfa
Signed-off-by: SidneyAn <ran1.an@intel.com>
2018-11-15 13:40:50 +08:00
api-ref/source [Doc] openstackdocstheme starlingxdocs theme 2018-10-22 14:37:37 +00:00
doc [Doc] openstackdocstheme starlingxdocs theme 2018-10-22 14:37:37 +00:00
guest-agent free memory and file handle when it is no longer in use 2018-11-15 13:40:50 +08:00
guest-client Rename mwa-* subdirectories to match the git repo name 2018-07-03 16:19:19 -04:00
guest-comm StarlingX open source release updates 2018-05-31 07:36:51 -07:00
mtce-guest Decouple Guest-server/agent from stx-metal 2018-09-19 11:38:04 -04:00
nfv Do not apply NoExecute taint to AIO hosts when locked 2018-11-09 09:21:25 -06:00
nova-api-proxy Lock down flake8 version 2018-10-24 11:47:10 -05:00
releasenotes [Doc] openstackdocstheme starlingxdocs theme 2018-10-22 14:37:37 +00:00
.gitignore [Doc] OpenStack API Reference Guide 2018-09-25 14:01:33 -07:00
.gitreview Add .gitreview 2018-05-31 07:36:51 -07:00
.zuul.yaml [Doc] openstackdocstheme starlingxdocs theme 2018-10-22 14:37:37 +00:00
centos_guest_image_rt.inc Split image.inc across git repos 2018-08-17 16:07:03 +00:00
centos_guest_image.inc Split image.inc across git repos 2018-08-17 16:07:03 +00:00
centos_iso_image.inc Decouple Guest-server/agent from stx-metal 2018-09-19 11:38:04 -04:00
centos_pkg_dirs Decouple Guest-server/agent from stx-metal 2018-09-19 11:38:04 -04:00
centos_wheels.inc Add hooks for python wheel generation 2018-10-22 16:56:38 -04:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-05-31 07:36:51 -07:00
LICENSE StarlingX open source release updates 2018-05-31 07:36:51 -07:00
README.rst StarlingX open source release updates 2018-05-31 07:36:51 -07:00
requirements.txt Adding py27 for nfv 2018-07-10 10:18:28 -05:00
test-requirements.txt Adding py27 for nfv 2018-07-10 10:18:28 -05:00
tox.ini fix tox python3 overrides 2018-10-05 10:57:02 +00:00

stx-nfv

StarlingX NFVI Orchestration