Article View: news.software.nntp
Article #7788Re: Memory Hungry nnrpd daemons (2.6 MB)
From: J. Carlos Castro
Date: Tue, 21 May 1996 00:00
Date: Tue, 21 May 1996 00:00
47 lines
2800 bytes
2800 bytes
Josh G Renzema wrote:
>
> We just moved from SunOS 4.1.4 to Solaris 2.5 for our news server. In the
> process, we noticed that the average nnrpd daemon now uses 2.6MB of memory
> vs. ~700k in SunOS. With dozens of simultaneous connections, you can see
> how this starts to make a BIG difference.
>
> Any ideas about why this is happening?
>
It depends on which PS you use:
world1 /n/alt/binaries>/bin/ps -elf | grep nnrp
8 S news 7550 2652 45 99 30 f8f9e340 634 f7d85ee6 17:43:50 ? 0:00 /snews/etc/in.nnrpd -s
8 S root 11040 16951 2 41 20 f82c9340 176 f797b156 19:42:22 pts/16 0:00 grep nnrp
8 O news 11025 2652 80 91 30 f9f9dcd8 630 19:41:49 ? 0:03 /snews/etc/in.nnrpd -s
8 S news 10668 2652 55 71 30 f8f9d680 626 f862d976 19:25:38 ? 0:01 /snews/etc/in.nnrpd -s
world1 /n/alt/binaries>/bin/ps -elf | head -1
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME COMD
world1 /n/alt/binaries>/usr/ucb/ps aux | grep nnrp
news 11041 0.8 0.2 2520 2184 ? S 19:42:39 0:01 /snews/etc/in.nnrp
root 11043 0.1 0.1 704 476 pts/16 S 19:42:53 0:00 grep nnrp
news 10668 0.0 0.2 2504 2164 ? S 19:25:38 0:00 /snews/etc/in.nnrp
news 7550 0.0 0.2 2536 2136 ? S 17:43:50 0:00 /snews/etc/in.nnrp
world1 /n/alt/binaries>/usr/ucb/ps aux | head -1
USER PID %CPU %MEM SZ RSS TT S START TIME COMMAND
As you can see here, /usr/ucb/ps gives different size readings than /bin/ps.
Exerp from the man page for ps(1):
SZ (l) The size (in pages or clicks) of the swap-
pable process's image in main memory.
And from ps(1b):
SZ The combined size of the data and stack segments
(in kilobyte units)
Hope this helps,
--
----
J. Carlos Castro Systems Administrator and all around nice guy
jcastro@wauug.erols.com Consulting for your Internet Needs
http://wauug.erols.com/~jcastro
Technical Details
Message-ID:
<31A2586E.2495@wauug.erols.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<Pine.SCO.3.93.960521165827.3763A-100000@yt1.youtools.com>Show Full Headers
Complete Article Headers
Message-ID: <31A2586E.2495@wauug.erols.com> Subject: Re: Memory Hungry nnrpd daemons (2.6 MB) Date: Tue, 21 May 1996 00:00:00 +0000 From: "J. Carlos Castro" <jcastro@wauug.erols.com> References: <Pine.SCO.3.93.960521165827.3763A-100000@yt1.youtools.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 156011075 Content-type: text/plain; charset=us-ascii Organization: Enterprise Network Solutions Mime-version: 1.0 Newsgroups: news.software.nntp X-mailer: Mozilla 2.0 (X11; I; SunOS 5.5 sun4u)