🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #13304

Re: inn 1.5 and freebsd 2.1.6R and MMAP and evil eye.

#13304
From: James Risner
Date: Sun, 15 Dec 1996 00:00
54 lines
2548 bytes
Raul Zighelboim (mango@communique.,net) wrote:

: I removed MMAPING of the active file, and my articles intake dropped from 4
: ~ 5 a second to
: 1 ~ 2 er second!

: Is there any fix for MMAP that would allowed me to run it under freebsd ?

: Just for reference:

: kiyoko:/var/log/news# ls -l ~news/history
: -rw-rw-r--  1 news  news  239754504 Dec 13 09:27 /var/news/etc/history
: kiyoko:/var/log/news# ls -l ~news/active
: -rw-rw-r--  1 news  news  833231 Dec 13 09:29 /var/news/etc/active


I don't run with MMAP on.
How much memory you have in the machine?

I have 96 meg, pentium 120 (too much CPU, I know), and:

Filesystem              1K-blocks     Used    Avail Capacity  Mounted on
/dev/sd0a                  511759   162175   308644    34%    /
/dev/sd2a                  384591   109458   244366    31%    /var
/dev/sd1a                  998879   397661   521308    43%    /disk1
procfs                          4        4        0   100%    /proc
/dev/ccd0c                6010154  2800196  2729146    51%    /news

/news is three 2.1 gig Micropolis ccd's into one stripped over 65536 sectors.
newslib (history) on /disk1
out.going and logs on /var

-rw-rw-r--  1 news  news  139299894 Dec 14 22:54 history
-rw-rw-r--  1 news  news         87 Dec 14 22:54 history.dir
-rw-rw-r--  1 news  news   12345580 Dec 14 22:54 history.pag

I get 2.620 articles per second.
(I count actual TAKES; meaning I process and ignore another 1.838 arts/second)

Total processed = 4.458 articles per second with MMAP turned off.

Inside the kernel (given enough memory) a read() or write() will be translated
to a memory read/write if the data is in the disk buffer cache.

above taken from: #awk '$4 == "+" {print $6}' /var/log/news/news|sort|uniq|wc#
doing a check on seconds from fist line to last = 2.620

and: #awk '$4 != "+" {print $6}' /var/log/news/news|sort|uniq|wc#
doing a check on seconds from fist line to last = 1.838

Risner

Technical Details
Message-ID: <58vu54$cut@stargate.stdio.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
References: <01bd07db$78d5ed40$667d1bcc@rodia>

Show Full Headers
Complete Article Headers
Message-ID: <58vu54$cut@stargate.stdio.com>
Subject: Re: inn 1.5 and freebsd 2.1.6R and MMAP and evil eye.
Date: Sun, 15 Dec 1996 00:00:00 +0000
From: risner@heathers.stdio.com (James Risner)
References: <01bd07db$78d5ed40$667d1bcc@rodia>
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: 204202510
Organization: Open World
Newsgroups: news.software.nntp