From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: BUG: using smp_processor_id() in preemptible Date: Mon, 29 Jun 2009 13:25:45 +0300 Message-ID: <4A4896A9.5050407@redhat.com> References: <1245852919.21314.56.camel@johannes.local> <4A477A14.8070801@redhat.com> <1246264335.7775.5.camel@johannes.local> <4A488498.1030102@redhat.com> <1246269295.7775.28.camel@johannes.local> <1246269440.7775.29.camel@johannes.local> <4A4890AE.5020104@redhat.com> <1246269961.7775.36.camel@johannes.local> <4A48948B.4040700@redhat.com> <1246270732.7775.37.camel@johannes.local> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Johannes Berg Return-path: Received: from mx2.redhat.com ([66.187.237.31]:34638 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754693AbZF2KYP (ORCPT ); Mon, 29 Jun 2009 06:24:15 -0400 In-Reply-To: <1246270732.7775.37.camel@johannes.local> Sender: kvm-owner@vger.kernel.org List-ID: On 06/29/2009 01:18 PM, Johannes Berg wrote: >>> If I boot with -m 512 I get this: >>> root@(none):~# free >>> total used free shared buffers cached >>> Mem: 378608 25196 353412 0 1012 8692 >>> -/+ buffers/cache: 15492 363116 >>> Swap: 0 0 0 >>> >>> >>> so something is definitely eating a lot of memory (missing about 142M). >>> Same guest kernel/fs in qemu gets: >>> freeroot@(none):~# free >>> total used free shared buffers cached >>> Mem: 407080 23236 383844 0 1056 8692 >>> -/+ buffers/cache: 13488 393592 >>> Swap: 0 0 0 >>> >>> so it's missing about 114M. >>> >>> >> I get 500MB with 2.6.31-rc1+. >> > > So even my qemu is missing a lot more than you are. But I guess my > kernel might also be a lot larger. > Aha. Maybe paravirt patching allocates a lot of memory? Otherwise there should be no difference between qemu-kvm and qemu. Do you really have a 100MB kernel? >> What does dmesg say about the e820 map? >> > > [ 0.000000] BIOS-provided physical RAM map: > [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009f000 (usable) > [ 0.000000] BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved) > [ 0.000000] BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved) > [ 0.000000] BIOS-e820: 0000000000100000 - 000000000fff0000 (usable) > [ 0.000000] BIOS-e820: 000000000fff0000 - 0000000010000000 (ACPI data) > [ 0.000000] BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved) > That's only 256MB (0xfff0000). -- error compiling committee.c: too many arguments to function