From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 10157 invoked from network); 7 Jan 2024 14:24:59 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 7 Jan 2024 14:24:59 -0000 Received: from mail.posixcafe.org ([45.76.19.58]) by 9front; Sun Jan 7 09:23:42 -0500 2024 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posixcafe.org; s=20200506; t=1704637422; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cbj9VYA91QawQfNvTETEM/fJX04r1Pl/vD3DPMMvhq4=; b=JrZjHmIW6+/s2oPXUXA8vbmznxa+d9qX1NcvMGaFpEhWVtrci4pijfRlZVlifiK93YS16E CW4LKUFzKzrYDfLI8QTgEC1XUWPdZmVbszONxR3RCFXdeYhc2FhTWGsx7+VQBPGGfrY6gO 9OeyoyimYPkdtgT2Yb3GvgfjgYoJsT4= Received: from [192.168.168.200] ( [207.45.82.38]) by mail.posixcafe.org (OpenSMTPD) with ESMTPSA id 2e5e1810 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <9front@9front.org>; Sun, 7 Jan 2024 08:23:42 -0600 (CST) Message-ID: <6479cfe7-95ee-4f75-ba98-a3ff48879b61@posixcafe.org> Date: Sun, 7 Jan 2024 08:23:40 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: 9front@9front.org References: <515bcf9c-352e-4f2b-b0d9-86c26171fa8f@cosarara.me> From: Jacob Moody In-Reply-To: <515bcf9c-352e-4f2b-b0d9-86c26171fa8f@cosarara.me> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: realtime-java interface storage Subject: Re: [9front] qemu kernel for arm64, detected memory Reply-To: 9front@9front.org Precedence: bulk On 1/7/24 06:07, cosarara wrote: > Running 9front on qemu-system-aarch64 (trying to follow the directions in commit dd79854239a8c): > > qemu-system-aarch64 -M virt-2.12,gic-version=3 \ >                     -cpu cortex-a57 -m 4G -smp 4 \ >                     -bios u-boot/u-boot.bin \ >                     -drive file=9front-10277.arm64.qcow2,if=none,id=disk \ >                     -device virtio-blk-pci-non-transitional,drive=disk \ >                     -nographic > > u-boot correctly reports: > >>  DRAM:  4 GiB > > But then plan9: > >>  ## Transferring control to Plan 9 (at address 40100000) ... >>  127 holes free >>  0x404c4000 0x429bd000 38768640 >>  38768640 bytes free >> >>  Plan 9 >>  timer frequency 62500000 Hz >>  cpu0: 1000MHz QEMU >>  127M memory: 41M kernel data, 86M user, 455M swap >>  [...] >>  cirno# cat /dev/swap >>  129220608 memory >>  4096 pagesize >>  9465 kernel >>  2993/22083 user >>  0/94644 swap >>  1556/22083 reclaim >>  1816176/1966560/36545820 kernel malloc >>  0/0/36545820 kernel draw >>  768/65568/16777216 kernel secret > > So it seems it does not detect the full amount. I don't know if this is a know bug in the kernel. > > > This is a known issue. You can set *maxmem in plan9.ini to get it to use more memory. Thanks, moody