Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 1996 23:02:21 +0200
From:      Poul-Henning Kamp <phk@critter.tfs.com>
Cc:        Joe Greco <jgreco@solaria.sol.net>, jgreco@ns.sol.net, hackers@FreeBSD.org
Subject:   Re: HELP! :-( Hitting datasize limit 
Message-ID:  <17639.846363741@critter.tfs.com>
In-Reply-To: Your message of "Sat, 26 Oct 1996 20:26:57 %2B0200." <17437.846354417@critter.tfs.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
>>innd allocates per-channel receive buffers.  When the maximum allowed

Hi Joe,

I looked at the inn port and I think that buffer handling could need
to be brought into the nineties.

If you want to try to improve it, try this:

	Always allocate the buffer at max size.
	After each article is handled do this:

		madvise(buffer, buffersize, MADV_FREE);

You would save a lot of copying around stuff that way, and probably 
use less RAM all in all.

--
Poul-Henning Kamp           | phk@FreeBSD.ORG       FreeBSD Core-team.
http://www.freebsd.org/~phk | phk@login.dknet.dk    Private mailbox.
whois: [PHK]                | phk@ref.tfs.com       TRW Financial Systems, Inc.
Future will arrive by its own means, progress not so.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17639.846363741>