FreeBSD Bugzilla – Attachment 13269 Details for
Bug 25340
[PATCH] New FAQ entry about rpc.statd(8) appearing to use 256MB of memory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.58 KB, created by
dima
on 2001-02-24 08:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
dima
Created:
2001-02-24 08:50:01 UTC
Size:
1.58 KB
patch
obsolete
>Index: book.sgml >=================================================================== >RCS file: /st/src/FreeBSD/doc/en_US.ISO_8859-1/books/faq/book.sgml,v >retrieving revision 1.144 >diff -u -r1.144 book.sgml >--- book.sgml 2001/02/17 01:07:43 1.144 >+++ book.sgml 2001/02/23 23:42:37 >@@ -6795,6 +6795,30 @@ > &man.rc.conf.5; man page for more information on rc.conf.</para> > </answer> > </qandaentry> >+ >+ <qandaentry> >+ <question id="statd-mem-leak"> >+ <para>There is a memory leak in &man.rpc.statd.8;! It is using >+ 256 Mbytes of memory!</para> >+ </question> >+ >+ <answer> >+ <para>No, there is no memory leak, and it's not using 256 Mbytes >+ of memory. It simply likes to (i.e., always does) map an >+ obscene amount of memory into its address space for convenience. >+ There is nothing terribly wrong with this from a technical >+ standpoint; it just throws off things like &man.top.1; and >+ &man.ps.1;.</para> >+ >+ <para>&man.rpc.statd.8; maps its status file (resident on >+ <filename>/var</filename>) into its address space; to save >+ worrying about remapping it later when it needs to grow, it maps >+ it with a generious size. This is very evident from the source >+ code, where one can see that the length argument to &man.mmap.2; >+ is <literal>0x10000000</literal>, or one sixteenth of the >+ address space on an IA32, or exactly 256MB.</para> >+ </answer> >+ </qandaentry> > </qandaset> > </chapter>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25340
: 13269