[so2] [Tema 0] kmemleak

Daniel Baluta daniel.baluta at gmail.com
Sun Mar 15 18:03:14 EET 2020


On Sun, Mar 15, 2020 at 2:56 AM Aida-Ștefania MANOLE (87667) via so2
<so2 at cursuri.cs.pub.ro> wrote:
>
> Buna,
>
> Voiam sa vad daca am memory leaks in cadrul temei asa ca am activat suportul pentru kmemleak.
> Initial era dezactivat la boot pentru ca DEBUG_KMEMLEAK_EARLY_LOG_SIZE era setat la o valoare prea mica.
> Am crescut valoarea si acum pare ca se agata la boot masina. M-am blocat la acest pas.

Buna,

Cred ca ar trebui sa-i zici lui qemu sa aloce mai mult RAM pentru masina Guest.
La mine daca pun 1G merge. In mod implicit sunt 128MB de RAM.

daniel at firefly:~/w/repos/linux-kernel-labs/tools/labs$ git diff
diff --git a/tools/labs/qemu/Makefile b/tools/labs/qemu/Makefile
index 8baafa2ac11c..a307a2311f2e 100644
--- a/tools/labs/qemu/Makefile
+++ b/tools/labs/qemu/Makefile
@@ -15,7 +15,7 @@ YOCTO_IMAGE = core-image-minimal-qemu$(ARCH).ext4
 #YOCTO_IMAGE = core-image-sato-qemu$(ARCH).ext4
 #YOCTO_IMAGE = core-image-sato-sdk-qemu$(ARCH).ext4

-QEMU_OPTS = -kernel $(ZIMAGE) \
+QEMU_OPTS = -kernel $(ZIMAGE) -m 1G \
        -device virtio-serial \
        -chardev pty,id=virtiocon0 -device virtconsole,chardev=virtiocon0 \
        -serial pipe:pipe1 -serial pipe:pipe2 \


More information about the so2 mailing list