[2278] in linux-net channel archive
Re: Optimising for packet sniffing
daemon@ATHENA.MIT.EDU (sct@dcs.ed.ac.uk)
Thu Mar 28 23:06:51 1996
From: sct@dcs.ed.ac.uk
Date: Thu, 28 Mar 96 23:14 GMT
To: Nick Holloway <Nick.Holloway@alfie.demon.co.uk>
Cc: submit-linux-dev-net@ratatosk.yggdrasil.com
In-Reply-To: <4j6j6o$11f@alfie.demon.co.uk>
Hi,
On 25 Mar 1996 16:55:52 -0000, Nick Holloway
<Nick.Holloway@alfie.demon.co.uk> said:
> I've installed Linux 1.3.75 on a 486sx20 laptop with 8Mb of RAM, so I
> can use tcpdump to try and get a handle on a problem we are seeing.
> The worrying aspect is that I get "Couldn't get a free page" reasonably
> often. Are there parameters I can tune in /proc/sys to try and help
> with keeping memory available for incoming packets?
Yes. /proc/sys/vm/freepages contains the thresholds used in the
background page-free daemon. On my (16MB) box right now, I can do:
# cat /proc/sys/vm/freepages
32 48 64
# echo 64 96 128 > /proc/sys/vm/freepages
# cat /proc/sys/vm/freepages
64 96 128
#
You might want to double the thresholds as a first attempt.
Cheers,
Stephen.
--
Stephen Tweedie <sct@dcs.ed.ac.uk>
Department of Computer Science, Edinburgh University, Scotland.