Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[mininet-discuss] Cannot allocate memory error

江卓 juejiang91 at gmail.com
Sat Mar 14 19:28:14 PDT 2015


After 1) 2), I can see that the .mininet_history file is quite large, for
several hundreds MB. Removing it makes "sudo mn" work  as quick as usual.

However, when trying to upgrade mininet with "install.sh -s  dir_name -a",
I get two errors.
E: Unable to locate package linux-image-3.14.22
E: Couldn't find any package by regex 'linux-image-3.14.22'

I'v compiled kernel some time ago, which changes the kernel from 3.13 to
3.14. Does kernel version 3.13 and 3.14 make any difference to mininet in
ubuntu 14.04? If not, maybe I can just load kernel 3.13 and upgrade
mininet. But what is the best way to upgrade mininet in my new 3.14 kernel?

lsb_release -a :
Description Ubuntu 14.04.2 LTS
uname -r :
3.14.22


2015-03-15 4:05 GMT+08:00 Bob Lantz <rlantz at cs.stanford.edu>:

> Rich Lane found a problem where .mininet_history could double in size when
> you invoked the CLI() repeatedly in a script; it's described/fixed in issue
> #478.
>
> I'd recommend:
>
> 1) looking at .mininet_history to see if it is large
> 2) removing it
> 3) updating to the current master version
> 4) verifying that the problem either occurs or does not occur
>
>
> On Mar 14, 2015, at 8:01 AM, 江卓 <juejiang91 at gmail.com> wrote:
> >
> > Hi,all.
> > I came across a "Cannot allocate memory error" when I tried to use
> CLI(net) in my code.To make the scenario simpler, I run "sudo mn" in my
> ubuntu 14.04 system, the same kind of error occured. It seems quite strange
> since "sudo mn " runs successfully when I first installed mininet. The full
> error information is as follow.
> > It seems to me the reason for this is python's memory leak. I can see
> the system's memory increases rapidly with "free -m". Any suggestions to
> fix this?
> > Thanks in advance.
> >
> > *** Starting CLI:
> >
> --------------------------------------------------------------------------------
> > Caught exception. Cleaning up...
> >
> > OSError: [Errno 12] Cannot allocate memory
> >
> --------------------------------------------------------------------------------
> > *** Removing excess controllers/ofprotocols/ofdatapaths/pings/noxes
> > killall controller ofprotocol ofdatapath ping nox_core lt-nox_core
> ovs-openflowd ovs-controller udpbwtest mnexec ivs 2> /dev/null
> > Traceback (most recent call last):
> >   File "/usr/local/bin/mn", line 5, in <module>
> >     pkg_resources.run_script('mininet==2.2.0b2', 'mn')
> >   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in
> run_script
> >     self.require(requires)[0].run_script(script_name, ns)
> >   File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1401,
> in run_script
> >     exec(script_code, namespace, namespace)
> >   File
> "/usr/local/lib/python2.7/dist-packages/mininet-2.2.0b2-py2.7.egg/EGG-INFO/scripts/mn",
> line 387, in <module>
> >
> >   File "build/bdist.linux-x86_64/egg/mininet/clean.py", line 52, in
> cleanup
> >   File "build/bdist.linux-x86_64/egg/mininet/clean.py", line 23, in sh
> >   File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
> >     errread, errwrite)
> >   File "/usr/lib/python2.7/subprocess.py", line 1223, in _execute_child
> >     self.pid = os.fork()
> > OSError: [Errno 12] Cannot allocate memory
> >
> > _______________________________________________
> > mininet-discuss mailing list
> > mininet-discuss at lists.stanford.edu
> > https://mailman.stanford.edu/mailman/listinfo/mininet-discuss
>
>


-- 
Best!

江卓
Zhuo Jiang
Dept. of Computer Science, Tsinghua University,
Beijing 100084, People’s Republic of China
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/mininet-discuss/attachments/20150315/88e2106b/attachment-0001.html>


More information about the mininet-discuss mailing list