Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 604F011DD2 for ; Sun, 27 Apr 2014 07:48:53 +0000 (UTC) Received: (qmail 19831 invoked by uid 500); 27 Apr 2014 07:48:52 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 19259 invoked by uid 500); 27 Apr 2014 07:48:42 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 19247 invoked by uid 99); 27 Apr 2014 07:48:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Apr 2014 07:48:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of laszlo.hornyak@gmail.com designates 209.85.192.47 as permitted sender) Received: from [209.85.192.47] (HELO mail-qg0-f47.google.com) (209.85.192.47) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Apr 2014 07:48:35 +0000 Received: by mail-qg0-f47.google.com with SMTP id e89so5798946qgf.34 for ; Sun, 27 Apr 2014 00:48:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=bXUrq6Fg8ZmBm27txywh7JIJWzEm7JlDEUPJgLp3Uw4=; b=VzxyKFtvamSPtcpXOa/cytXJCgLln6tA0Dti4Xx25qi44xNx0xw+PnDCJZKavxuFuZ 7JqyZgGd8i7FLOB/7LAtpyxs1g2+CvNBb7mWznRfIdoAPEjl6bJZm8LZs4WHQGEzyuhG i75N37jZ0rRf4/dsUL19C1sdboWADhe0+0+tbNL+D+Spb1BMWTt/VmHUK474FlIa1X9C 4wixgiqp7HtHB0Q3C4y9sL4QeY3y0b3IVvHuxgfYJCte/s1CGeBawMKRQPPaI96szNGb o4IwzE9ybn9kOWXy1R6VvbGmR94cIpKRaEZbde+Mu603hYJltXh90F5YpZcAXZFYPvBX X8yQ== MIME-Version: 1.0 X-Received: by 10.140.92.99 with SMTP id a90mr22983885qge.34.1398584892627; Sun, 27 Apr 2014 00:48:12 -0700 (PDT) Received: by 10.140.91.68 with HTTP; Sun, 27 Apr 2014 00:48:12 -0700 (PDT) Date: Sun, 27 Apr 2014 09:48:12 +0200 Message-ID: Subject: [PROPOSAL] KSM support for KVM hosts From: Laszlo Hornyak To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=001a113abfd8b6a42b04f8016b22 X-Virus-Checked: Checked by ClamAV on apache.org --001a113abfd8b6a42b04f8016b22 Content-Type: text/plain; charset=UTF-8 Hi All, Currently Cloudstack does not manage the Linux Kernel SamePage Merger [1]. A KSM support would allow the operator of the cloud to gain high VM densities in the cloudstack environment by merging the redundant memory pages. 1. Add new configuration setting for KSM feature - Ignore: Instructs agent to ignore KSM setting, this allows the cloud operator to manage KSM and good for backward compatibility - On: Instructs agents to turn on KSM without further dealing with it - Off: Instructs agents to turn off KSM - Dynamic: Instructs the agent to track KSM activity periodically, turn on or off if needed and fine-tune runtime parameters based on its performance. 2. Build decision logic into cloudstack agent: - Only enable KSM if running on Linux and KSM is built into kernel - Dynamic KSM configuration decision logic: - Configure and tune KSM based on number of VM's, their operating systems, the available and free processors and memory of the host. - The configuration and status of ksm needs to be checked periodically. In comparison to ksmtuned, the agent logic will build on information specific to cloud computing - build on expectations based on the OS/template of the VM - scale dynamically with the VM loads - activate on VM migrations/start/stop - respect CPU over-allocation, run ksm only when low CPU-load [1] https://www.kernel.org/doc/Documentation/vm/ksm.txt -- EOF --001a113abfd8b6a42b04f8016b22--