🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81140

Possible bottleneck for history lookups

#81140
From: Oleksandr Samoylyk
Date: Sat, 30 May 2009 15:20
59 lines
3335 bytes
Dear community,

What can be a reason for dramatically growing history lookups on my INN 
news-server?

About half a year ago it was just:
hisgrep/artcncl	00:00:38.358	 0.0%	2060	 0.000	 18.620	 276.000
hishave/artcncl	00:00:15.713	0.0%	4789	0.000	3.281	109.000
history grep	00:00:00.000	0.0%	0	0.000	0.000	0.000
history lookup	00:49:34.062	3.5%	7954254	0.006	0.374	6.451
history sync	00:00:22.315	0.0%	309	0.000	72.217	898.000
history write	01:11:54.449	5.0%	182935	3.143	23.585	83.119
hiswrite/artcncl	00:00:47.834	0.1%	2729	0.000	17.528	657.000
idle	19:45:12.081	82.6%	7432294	1.716	9.568	51.112

Now it is:
hisgrep/artcncl	00:00:08.651	 0.0%	777	 0.000	 11.134	 303.000
hishave/artcncl	00:00:06.177	0.0%	810	0.000	7.626	400.000
history grep	00:00:00.000	0.0%	0	0.000	0.000	0.000
history lookup	05:41:46.124	23.8%	10768408	0.096	1.904	364.175
history sync	00:00:00.503	0.0%	291	0.000	1.729	106.000
history write	00:44:06.074	3.1%	167786	5.527	15.771	2716.000
hiswrite/artcncl	00:00:01.301	0.0%	33	0.000	39.424	603.000
idle	16:02:49.505	67.1%	7390056	0.000	7.817	32.283

In my inn.conf I have:
hiscachesize: 2048

Positive hits	 7679714	 71.3%
Negative hits	2462846	22.9%
Cache misses	454283	4.2%
Do not exist	168046	1.6%

The number of peers: 66 (increased just a bit withing a year)

It's INN 2.4.5 (CNFS with ovdb) running on FreeBSD 7.2-RELEASE i386, 4GB 
RAM.

Memory usage:
Mem: 1264M Active, 1851M Inact, 260M Wired, 98M Cache, 112M Buf, 34M Free
Swap: 1479M Total, 224K Used, 1478M Free

# ls -l /usr/local/news/db/
total 3946032
-rw-rw-r--  1 news  news          30 May 30 08:29 .news.daily
-rw-rw-r--  1 news  news     2175716 May 30 18:08 active
-rw-rw-r--  1 news  news     2175770 May 30 06:33 active.old
-rw-r--r--  1 news  news       11698 May 27 13:55 active.times
-rw-r--r--  1 news  news  3192979751 May 30 18:08 history
-rw-r--r--  1 news  news          50 May 30 18:08 history.dir
-rw-r--r--  1 news  news   697973466 May 30 18:08 history.hash
-rw-r--r--  1 news  news   930631288 May 30 18:08 history.index
-rw-r--r--  1 news  news     1995039 May 30 16:12 newsgroups

Any suggestions will be much appreciated!

-- 
  Oleksandr Samoylyk
  OVS-RIPE
Technical Details
Message-ID: <gvriqo$2hiv$1@services.telesweet.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.telesweet.net!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <gvriqo$2hiv$1@services.telesweet.net>
Subject: Possible bottleneck for history lookups
Date: Sat, 30 May 2009 18:20:02 +0300
From: Oleksandr Samoylyk <oleksandr@samoylyk.DOT.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.telesweet.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Telesweet ISP - http://www.telesweet.net/
Lines: 59
NNTP-Posting-Host: pigeon.telesweet
Mime-Version: 1.0
Content-Type: text/plain; charset=KOI8-U; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: services.telesweet.net 1243696792 83551 10.0.14.191 (30 May 2009
X-Complaints-To: newsmaster@telesweet.net
NNTP-Posting-Date: Sat, 30 May 2009 15:19:52 +0000 (UTC)
X-Notice: Filtered by postfilter
Cancel-Lock: sha1:MW0e6SizRgjXPcUlnqL5fFfu+0I=
User-Agent: Thunderbird 2.0.0.21 (X11/20090302)