pussuw commented on PR #2159: URL: https://github.com/apache/nuttx-apps/pull/2159#issuecomment-1780575392
> @pussuw > > I noticed that memory leaks happen when executing the hello app with rv-virt:ksmp64. > > ``` > /home/ishikawa/opensource/QEMU/qemu-7.2.4/build/qemu-system-riscv64 -semihosting -nographic -cpu rv64 -smp 8 -M virt,aclint=on -bios none -kernel nuttx > > NuttShell (NSH) NuttX-12.0.0 > nsh> uname -a > NuttX 12.0.0 37729540c0 Oct 26 2023 09:01:04 risc-v rv-virt > nsh> ps > PID GROUP CPU PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND > 0 0 0 0 FIFO Kthread N-- Assigned 0000000000000000 003056 001680 54.9% CPU0 IDLE > 1 1 1 0 FIFO Kthread N-- Running 0000000000000000 003056 001136 37.1% CPU1 IDLE > 2 2 2 0 FIFO Kthread N-- Running 0000000000000000 003056 001136 37.1% CPU2 IDLE > 3 3 3 0 FIFO Kthread N-- Running 0000000000000000 003056 001136 37.1% CPU3 IDLE > 4 4 --- 100 RR Kthread --- Waiting Semaphore 0000000000000000 001968 000704 35.7% lpwork 0x802057d0 0x802057f8 > 5 5 0 100 RR Task --- Running 0000000000000000 003008 001304 43.3% /system/bin/init > nsh> free > total used free largest nused nfree > Kmem: 2053120 17632 2035488 2034656 56 3 > Page: 4194304 602112 3592192 3592192 > nsh> /system/bin/hello > Hello, World!! > nsh> ps > PID GROUP CPU PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND > 0 0 0 0 FIFO Kthread N-- Assigned 0000000000000000 003056 001680 54.9% CPU0 IDLE > 1 1 1 0 FIFO Kthread N-- Running 0000000000000000 003056 001136 37.1% CPU1 IDLE > 2 2 2 0 FIFO Kthread N-- Running 0000000000000000 003056 001136 37.1% CPU2 IDLE > 3 3 3 0 FIFO Kthread N-- Running 0000000000000000 003056 001136 37.1% CPU3 IDLE > 4 4 --- 100 RR Kthread --- Waiting Semaphore 0000000000000000 001968 000704 35.7% lpwork 0x802057d0 0x802057f8 > 5 5 0 100 RR Task --- Running 0000000000000000 003008 001304 43.3% /system/bin/init > nsh> free > total used free largest nused nfree > Kmem: 2053120 21216 2031904 2031568 59 4 > Page: 4194304 1159168 3035136 3035136 > nsh> /system/bin/hello > Hello, World!! > nsh> ps > PID GROUP CPU PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK USED FILLED COMMAND > 0 0 0 0 FIFO Kthread N-- Assigned 0000000000000000 003056 001680 54.9% CPU0 IDLE > 1 1 1 0 FIFO Kthread N-- Running 0000000000000000 003056 001136 37.1% CPU1 IDLE > 2 2 2 0 FIFO Kthread N-- Running 0000000000000000 003056 001136 37.1% CPU2 IDLE > 3 3 3 0 FIFO Kthread N-- Running 0000000000000000 003056 001136 37.1% CPU3 IDLE > 4 4 --- 100 RR Kthread --- Waiting Semaphore 0000000000000000 001968 000704 35.7% lpwork 0x802057d0 0x802057f8 > 5 5 0 100 RR Task --- Running 0000000000000000 003008 001304 43.3% /system/bin/init > nsh> free > total used free largest nused nfree > Kmem: 2053120 24672 2028448 2028112 61 4 > Page: 4194304 1159168 3035136 2478080 > ``` > > The same leaks also happen with sabre-6quad:knsh_smp. @masayuki2009 Thanks for the info, let me take a look at the regression. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
