From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 Message-ID: <4E6A038B.1010506@altlinux.ru> Date: Fri, 09 Sep 2011 16:16:11 +0400 From: Anton Gorlov User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: ALT Linux sysadmins' discussion References: <1315490304.2860.46.camel@ls10458674.office.privatconsult.ru> <4E68CC81.5090403@iop.kiev.ua> <201109091131.26102.a_s_y@sama.ru> In-Reply-To: <201109091131.26102.a_s_y@sama.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Sysadmins] =?koi8-r?b?7sUg09TB0tTVxdQgbGlidmlydGQ=?= X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux sysadmins' discussion List-Id: ALT Linux sysadmins' discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Sep 2011 12:16:15 -0000 Archived-At: List-Archive: 09.09.2011 11:31, Sergey пишет: > не обнаруживаются. С 2.6.32-ovz-el-alt27 тоже работает. Кстати, память виртуальные > сервера откусывают всю и сразу, или как-то можно сделать так, чтобы память > потреблялась по мере необходимости ? Смотрите в сторону baloon === Is dynamic memory management for guests supported? This is a broad topic covering a few areas. A. KVM only allocates memory as the guest tries to use it. Once it's allocated, KVM keeps it. Some guests (namely Microsoft guests) zero all memory at boot time. So they will use all memory. B. Certain guests (only Linux at the moment) have a balloon driver, so the host can have the guest allocate a certain amount of memory which the guest won't be able to use anymore and it can then be freed on the host. Ballooning is controlled in the host via the balloon monitor command. C. Some hosts (presently only RHEL5.4 / CentOS 5.4) have a feature called KSM (Kernel Sharedpage Merging), which collapses together identical pages; this requires kernel support on the host, as well as a kvm new enough to opt in to the behavior. As some guest platforms (most notably Windows) zero out free'd memory, such pages are trivially collapsed. The ksmctl command needs to be used to enable KSM; alternately, the ksmtuned service found in Fedora 12 can be run to dynamically adjust KSM's aggressiveness based on the amount of free memory available