<commit_before># -------------------------------------------------------------------------- #
# Copyright 2015, Universitat Politecnica de Valencia                        #
#                                                                            #
# Licensed under the Apache License, Version 2.0 (the "License"); you may    #
# not use this file except in compliance with the License. You may obtain    #
# a copy of the License at                                                   #
#                                                                            #
# http://www.apache.org/licenses/LICENSE-2.0                                 #
#                                                                            #
# Unless required by applicable law or agreed to in writing, software        #
# distributed under the License is distributed on an "AS IS" BASIS,          #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
# See the License for the specific language governing permissions and        #
# limitations under the License.                                             #
#--------------------------------------------------------------------------- #

[cvem]

#DATA_FILE = /etc/cvem/cvem.dat

# Amount of free Memory reserved by the SO (aprox.) 
SYS_MEM_OFFSET = 80000

# Minimum amount of memory to assign to a VM.
MEM_MIN = 262144

# Difference between the amount of the current memory of the VM and the new one to be set to perform the operation (in KB)     
MEM_DIFF_TO_CHANGE = 1024

# The Memory Overprovisioning Percentage
MEM_OVER = 20.0
# The Memory Overprovisioning Percentage margin
MEM_MARGIN = 5

# Cooldown Time (in secs)
COOLDOWN = 10.0
# Sleep time between each monitor loop (in secs)
DELAY = 5

# Cooldown migration time (in secs)
MIGRATION_COOLDOWN = 45

# Magen de memoria (en KB) que le damos al host para mirar las VMs
HOST_MEM_MARGIN = 102400

# Maximum number of threads to launch in the monitor
MAX_THREADS = 1

# To filter the VMs by user
#USER_FILTER = 12
# Flag to make just a test without modify any VM
ONLY_TEST = False

# Minimum amount of free memory to activate the exponential backoff.
MIN_FREE_MEMORY = 20000

# Command to change the memory of a VM, parameters:
#  {hostname}: hostname where the VM is allocated
#  {vmid}: ID of the VM
#  {newmemory}: Amount of memory to assign to the VM
CHANGE_MEMORY_CMD = virsh -c 'qemu+ssh://{hostname}/system' setmem one-{vmid} {newmemory}

# Class child of cvem Monitor to be executed
MONITOR_CLASS = connectors.one.OpenNebula.MonitorONE<commit_msg>Code improvements in cvem<commit_after># -------------------------------------------------------------------------- #
# Copyright 2015, Universitat Politecnica de Valencia                        #
#                                                                            #
# Licensed under the Apache License, Version 2.0 (the "License"); you may    #
# not use this file except in compliance with the License. You may obtain    #
# a copy of the License at                                                   #
#                                                                            #
# http://www.apache.org/licenses/LICENSE-2.0                                 #
#                                                                            #
# Unless required by applicable law or agreed to in writing, software        #
# distributed under the License is distributed on an "AS IS" BASIS,          #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
# See the License for the specific language governing permissions and        #
# limitations under the License.                                             #
#--------------------------------------------------------------------------- #

[cvem]

#DATA_FILE = /etc/cvem/cvem.dat

# Amount of free Memory reserved by the SO (aprox.) 
SYS_MEM_OFFSET = 80000

# Minimum amount of memory to assign to a VM.
MEM_MIN = 262144

# Difference between the amount of the current memory of the VM and the new one to be set to perform the operation (in KB)     
MEM_DIFF_TO_CHANGE = 1024

# The Memory Overprovisioning Percentage
MEM_OVER = 20.0
# The Memory Overprovisioning Percentage margin
MEM_MARGIN = 5

# Cooldown Time (in secs)
COOLDOWN = 10.0
# Sleep time between each monitor loop (in secs)
DELAY = 5

# Cooldown migration time (in secs)
MIGRATION_COOLDOWN = 45

# Magen de memoria (en KB) que le damos al host para mirar las VMs
HOST_MEM_MARGIN = 102400

# Maximum number of threads to launch in the monitor
MAX_THREADS = 1

# To filter the VMs by user
#USER_FILTER = 12
# Flag to make just a test without modify any VM
ONLY_TEST = False

# Minimum amount of free memory to activate the exponential backoff.
MIN_FREE_MEMORY = 20000

# Command to change the memory of a VM, parameters:
#  {hostname}: hostname where the VM is allocated
#  {vmid}: ID of the VM
#  {newmemory}: Amount of memory to assign to the VM
CHANGE_MEMORY_CMD = virsh -c 'qemu+ssh://{hostname}/system' setmem one-{vmid} {newmemory}
# Another option
#CHANGE_MEMORY_CMD = ssh {hostname} "virsh setmem one-{vmid} {newmemory}"

# Class child of cvem Monitor to be executed
MONITOR_CLASS = connectors.one.OpenNebula.MonitorONE
{'fraction_non_alphanumeric': 0.11473222793977511, 'fraction_numerical': 0.01791499904707452, 'mean_word_length': 1.7476439790575917, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '574421', 'n_tokens_mistral': 1399, 'n_tokens_neox': 1292, 'n_words': 567}