From: nicolas prochazka Subject: Re: Remove qemu_alloc_physram() Date: Wed, 27 May 2009 15:40:11 +0200 Message-ID: <2803e73b0905270640n56d9bfa3x15c0ecabd0b4676f@mail.gmail.com> References: <2803e73b0905270308l70cf562jaca72bf67d1aafff@mail.gmail.com> <4A1D3711.2070603@redhat.com> <2803e73b0905270630t5579f141lcb1013ae9aa146a9@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mail-bw0-f222.google.com ([209.85.218.222]:54903 "EHLO mail-bw0-f222.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729AbZE0NkM convert rfc822-to-8bit (ORCPT ); Wed, 27 May 2009 09:40:12 -0400 Received: by bwz22 with SMTP id 22so4622272bwz.37 for ; Wed, 27 May 2009 06:40:11 -0700 (PDT) In-Reply-To: <2803e73b0905270630t5579f141lcb1013ae9aa146a9@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: without -mem-prealloc HugePages_Total: 2560 HugePages_Free: 2296 HugePages_Rsvd: 0 so after minimum test, i can say that's your patch seems to be correct this problem. Thanks. Nicolas 2009/5/27 nicolas prochazka : > hello again, > after applying patch : > > HugePages_Total: =A02560 > HugePages_Free: =A0 2558 > HugePages_Rsvd: =A0 =A0262 > HugePages_Surp: =A0 =A0 =A00 > Hugepagesize: =A0 =A0 2048 kB > > with a running command : > /usr/local/bin/qemu =A0-localtime -usb -usbdevice tablet -net > vde,vlan=3D0,sock=3D/tmpsafe/switch -vnc 10.98.98.1:111 -monitor > tcp:127.0.0.1:10111,server,nowait,nodelay -vga std -m 512 -net > nic,vlan=3D0,macaddr=3Dac:de:48:44:d3:d7,model=3De1000 -drive > file=3Dwindowsxp,boot=3Don,snapshot=3Don -mem-prealloc -mempath /huge= pages > -no-kvm-irqchip -startdate now > > only 2 pages are used ? =A0qemu runs for 30 minutes. > > 2009/5/27 Avi Kivity : >> nicolas prochazka wrote: >>> >>> Hello, >>> Since this patch : >>> >>> http://git.kernel.org/?p=3Dvirt/kvm/qemu-kvm.git;a=3Dcommit;h=3D0e8= d16ba06486ebf79f131f28121774715975248 >>> Remove qemu_alloc_physram() >>> Obsolete. >>> >>> function alloc_mem_area(memory, &map_len, mem_path); =A0is never ca= lling in >>> code, >>> and it seems that's =A0-mem-path ( or -mempath) /hugepages =A0does = not >>> work for me now. >>> before this patch, i can see for example in /proc/meminfo : >>> HugePages_Total: =A02560 >>> HugePages_Free: =A0 2301 >>> when i start one kvm/qemu >>> >>> now , HupePages_Free never down , hugepages_free =3D hugepages_tota= l. >>> >>> >> >> Please test the attached patch. >> >> -- >> error compiling committee.c: too many arguments to function >> >> >