Memory leak in Networkmanager when switching between wired/wireless

Bug #214593 reported by Harm van Bakel
This bug report is a duplicate of:  Bug #203016: Memory Leak in NetworkManager. Edit Remove
8
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: network-manager

After unpluggin the network cable, NetworkManager switches to the wireless network as expected, but the memory usage of the NetworkManager process increases by about 1-1.5mb. When switching back to wired network the same thing happens, and after repeated plugging/unplugging the network cable, the memory usage just keeps growing. I'm using the knetworkmanager applet in kubuntu (Hardy development branch, release 8.04, all updates installed), so I'm not sure if the problem is in NetworkManager or knetworkmanager.

Revision history for this message
Harm van Bakel (hvbakel) wrote :
Revision history for this message
Harm van Bakel (hvbakel) wrote :
Revision history for this message
Alexis ROBERT (alexis.robert) wrote :

I agree ! This is a VERY big issue. Here, I have 2 laptops : my old one, a core duo Macbook running Debian sid (1.25Go of RAM) and my brand new Dell XPS M1530 (4Go of RAM).

On the end of the day, on the Macbook, NetworkManager eats nearly all the RAM. On the end of the day, on the Dell XPS, NetworkManager eats 9.2% of the RAM, which result to 377Mo approx.

This means that the bug is not linked to Ubuntu, but more a global NetworkManager issue. Please note that I don't switch networks during this period : I stay on my WLAN using WPA2.

Revision history for this message
Matthieu Riou (matthieu-riou) wrote :

Same here. Here is the usage after a few suspend/resume:

  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 5022 root 20 0 1310m 561m 1240 S 0 27.7 6:27.51 NetworkManager

I've been running Kubuntu Hardy since Alpha 5.

Revision history for this message
Gary (pento) wrote :

Also seeing huge memory usage under Kubuntu Hardy:

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 5457 0.1 14.3 549232 521920 ? Ssl May06 7:15 /usr/sbin/NetworkManager --pid-file /var/run/NetworkManager/NetworkManager.pid

Revision history for this message
laksdjfaasdf (laksdjfaasdf) wrote :

It must be a problem with NetworkManager itself:

$ ps aux|grep -i network
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
felix 2461 0.4 0.3 34256 7656 ? S 16:27 1:14 knetworkmanager [kdeinit]
...
root 5658 0.4 30.4 639036 618644 ? Ssl 12:51 1:57 /usr/sbin/NetworkManager --pid-file /var/run/NetworkManager/NetworkManager.pid
root 5672 0.0 0.0 3536 1172 ? Ss 12:51 0:00 /usr/sbin/NetworkManagerDispatcher --pid-file /var/run/NetworkManager/NetworkManagerDispatcher.pid

knetworkmanager needs only 7 MByte but NetworkManager itself eats about 618 MByte after a few hours uptime!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.