On 4/17/2017 7:11 AM, David Krantz wrote:
On Wed, Apr 12, 2017 at 3:44 PM, Richard Shetron <guest2@sgeinc.com> wrote:
some systems also support the sar command (system activity report). If you have it read the manpages to see all the options as there are many.
When looking for performance issues/problems that aren't real easy to find I like to just let 'vmstat 5' run in a window and take a look occasionally, particularly when things seem slow. I prefer the 5 second readings to see more about general trends.
Ok. Here are statistics from my case. I used top in this case (although with a custom view to show memory usage). As this is a small AWS machine there was only 1GB ram and no swap. I can't say that it all that much RAM used for each process, but the thread model with 13-14 python processes of the same size is relatively heavy if the mail lists are not high volume and a large number of mail lists.
But never mind, I upgraded the instance so now it works just fine. :-)
Tasks: 149 total, 1 running, 148 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.0/0.0 0[ ] KiB Mem : 1014376 total, 114212 free, 751932 used, 148232 buff/cache KiB Swap: 0 total, 0 free, 0 used. 195452 avail Mem
PR VIRT RES SHR %MEM SWAP DATA CODE USED S %CPU TIME+ COMMAND 20 243404 58824 2216 5.8 0 128164 2944 58824 S 0.0 0:34.40 python 20 164580 52316 2372 5.2 0 49340 2944 52316 S 0.0 0:11.68 python 20 163980 51672 2400 5.1 0 48740 2944 51672 S 0.0 0:11.55 python 20 163588 49428 528 4.9 0 48348 2944 49428 S 0.0 0:11.32 python 20 162624 49180 1268 4.8 0 47384 2944 49180 S 0.0 0:11.47 python 20 162456 49080 1304 4.8 0 47216 2944 49080 S 0.0 0:11.19 python 20 234588 48880 1356 4.8 0 119348 2944 48880 S 0.3 0:08.54 python 20 160444 47308 1508 4.7 0 45204 2944 47308 S 0.0 0:01.20 python 20 160460 47100 1156 4.6 0 45220 2944 47100 S 0.0 0:11.04 python 20 160464 47052 1232 4.6 0 45224 2944 47052 S 0.0 0:11.09 python 20 160468 46884 1072 4.6 0 45228 2944 46884 S 0.0 0:11.20 python 20 160496 46732 876 4.6 0 45256 2944 46732 S 0.0 0:11.37 python 20 161976 46640 860 4.6 0 45076 2944 46640 S 0.0 0:01.08 python
It looks like adding memory has helped.
At some point, you may just want to check and see what processes are running and what are automatically started. I've seen some odd things at times, like headless serves running an x-server and nothing using it.