Bug 145612
Summary: | severe memory leak (400Mb+) in system-config-network-gui during startup | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dave Mitchell <davem> |
Component: | system-config-network | Assignee: | Harald Hoyer <harald> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-01-20 20:35:40 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Dave Mitchell
2005-01-20 02:13:40 UTC
hmm, there is no such thing llike /usr/share/system-config-network/ltihooks* on my system and it doesn't belong to system-config-network... please provide the output of: $ rpm -qf /usr/share/system-config-network/ltihooks* There aren't any such files on my system either. It must be trying to open them and failing. what does a $ locate ltihooks.so provide? Nothing, but I turned off slocate db updating shortly after install, to increase laptop perfomance. So I also ran a find on / and didn't get anything either. Just a suggestion; I'm not familar with python (I'm a Perl man myself), but if you were to supply me with a line or two of python that splits out a debugging string and the current memory usage of the process (what in Perl might be print "XXX foo:\n"; system "ps -flp $$"; ) then I could start sticking such lines in the code and see where it gets stuck consuming memory. Dave. import commands import os import time while 1: print commands.getoutput("ps -flp %d" % os.getpid()) time.sleep(1) I put in netconfpkg/gui/maindialog.py method def updateDevicelist(self): + import commands + print commands.getoutput("ps -flp %d" % os.getpid()) activedevicelistold = self.activedevicelist self.activedevicelist = NetworkDevice().get() [harald@jever src]$ sudo ./netconf.py F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD 4 S root 21144 21143 32 75 0 - 9403 pipe_w 16:22 pts/2 00:00:01 /usr/bin/python ./netconf.py F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD 4 S root 21144 21143 18 75 0 - 9404 pipe_w 16:22 pts/2 00:00:01 /usr/bin/python ./netconf.py F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD 4 S root 21144 21143 12 75 0 - 9404 pipe_w 16:22 pts/2 00:00:01 /usr/bin/python ./netconf.py F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD 4 S root 21144 21143 9 75 0 - 9404 pipe_w 16:22 pts/2 00:00:01 /usr/bin/python ./netconf.py By adding print statements, I've determined that the memory suck occurs during the call to ConfModules.__init__(self, filename) in netconfpkg/NCHardwareList.py, within class MyConfModules(ConfModules): def __init__(self, filename = None): but I can't locate ConfModules.__init__, so I can't narrow it down further yet. Aha, found the problem. Sorry, it was nothing to do with config-network. As it happends, my /etc/modprobe.conf had grown to 60Mb due to a buggy modem driver trying to comment out lines it didn't like, and accidently doubling the length of the line each time. |