termux / termux-app

Termux - a terminal emulator application for Android OS extendible by variety of packages.
https://f-droid.org/en/packages/com.termux
Other
36.94k stars 3.88k forks source link

[Bug]: why so high mem usage #4148

Closed fxmbsw7 closed 2 months ago

fxmbsw7 commented 2 months ago

Problem description

i start termux , and type ps auxww , then the termux emulator entry looks like this

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND u0_a425 17038 2.3 1.1 18833088 186260 ? R<l 1970 0:17 com.termux

thats 1.1 % of 14.9gb ram .. and the number looks rather way too high .. ?

plz tell me is this normal

thanks

Steps to reproduce the behavior.

open termux and enter ps auxww < enter >

What is the expected behavior?

less ram usage

System information

TomJo2000 commented 2 months ago

Let's firstly format that ps output more nicely.

USER    PID   %CPU %MEM VSZ      RSS    TTY STAT START TIME COMMAND
u0_a425 17038 2.3  1.1  18833088 186260 ?   R<l  1970  0:17 com.termux

Alright let's have a look here.

This is not a bug, this is Termux working as expected.

[^1]: 18833088KiB / 1024^2B = 17.9606323242GiB [^2]: 186260KiB / 1024B = 181.89453125MiB

fxmbsw7 commented 2 months ago

what does this mean

On Thu, Sep 12, 2024, 9:45 AM TomIO @.***> wrote:

Closed #4148 https://github.com/termux/termux-app/issues/4148 as not planned.

— Reply to this email directly, view it on GitHub https://github.com/termux/termux-app/issues/4148#event-14228155538, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJMLP3LQNTN7L63C6JXHKMTZWFBBZAVCNFSM6AAAAABOCOARNCVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUGIZDQMJVGU2TGOA . You are receiving this because you authored the thread.Message ID: @.***>

sylirre commented 2 months ago

Virtual memory, resident memory, memory overcommit and other Linux memory subsystem quirks are not a small topic which can be explained in a comment under GitHub issue ticket. Google it if you are really interested in this.

You already got an answer for original question: yes, the numbers you see are normal.