Tag Info

New answers tagged

0

#!/bin/bash ps -e -o pid,pmem | awk '{ if($1>100) s+=$2} END {print s}'


1

For visual monitoring of overall RAM usage, if you use Byobu, it will keep your memory usage in the lower right-hand corner of the terminal and will run while you are in any terminal session. As you can see from screenshot, my virtual machine has a 1h3m uptime, 0.00 load, has 2.8GHz (virtual) processor and 994MB (21%) of the RAM available on the system.


0

I cannot add a comment on the above answers because of my low reputation so I add here a new "answer" (which actually isn't). According to Devyn Collier Johnson we can use "du". It does not produce any result for me: du /dev/loop0 0 /dev/loop0 I still do not know why/where/how I am using almost all the space. I also tried to resize it. Since I do not ...


0

Written base on Ubuntu 12.04 I have the same problem and found out that's because of byobu, if I just run apt-get update not using byobu, there will be no check-apt process. Also, it relates to update-notifier package, when I removed those packages (update-notifer-common, update-notifier), using byobu and run apt-get update, it ran another command but quite ...


1

Use the ram for something else. Processes allocating memory or disk IO trying to allocate cache will push out idle pages to swap to make room. The swappiness variable just makes the system prefer to push applications out to favor using ram for the filesystem cache instead.


0

Why would you ever want to do that for? Anyway, if that's what you want, that's what you'll get: #include <stdio.h> #include <sys/sysinfo.h> fGetMyRAM() { FILE* fStream = popen( "head -n1 /proc/meminfo", "r" ); std::ostringstream output; int iBuffer = 128; while( !feof( fStream ) && !ferror( fStream )) { ...



Top 50 recent answers are included