What consumes memory in linux [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I use atop cmd to check memory usage.
on the screenshot use can I see I have 1gb total, and 300mb free.
how do I found out what consumes other ~700mb?
I tried to use atop cmd, but that doesn't give me much information.

a memory leak occurs when a process doesn't give memory back that it doesn't need anymore
so first run top and type > key to sort by memory utilization or virtual memory utilization
you should review how much swap you are using in /proc/meminfo then check the inactive(anon) if it has high value that is bigger than the swap memory then make your swap is greater than it
finally, run free -m to see the memory details
if you find cache is high run the following command
echo 3 > /proc/sys/vm/drop_caches; sync
then run free -m again to see the changes

I think glances utility is better suited for this purpose. It is more user friendly and provides various options for real time server stats. For more information about the utility, see this page.

Related

Reduce Chrome (Chromium) Memory Usage [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have Chromium running on an embedded linux ARM system. What would be the best way to reduce its memory usage? I have tried running it with the "--single-process" switch, but that did not help much.
Are there any other command line switches or tips to get chromium to use less memory?
Thank you!
Pass this flags in Arguments to reduce the chromium memory usage
--disable-gpu
You can also refer this link: https://peter.sh/experiments/chromium-command-line-switches/

Why doesn't have the swap memory 'shared', 'buff/cache' and 'available' values? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
As you can see in the picture why is the last three column is empty
It doesn't have buff/cache because that's (Block IOs) write/read cache which makes sense to have in RAM because RAM is much faster than a block device but your swap is stored on a block device, not RAM, and then you might as well read or write the data to it's actual location.
Available = free + unneeded cache and since cache doesn't exist at all in swap, available also doesn't.

Monitoring /sys/block/*/device/ioerr_cnt, what are typical error rates? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 4 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I am attempting to monitor /sys/block/*/device/ioerr_cnt for disks that are about to fail. I am seeing healthy disks reporting some errors, as well.
What are typical thresholds to distinguish between disk drives operating normally, and those about to fail? Are there best practices in this area?
Here's a good discussion on ioerr_cnt
It's not a good indicator of drive failure since it's really an indicator of how the drive is responding to commands, not how the actual drive hardware is doing. SMART capable drives, for example, remap bad blocks internally and this may not show up in ioerr_cnt.
Your best bet would be to query the drive (if it is SMART capable), since it keeps track of actual error rates and remapped blocks.

Cannot allocate memory [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I'm using a virtual machine to do the work.
I given the volume capacity to be 32MB. According to "cat /proc/meminfo", i have approximately of 1.4GB for the memory available. It is more than enough to be mounted.
However, whenever it mounted, it will automatically unmounted as it cannot allocate memory (as seen on below pic). I tried to adjust the heap size but the result is still the same.
Please take a look at the pic
I solved the problem. Assign more memory to the virtual machine even though it is already more than sufficient to hold the volume capacity

SSH How to scrutinise what a PID is doing? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have a rogue Apache process running on a Centos 6 Linux server, which is running up to 55% CPU and wondered how I can scrutinise exactly what function(s) it is performing? From the 'top' command I have its process ID, but how can I drill in to what it's up to?
Thank you
If you really want to see what it's doing, get familiar with the strace command. It will show you the system calls your process is making, but I imagine it would be a terrible tool for finding out performance issues. For that, take a look at something like gprof.

Resources