LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-13-2016, 06:52 PM   #1
guttersnipe
LQ Newbie
 
Registered: Jun 2007
Distribution: Gentoo, Ubuntu
Posts: 25

Rep: Reputation: 0
505M RAM used by NetworkManager?!


Hey Linux Hackers,

Can someone help me understand why NetworkManager is using 505M of RAM?

I'm running a simple RHEL7 web server on a small VPS with 256M RAM and a 1G swap file. My #1 most RAM-consuming process is NetworkManager.

Code:
[root@localhost ~]# ps aux | grep -i networkmanager
root       345  0.6 13.3 516673 32277 ?        Dsl  Jan11 1622:13 /usr/sbin/NetworkManager --no-daemon
More info:

Code:
[root@localhost ~]$ uname -a
Linux localhost 3.10.0-123.4.2.el7.x86_64 #1 SMP Mon Jun 30 16:09:14 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
TIA!

Last edited by guttersnipe; 06-13-2016 at 07:02 PM. Reason: math was wrong
 
Old 06-13-2016, 08:05 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Perhaps you should also get the header line.
 
Old 06-14-2016, 12:07 PM   #3
guttersnipe
LQ Newbie
 
Registered: Jun 2007
Distribution: Gentoo, Ubuntu
Posts: 25

Original Poster
Rep: Reputation: 0
The box became unresponsive, so I had to reboot it.

Quote:
Perhaps you should also get the header line.
Sorry, here's the header too (after reboot)

Code:
[root@localhost ~]$ ps aux | head -n1
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
[root@localhost ~]$ ps aux | grep -i networkmanager
root       477  0.1  3.4 447909  8237 ?        Ssl  12:51   0:00 /usr/sbin/NetworkManager --no-daemon
So, after reboot, VSZ = vsize (in KiB) = (447909 KiB) / 1024 = 437 MiB.

And free

Code:
[root@localhost ~]# free -m
              total        used        free      shared  buff/cache   available
Mem:            237          62          15           4         159         140
Swap:          1023           0        1023
^ That looks good. Of course, following the reboot, the box is running much smoother now, but--before the reboot--it was heavily swapping. I'm not worried about buffers/cache, but when the box was swapping and performance was horrible, NetworkManager was the process holding the most RAM on this machine.

Is this a known issue with NetworkManager on Cent7? This is a headless, CLI-only server with only 256M of RAM and no GUI. NetworkManager is now the default networking daemon for server installs of CentOS 7, and I'm just trying to understand why it's eating all my RAM. I didn't have this issue with Cent 6.

Last edited by guttersnipe; 06-14-2016 at 12:15 PM. Reason: updating free post-swapon
 
Old 06-14-2016, 12:10 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
NetworkManager is pretty pointless in a server, isn't it?
 
Old 06-14-2016, 07:38 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
The request for header was for your edification, not mine. Vsize is no indication of RAM usage - that is what RSS is included in the display for. Go get ps_mem for a (much) better indication of memory usage - may be in the repos, else just go download it, it's a python script.
Quote:
Originally Posted by Emerson View Post
NetworkManager is pretty pointless in a server, isn't it?
Probably - is systemd-networkd available in CentOS ?. I use that on my Arch Pi3 gateway/firewall.
 
Old 06-15-2016, 06:26 AM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
256 MB of RAM. It is asking for nice lean OS. Having Linux OS using less than 40 MB fully loaded is certainly possible ... perhaps not with RHEL.
 
  


Reply

Tags
centos7, memory, network manager, ram, rhel7



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding out what RAM chip needed to upgrade from 2GB to 4GB RAM. farmerluk Linux - Hardware 4 11-17-2011 12:02 PM
Why size of swap space is 2x of RAM??? Why not 1.5x of RAM or 2.5x of RAM??? Saurav Ghosh Linux - Newbie 7 11-01-2011 03:49 AM
FC 6 - missing RAM - Intel S5000PSL Board - 16GB RAM meofcourse Linux - Hardware 11 12-20-2007 03:21 AM
256 ram shows as 183284 total ram phreakshew Linux - Hardware 6 08-21-2006 02:37 PM
Win98SE Pentium166MMX/64MB RAM vs Linux AthlonXP+ 3000/512MB RAM : Lucent LT WinModem t3gah Linux - Software 2 04-22-2005 01:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration