makedbz and expire grow very big

Alex Kiernan alexk at demon.net
Thu Nov 22 09:02:40 UTC 2001


list-inn-workers at news.cistron.nl (Miquel van Smoorenburg) writes:

> With the latest INN CVS versions, if I do:
> 
> # ll history
> -rw-rw-r--    1 news     news     986806103 Nov 21 13:50 history
> # wc -l history
> 16766878 history
> # makedbz -o -s 16766878
> 
> makedbz becomes quite big:
> 
> # ps aux | grep makedbz
> USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
> root     10426 97.5 38.2 345400 344512 pts/0 R    13:54   0:45 makedbz -o -s 16766878
> 
> 345 MB? During nightly expire, it grows about this big as well. This
> box has 1GB of memory, so it isn't that much of a problem, but I've
> got other boxes with 192/256 MB and they will trash to death because
> of this.
> 
> Looks like the history.hash or history.index files are built in-memory
> and only later on written out ?
> 

Thats the way -STABLE works too (either that or I completely
misunderstood the code when I rewrote it). You could hack line 1219 in
hisv6.c to be INCORE_MMAP and hope your VM dtrt (Solaris 8 most
definately doesn't, Linux I don't know).

-- 
Alex Kiernan, Principal Engineer, Development, Thus PLC


More information about the inn-workers mailing list