📄 node240.html
字号:
<html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><!--Converted with jLaTeX2HTML 2002 (1.62) JA patch-1.4patched version by: Kenshi Muto, Debian Project.LaTeX2HTML 2002 (1.62),original version by: Nikos Drakos, CBLU, University of Leeds* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan* with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --><HTML><HEAD><TITLE>21.4 Memory Debugging</TITLE><META NAME="description" CONTENT="21.4 Memory Debugging"><META NAME="keywords" CONTENT="everything"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META NAME="Generator" CONTENT="jLaTeX2HTML v2002 JA patch-1.4"><META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"><LINK REL="STYLESHEET" HREF="everything.css" tppabs="http://www.isi.edu/nsnam/ns/doc/everything.css"><LINK REL="next" HREF="node244.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node244.html"><LINK REL="previous" HREF="node239.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node239.html"><LINK REL="up" HREF="node236.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node236.html"><LINK REL="next" HREF="node241.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node241.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html4987" HREF="node241.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node241.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html4981" HREF="node236.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node236.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html4975" HREF="node239.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node239.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html4983" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html4985" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html4988" HREF="node241.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node241.html">21.4.1 Using dmalloc</A><B> Up:</B> <A NAME="tex2html4982" HREF="node236.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node236.html">21. Debugging ns</A><B> Previous:</B> <A NAME="tex2html4976" HREF="node239.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node239.html">21.3 Mixing Tcl and</A>   <B> <A NAME="tex2html4984" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html4986" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H1><A NAME="SECTION04140000000000000000"></A><A NAME="sec:memdebug"></A><BR>21.4 Memory Debugging</H1><P>The first thing to do if you run out of memory is to make sure you can useall the memory on your system. Some systems by default limit the memoryavailable for individual programs to something less than all availablememory. To relax this, use the limit or ulimit command. These are shellfunctions--see the manual page for your shell for details. Limit is forcsh, ulimit is for sh/bash. <P>Simulations of large networks can consume a lot of memory. Ns-2.0b17supports Gray Watson's dmalloc library (see its web documentation athttp://www.letters.com/dmalloc/ and get the source code fromftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz ).To add it, install it on your system or leave its source ina directory parallel to ns-2 and specify -with-dmalloc when configuringns. Then build all components of ns for which you want memory informationwith debugging symbols (this should include at least ns-2, possibly tclcland otcl and maybe also tcl). <P><BR><HR><!--Table of Child-Links--><A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A><UL><LI><A NAME="tex2html4989" HREF="node241.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node241.html">21.4.1 Using dmalloc</A><LI><A NAME="tex2html4990" HREF="node242.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node242.html">21.4.2 Memory Conservation Tips</A><LI><A NAME="tex2html4991" HREF="node243.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node243.html">21.4.3 Some statistics collected by dmalloc</A></UL><!--End of Table of Child-Links--><HR><!--Navigation Panel--><A NAME="tex2html4987" HREF="node241.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node241.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html4981" HREF="node236.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node236.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html4975" HREF="node239.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node239.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html4983" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html4985" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html4988" HREF="node241.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node241.html">21.4.1 Using dmalloc</A><B> Up:</B> <A NAME="tex2html4982" HREF="node236.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node236.html">21. Debugging ns</A><B> Previous:</B> <A NAME="tex2html4976" HREF="node239.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node239.html">21.3 Mixing Tcl and</A>   <B> <A NAME="tex2html4984" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html4986" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <!--End of Navigation Panel--><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -