From 31484b5d858fec75401580af53d225a7a706a113 Mon Sep 17 00:00:00 2001 From: Andrey Korolyov Date: Mon, 2 Sep 2013 18:14:20 +0400 Subject: [PATCH] added recommendations, too lazy to implement right now --- add-blocks.txt | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 add-blocks.txt diff --git a/add-blocks.txt b/add-blocks.txt new file mode 100644 index 0000000..3767b60 --- /dev/null +++ b/add-blocks.txt @@ -0,0 +1,34 @@ +please modify logic to add following: + +Reduce context switches: +1) +print libvirt 'capabilities' +select one of numa cells at random +check if hyperthreading present (optional) by + +if [ "$(lscpu | grep "Thread(s) per core:" | awk '{print $4}')" -eq 1 ] ; then IS_HYPERTHREADED=0; else IS_HYPERTHREADED=1; fi + +grab /proc/cpuinfo, select all cores belongs to selected cell and check if they have same 'core id' field and throw all duplicates +push vcpu topology as count of previous output + +2) check if /etc/default/grub and /proc/cmdline contains 'intel_idle.max_cstate=0 processor.max_cstate=0' (for grub config match against string with GRUB_CMDLINE_LINUX) +if nothing found, throw a warning + + +Reduce amount of wild IO: + +1) +add + + bandwidth in b/s + bandwidth in b/s + count + count + + +inside every block device section + +read value should be about 30M, write about 15M, read and write iops 20 and 10 correspondingly + +Enjoy fast and lovely environment. Please mind that those VMs will not start without mounted cgroups. +